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.12 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.17 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 31 | Line 31 | static const char      RCSid[] = "$Id$";
31   #include  <time.h>
32   #include  <ctype.h>
33  
34 + #include "resolu.h"
35 +
36   #define  MAXLINE        512
37  
36 #ifndef BSD
37 #define  index  strchr
38 #endif
39
40 extern char  *index();
41
38   char  HDRSTR[] = "#?";          /* information header magic number */
39  
40   char  FMTSTR[] = "FORMAT=";     /* format identifier */
41  
42   char  TMSTR[] = "CAPDATE=";     /* capture date identifier */
43  
44 + extern void     fputword(char *s, FILE *fp);
45 +
46   static int mycheck();
47  
48  
# Line 144 | Line 142 | int  ac;
142   char  **av;
143   FILE  *fp;
144   {
147        int  quote;
148
145          while (ac-- > 0) {
146                  fputword(*av++, fp);
147                  fputc(ac ? ' ' : '\n', fp);
# Line 313 | Line 309 | FILE  *fout;
309  
310          cdat.fp = fout;
311          cdat.fs[0] = '\0';
312 <        if (getheader(fin, mycheck, &cdat) < 0)
312 >        if (getheader(fin, mycheck, (char *)&cdat) < 0)
313                  return(-1);
314          if (!cdat.fs[0])
315                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines