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.25 by greg, Thu May 21 18:08:43 2009 UTC vs.
Revision 2.27 by greg, Sun Jun 10 02:46:12 2012 UTC

# Line 31 | Line 31 | static const char      RCSid[] = "$Id$";
31  
32   #define  MAXLINE        2048
33  
34 + extern time_t           timegm(struct tm *tm);
35 +
36   const char  HDRSTR[] = "#?";            /* information header magic number */
37  
38   const char  FMTSTR[] = "FORMAT=";       /* format identifier */
# Line 213 | Line 215 | getheader(             /* get header from file */
215                          return(-1);
216                  if (buf[0] == '\n')
217                          return(0);
216 #ifdef MSDOS
217                if (buf[0] == '\r' && buf[1] == '\n')
218                        return(0);
219 #endif
218                  if (buf[MAXLINE-2] != '\n') {
219                          ungetc(buf[MAXLINE-2], fp);     /* prevent false end */
220                          buf[MAXLINE-2] = '\0';

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines