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

Comparing ray/src/gen/xform.c (file contents):
Revision 1.1 by greg, Thu Feb 2 11:16:33 1989 UTC vs.
Revision 1.5 by greg, Wed Jun 7 10:09:07 1989 UTC

# Line 69 | Line 69 | FUN  ofun[] = {
69          { "colortext", text },
70          { "brighttext", text },
71          { "texfunc", addxform },
72 +        { "texdata", addxform },
73          { "colorfunc", addxform },
74          { "brightfunc", addxform },
75          { "colorpict", addxform },
# Line 207 | Line 208 | FILE  *fin;
208          FILE  *pin;
209          char  buf[512];
210  
210        buf[0] = '\0';
211          fgets(buf, sizeof(buf), fin);
212 <        if (buf[0] && buf[strlen(buf)-1] == '\n')
212 >        if (buf[strlen(buf)-1] == '\n')
213                  buf[strlen(buf)-1] = '\0';
214          if ((pin = popen(buf+1, "r")) == NULL) {
215                  fprintf(stderr, "%s: (%s): cannot execute \"%s\"\n",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines