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.6 by greg, Mon Sep 21 12:01:54 1992 UTC vs.
Revision 2.9 by greg, Tue Oct 6 12:29:36 1992 UTC

# Line 24 | Line 24 | static char SCCSid[] = "$SunId$ LBL";
24  
25   #include  <errno.h>
26  
27 + #include  <math.h>
28 +
29   #include  "calcomp.h"
30  
31   #define  MAXLINE        256             /* maximum line length */
# Line 35 | Line 37 | static char SCCSid[] = "$SunId$ LBL";
37   #ifndef atof
38   extern double  atof();
39   #endif
38 extern double  pow();
40   extern char  *fgets(), *savestr();
41   extern char  *emalloc(), *ecalloc();
42   extern EPNODE  *curfunc;
# Line 371 | Line 372 | scan()                         /* scan next character, return literal next
372  
373  
374   char *
375 < ltoa(l)                         /* convert long to ascii */
375 > long2ascii(l)                         /* convert long to ascii */
376   long  l;
377   {
378      static char  buf[16];
# Line 405 | Line 406 | char  *err;
406          if (infile != NULL) eputs(infile);
407          if (lineno != 0) {
408              eputs(infile != NULL ? ", line " : "line ");
409 <            eputs(ltoa((long)lineno));
409 >            eputs(long2ascii((long)lineno));
410          }
411 <        eputs(": syntax error:\n");
411 >        eputs(":\n");
412      }
413      eputs(linbuf);
414      if (linbuf[strlen(linbuf)-1] != '\n')

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines