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

Comparing ray/src/common/calcomp.h (file contents):
Revision 1.2 by greg, Mon Apr 10 22:05:56 1989 UTC vs.
Revision 1.6 by greg, Thu Aug 8 11:23:17 1991 UTC

# Line 15 | Line 15
15   #define  ARG            6
16   #define  TICK           7
17   #define  SYM            8
18 <                                /* also: '+', '-', '*', '/', '^', '=' */
18 >                                /* also: '+', '-', '*', '/', '^', '=', ':' */
19  
20   typedef struct {
21      char  *fname;               /* function name */
22 <    int  nargs;                 /* # of required arguments */
22 >    short  nargs;               /* # of required arguments */
23 >    short  atyp;                /* assignment type (':' or '=') */
24      double  (*f)();             /* pointer to function */
25   }  LIBR;                /* a library function */
26  
# Line 44 | Line 45 | typedef struct epnode {
45  
46   typedef struct vardef  VARDEF;  /* a variable definition */
47  
48 + #define  MAXWORD        64              /* maximum word/id length */
49 + #define  CNTXMARK       '`'             /* context mark */
50 +
51 + #define  isid(c)        (isalnum(c) || (c) == '_' || \
52 +                        (c) == '.' || (c) == CNTXMARK)
53 +
54   extern double  eval(), varvalue(), chanvalue(), funvalue();
55   extern double  argument(), getnum();
56   extern double  (*eoper[])();
57   extern int  getinum();
58 < extern char  *getname(), *argfun();
58 > extern char  *getname(), *qualname(), *setcontext(), *argfun();
59   extern EPNODE  *eparse(), *ekid(), *dlookup(), *dpop(), *dfirst(), *dnext();
60   extern EPNODE  *getdefn(), *getchan();
61   extern EPNODE  *getE1(), *getE2(), *getE3(), *getE4(), *getE5(), *rconst();
# Line 59 | Line 66 | extern int  nextc;
66   extern int  errno;
67  
68   #define  evalue(ep)     (*eoper[(ep)->type])(ep)
62
63 #ifdef  CPM
64 #define  defined(D)     D
65 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines