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 1.6 by greg, Thu Jul 19 12:56:50 1990 UTC vs.
Revision 1.7 by greg, Sat Aug 18 16:28:52 1990 UTC

# Line 381 | Line 381 | char  *err;
381   {
382      register int  i;
383  
384    eputs(linbuf);
385    if (linbuf[strlen(linbuf)-1] != '\n')
386        eputs("\n");
387    for (i = 0; i < linepos-1; i++)
388        eputs(linbuf[i] == '\t' ? "\t" : " ");
389    eputs("^ ");
384      if (infile != NULL || lineno != 0) {
391        eputs("\n");
385          if (infile != NULL) eputs(infile);
386          if (lineno != 0) {
387              eputs(infile != NULL ? ", line " : "line ");
388              eputs(ltoa((long)lineno));
389          }
390 <        eputs(": ");
390 >        eputs(": syntax error:\n");
391      }
392 +    eputs(linbuf);
393 +    if (linbuf[strlen(linbuf)-1] != '\n')
394 +        eputs("\n");
395 +    for (i = 0; i < linepos-1; i++)
396 +        eputs(linbuf[i] == '\t' ? "\t" : " ");
397 +    eputs("^ ");
398      eputs(err);
399      eputs("\n");
400      quit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines