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

Comparing ray/src/common/words.c (file contents):
Revision 1.2 by greg, Tue Jul 23 11:36:42 1991 UTC vs.
Revision 2.2 by greg, Wed Jan 10 21:04:21 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 44 | Line 44 | register char  *s;
44                  s++;
45          while (*s && !isspace(*s))
46                  s++;
47 +        while (isspace(*s))
48 +                s++;
49          return(s);
50   }
51  
# Line 69 | Line 71 | char *
71   fskip(s)                        /* skip float in string */
72   register char  *s;
73   {
74 <        register char  *cp = s;
74 >        register char  *cp;
75  
76 <        while (isspace(*cp))
77 <                cp++;
78 <        if (*cp == '-' || *cp == '+')
79 <                cp++;
80 <        s = cp;
76 >        while (isspace(*s))
77 >                s++;
78 >        if (*s == '-' || *s == '+')
79 >                s++;
80 >        cp = s;
81          while (isdigit(*cp))
82                  cp++;
83          if (*cp == '.') {
# Line 107 | Line 109 | char  *s, *ds;
109          register char  *cp;
110  
111          cp = iskip(s);
112 <        return(cp != NULL && strchr(*cp, ds) != NULL);
112 >        return(cp != NULL && strchr(ds, *cp) != NULL);
113   }
114  
115  
# Line 127 | Line 129 | char  *s, *ds;
129          register char  *cp;
130  
131          cp = fskip(s);
132 <        return(cp != NULL && strchr(*cp, ds) != NULL);
132 >        return(cp != NULL && strchr(ds, *cp) != NULL);
133   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines