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

Comparing ray/src/common/calfunc.c (file contents):
Revision 2.28 by greg, Fri Apr 8 23:32:25 2022 UTC vs.
Revision 2.29 by greg, Sun Feb 25 18:36:27 2024 UTC

# Line 22 | Line 22 | static const char      RCSid[] = "$Id$";
22  
23                                  /* bits in argument flag (better be right!) */
24   #define  AFLAGSIZ       (8*sizeof(unsigned long))
25 < #define  ALISTSIZ       8       /* maximum saved argument list */
25 > #define  ALISTSIZ       10      /* maximum saved argument list */
26  
27   typedef struct activation {
28      char  *name;                /* function name */
# Line 202 | Line 202 | argument(int n)                        /* return nth argument for active fu
202      ACTIVATION  *actp = curact;
203      EPNODE  *ep = NULL;
204      double  aval;
205
206    if (!n)                                     /* asking for # arguments? */
207        return((double)nargum());
205  
206      if (!actp | (--n < 0)) {
207          eputs("Bad call to argument!\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines