--- ray/src/common/object.h 1991/07/24 14:15:51 1.3 +++ ray/src/common/object.h 1993/01/25 12:41:25 2.2 @@ -19,7 +19,7 @@ typedef struct { short nsargs; /* # of string arguments */ short nfargs; /* # of real arguments */ char **sarg; /* string arguments */ - double *farg; /* real arguments */ + FLOAT *farg; /* real arguments */ #ifdef IARGS short niargs; /* # of integer arguments */ long *iarg; /* integer arguments */ @@ -34,7 +34,13 @@ typedef struct { * and the modifier index. */ -typedef short OBJECT; /* index into object array */ +#ifndef OBJECT +#ifdef BIGMEM +#define OBJECT int /* index to object array */ +#else +#define OBJECT short /* index to object array */ +#endif +#endif typedef struct { OBJECT omod; /* modifier number */ @@ -42,10 +48,15 @@ typedef struct { char *oname; /* object name */ FUNARGS oargs; /* object specification */ char *os; /* object structure */ - long lastrno; /* last ray this was used with */ } OBJREC; +#ifndef MAXOBJBLK +#ifdef BIGMEM +#define MAXOBJBLK 4095 /* maximum number of object blocks */ +#else #define MAXOBJBLK 511 /* maximum number of object blocks */ +#endif +#endif extern OBJREC *objblock[MAXOBJBLK]; /* the object blocks */ extern OBJECT nobjects; /* # of objects */