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.2 by greg, Tue Mar 14 11:36:59 1989 UTC vs.
Revision 1.6 by greg, Wed Oct 4 13:09:54 1989 UTC

# Line 187 | Line 187 | register FILE  *fin;
187                                  putchar('\n');
188                                  while ((c = getc(fin)) != EOF && c != '\n')
189                                          putchar(c);
190 <                                printf(" |");
191 <                                for (c = 0; c < xac; c++)
190 >                                printf(" | %s -e", xav[0]);
191 >                                for (c = 1; c < xac; c++)
192                                          printf(" %s", xav[c]);
193                                  putchar('\n');
194                          }
# Line 208 | Line 208 | FILE  *fin;
208          FILE  *pin;
209          char  buf[512];
210  
211        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