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.8 by gregl, Fri Jan 23 11:38:39 1998 UTC vs.
Revision 2.11 by greg, Wed Apr 23 00:52:34 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  program to convert from RADIANCE RLE to flat format
6   */
7  
8   #include  <stdio.h>
9   #include  <math.h>
10 + #include  <time.h>
11   #include  "color.h"
12   #include  "resolu.h"
13  
# Line 17 | Line 15 | static char SCCSid[] = "$SunId$ LBL";
15   #include  <fcntl.h>
16   #endif
17  
20 extern char     *malloc(), *realloc(), *tempbuffer();
18   extern int      addhline();
19  
20   #define dumpheader(fp)  fwrite(headlines, 1, headlen, fp)
# Line 199 | Line 196 | char   *ospec;
196   }
197  
198  
199 + int
200   addhline(s)                     /* add a line to our info. header */
201   char    *s;
202   {
# Line 211 | Line 209 | char   *s;
209                  frameno = atoi(s+6);
210          n = strlen(s);
211          if (headlen)
212 <                headlines = (char *)realloc(headlines, headlen+n+1);
212 >                headlines = (char *)realloc((void *)headlines, headlen+n+1);
213          else
214                  headlines = (char *)malloc(n+1);
215          if (headlines == NULL) {
# Line 220 | Line 218 | char   *s;
218          }
219          strcpy(headlines+headlen, s);
220          headlen += n;
221 +        return(0);
222   }
223  
224  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines