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

Comparing ray/src/common/header.c (file contents):
Revision 2.8 by greg, Sat Jul 27 07:21:38 1996 UTC vs.
Revision 2.10 by gwlarson, Tue Oct 27 08:44:28 1998 UTC

# Line 57 | Line 57 | register char  *r, *s;
57  
58          while (*cp) if (*cp++ != *s++) return(0);
59          if (r == NULL) return(1);
60 <        while (*s) *r++ = *s++;
60 >        while (*s && !isspace(*s)) *r++ = *s++;
61          *r = '\0';
62          return(1);
63   }
# Line 153 | Line 153 | char  *p;
153                          ungetc(buf[MAXLINE-2], fp);     /* prevent false end */
154                          buf[MAXLINE-2] = '\0';
155                  }
156 <                if (f != NULL)
157 <                        (*f)(buf, p);
156 >                if (f != NULL && (*f)(buf, p) < 0)
157 >                        return(-1);
158          }
159   }
160  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines