1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 23:46:14 +00:00
Bruce Mitchener fa1adadd31
Remove SunOS 4 version of aref_switch. (#205)
When compiling for SunOS4, we would have a macro-ized version
of this function which required a slightly different call-site.

This removes all of that as it isn't used or needed.
2021-01-11 17:11:48 -08:00

58 lines
1.7 KiB
C

/* @(#) array.c Version 2.8 (12/23/88). copyright envos & Fuji Xerox */
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
/* Manufactured in the United States of America. */
/* */
/************************************************************************/
#include "version.h"
#include <stdio.h>
#include "lispemul.h"
#include "lspglob.h"
#include "adr68k.h"
#include "lispmap.h"
#include "lsptypes.h"
#include "emlglob.h"
#include "arraydefs.h"
#include "mkcelldefs.h"
#include "arith.h"
#include "my.h"
/************************************************************
OP_claref -- op 372/9 (base typenumber index)
type size typenumber
0 0 0 unsigned : 1 bit
0 3 3 unsigned : 8 bits
0 4 4 unsigned : 16 bits
1 4 20 signed : 16 bits
1 6 22 signed : 32 bits
2 6 38 pointer : 32 bits
3 6 54 float : 32 bits
4 3 67 character : 8 bits
4 4 68 character : 16 bits
5 6 86 Xpointer : 32 bits
***********************************************************/
/*** N_OP_misc3 -- op 372/9 (base typenumber index) ***/
LispPTR N_OP_misc3(LispPTR baseL, LispPTR typenumber, LispPTR inx, int alpha) {
register int index, type;
if (alpha != 9) ERROR_EXIT(inx);
/* test and setup index */
N_GetPos(inx, index, inx);
/* test and setup typenumber */
N_GetPos(typenumber, type, inx);
/* disp on type */
return (aref_switch(type, inx, baseL, index));
} /* end N_OP_misc3() */