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

Comparing ray/src/common/fgetword.c (file contents):
Revision 2.4 by greg, Fri Jun 27 06:53:21 2003 UTC vs.
Revision 2.5 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 28 | Line 28 | register FILE  *fp;
28                  c = getc(fp);
29          while (isspace(c));
30                                          /* check for quote */
31 <        if ((c == '"' | c == '\'')) {
31 >        if ((c == '"') | (c == '\'')) {
32                  quote = c;
33                  c = getc(fp);
34          }
# Line 44 | Line 44 | register FILE  *fp;
44                  c = getc(fp);
45          } while (c != EOF && !(quote ? c==quote : isspace(c)));
46          *cp = '\0';
47 <        if ((c != EOF & !quote))        /* replace space */
47 >        if ((c != EOF) & (!quote))      /* replace space */
48                  ungetc(c, fp);
49          return(s);
50   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines