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

Comparing ray/src/common/calexpr.c (file contents):
Revision 2.28 by schorsch, Fri Nov 14 17:22:06 2003 UTC vs.
Revision 2.30 by greg, Tue May 17 17:51:51 2005 UTC

# Line 26 | Line 26 | static const char      RCSid[] = "$Id$";
26   #include  <math.h>
27   #include  <stdlib.h>
28  
29 + #include  "rtmisc.h"
30 + #include  "rtio.h"
31   #include  "rterror.h"
32   #include  "calcomp.h"
33  
# Line 45 | Line 47 | static double  ebotch(EPNODE *);
47   unsigned int  esupport =                /* what to support */
48                  E_VARIABLE | E_FUNCTION ;
49  
50 + int  eofc = 0;                          /* optional end-of-file character */
51   int  nextc;                             /* lookahead character */
52  
53   double  (*eoper[])(EPNODE *) = {        /* expression operations */
# Line 411 | Line 414 | scan(void)             /* scan next character, return literal nex
414              nextc = linbuf[linepos++];
415          if (!lnext)
416                  lnext = nextc;
417 +        if (nextc == eofc) {
418 +                nextc = EOF;
419 +                break;
420 +        }
421          if (nextc == '{') {
422              scan();
423              while (nextc != '}')

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines