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

Comparing ray/src/px/ra_t16.c (file contents):
Revision 2.9 by greg, Tue Mar 20 18:45:04 2018 UTC vs.
Revision 2.12 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   *      11/2/88         Adapted from ra_t8.c
9   */
10  
11 #include  <stdio.h>
12 #include  <string.h>
13 #include  <time.h>
11   #include  <math.h>
15
12   #include  "platform.h"
13   #include  "rtio.h"
14   #include  "rtmisc.h"
# Line 34 | Line 30 | static const char      RCSid[] = "$Id$";
30  
31   double  gamcor = 2.2;                   /* gamma correction */
32   int  bradj = 0;                         /* brightness adjustment */
37 char  *progname;
33   char  msg[128];
34  
35   static int getint2(FILE *fp);
# Line 56 | Line 51 | main(int  argc, char  *argv[])
51          struct hdStruct  head;
52          int  reverse = 0;
53          int  i;
54 +        
55          SET_DEFAULT_BINARY();
56          SET_FILE_BINARY(stdin);
57          SET_FILE_BINARY(stdout);
58 <        progname = argv[0];
58 >        fixargv0(argv[0]);
59  
60          head.dataBits = 16;
61          for (i = 1; i < argc; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines