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.3 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.5 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 4 | Line 4 | static const char      RCSid[] = "$Id$";
4   /*
5   * Read white space separated words from stream
6   *
7 < *  External symbols declared in standard.h
7 > *  External symbols declared in rtio.h
8   */
9  
10   #include "copyright.h"
11  
12 < #include  <stdio.h>
12 > #include  "rtio.h"
13  
14   #include  <ctype.h>
15  
# 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