ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/object.h
(Generate patch)

Comparing ray/src/common/object.h (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:17 1989 UTC vs.
Revision 2.5 by gwlarson, Tue Aug 25 10:16:08 1998 UTC

# Line 19 | Line 19 | typedef struct {
19          short  nsargs;                  /* # of string arguments */
20          short  nfargs;                  /* # of real arguments */
21          char  **sarg;                   /* string arguments */
22 <        double  *farg;                  /* real arguments */
22 >        FLOAT  *farg;                   /* real arguments */
23   #ifdef  IARGS
24          short  niargs;                  /* # of integer arguments */
25          long  *iarg;                    /* integer arguments */
26   #endif
27   }  FUNARGS;
28  
29 < #define  MAXSTR         512             /* maximum string length */
29 > #define  MAXSTR         128             /* maximum string length */
30  
31   /*
32   *      An object is defined as an index into an array of
# Line 34 | Line 34 | typedef struct {
34   *      and the modifier index.
35   */
36  
37 < typedef short  OBJECT;                  /* index into object array */
37 > #ifndef  OBJECT
38 > #ifdef  BIGMEM
39 > #define  OBJECT         int4            /* index to object array */
40 > #else
41 > #define  OBJECT         int2            /* index to object array */
42 > #endif
43 > #endif
44  
45   typedef struct {
46          OBJECT  omod;                   /* modifier number */
# Line 42 | Line 48 | typedef struct {
48          char  *oname;                   /* object name */
49          FUNARGS  oargs;                 /* object specification */
50          char  *os;                      /* object structure */
45        long  lastrno;                  /* last ray this was used with */
51   }  OBJREC;
52  
53 < #define  MAXOBJBLK      511             /* maximum number of object blocks */
53 > #ifndef  MAXOBJBLK
54 > #ifdef  BIGMEM
55 > #define  MAXOBJBLK      65535           /* maximum number of object blocks */
56 > #else
57 > #define  MAXOBJBLK      31              /* maximum number of object blocks */
58 > #endif
59 > #endif
60  
61   extern OBJREC  *objblock[MAXOBJBLK];    /* the object blocks */
62 < extern int  nobjects;                   /* # of objects */
62 > extern OBJECT  nobjects;                /* # of objects */
63  
64 < #define  objptr(obj)    (objblock[(obj)>>6]+((obj)&077))
64 > #define  OBJBLKSIZ      01000           /* object block size */
65 > #define  objptr(obj)    (objblock[(obj)>>9]+((obj)&0777))
66  
67   #define  OVOID          (-1)            /* void object */
68   #define  VOIDID         "void"          /* void identifier */
# Line 61 | Line 73 | extern int  nobjects;                  /* # of objects */
73   */
74  
75   #define  MAXSET         127             /* maximum object set size */
76 +
77 + OBJECT  *setsave();
78 +
79 + #define setfree(os)     free((char *)(os))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines