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.7 by greg, Fri Jun 10 12:51:18 1994 UTC vs.
Revision 2.10 by greg, Sat Feb 22 02:07:28 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 154 | Line 152 | char  *argv[];
152          quiterr(NULL);
153   userr:
154          fprintf(stderr,
155 <        "Usage: %s [-d][-c ncolors][-b][-g gamv][-e +/-stops] input [output]\n",
155 >        "Usage: %s [-d][-n samp][-c ncolors][-b][-g gamv][-e +/-stops] input [output]\n",
156                          progname);
157          fprintf(stderr, "   Or: %s -r [-g gamv][-e +/-stops] [input [output]]\n",
158                          progname);
# 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