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

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 2.10 by greg, Sat Feb 22 02:07:28 2003 UTC vs.
Revision 2.14 by schorsch, Mon Oct 27 10:24:51 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include  <stdio.h>
9   #include  <math.h>
10   #include  <time.h>
11 + #include  <string.h>
12 +
13 + #include  "platform.h"
14 + #include  "rtprocess.h"
15   #include  "color.h"
16   #include  "resolu.h"
17  
14 #ifdef MSDOS
15 #include  <fcntl.h>
16 #endif
17
18   extern int      addhline();
19  
20   #define dumpheader(fp)  fwrite(headlines, 1, headlen, fp)
# Line 77 | Line 77 | gotfile:
77                                  progname, argv[i]);
78                  exit(1);
79          }
80 < #ifdef MSDOS
81 <        setmode(fileno(stdin), O_BINARY);
82 < #endif
80 >        SET_FILE_BINARY(stdin);
81          ospec = i==argc-2 ? argv[i+1] : (char *)NULL;
82          while (transfer(ospec))
83                  ;
# Line 154 | Line 152 | char   *ospec;
152                          }
153                  }
154          }
155 < #ifdef MSDOS
158 <        setmode(fileno(fp), O_BINARY);
159 < #endif
155 >        SET_FILE_BINARY(fp);
156          dumpheader(fp);                 /* put out header */
157          fputs(progname, fp);
158          if (bradj)
# Line 209 | Line 205 | char   *s;
205                  frameno = atoi(s+6);
206          n = strlen(s);
207          if (headlen)
208 <                headlines = (char *)realloc(headlines, headlen+n+1);
208 >                headlines = (char *)realloc((void *)headlines, headlen+n+1);
209          else
210                  headlines = (char *)malloc(n+1);
211          if (headlines == NULL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines