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

Comparing ray/src/px/ra_t8.c (file contents):
Revision 2.8 by greg, Mon Nov 21 15:55:55 1994 UTC vs.
Revision 2.11 by greg, Tue May 13 17:58:33 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   *  ra_t8.c - program to convert between RADIANCE and
6   *              Targa 8-bit color-mapped images.
# Line 13 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10  
11   #include  <stdio.h>
12  
13 + #include  <time.h>
14 +
15   #include  "color.h"
16  
17   #include  "resolu.h"
# Line 27 | Line 26 | static char SCCSid[] = "$SunId$ LBL";
26  
27   #ifndef  BSD
28   #define  bcopy(s,d,n)           (void)memcpy(d,s,n)
30 extern char  *memcpy();
29   #endif
30  
31   #define  goodpic(h)     (my_imType(h) && my_mapType(h))
# Line 195 | Line 193 | char  *err;
193   }
194  
195  
196 + void
197   eputs(s)
198   char *s;
199   {
# Line 202 | Line 201 | char *s;
201   }
202  
203  
204 + void
205   quit(code)
206   int code;
207   {
# Line 344 | Line 344 | struct hdStruct         *hp;
344                  if (fwritecolrs(scanline, xmax, stdout) < 0)
345                          quiterr("error writing RADIANCE file");
346          }
347 <        free((char *)scanline);
348 <        free((char *)tarData);
347 >        free((void *)scanline);
348 >        free((void *)tarData);
349   }
350  
351  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines