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.16 by greg, Fri Jun 27 06:53:21 2003 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines