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

Comparing ray/src/util/rcode_norm.c (file contents):
Revision 2.8 by greg, Mon Jul 20 15:53:30 2020 UTC vs.
Revision 2.11 by greg, Wed Jun 4 22:34:27 2025 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9  
10   #include <stdlib.h>
11   #include "platform.h"
12 + #include "paths.h"
13   #include "rtio.h"
14   #include "rtmath.h"
15   #include "normcodec.h"
16  
16 char            *progname;              /* set in main() */
17  
18
18   /* Report usage error and exit */
19   static void
20   usage_exit(int code)
# Line 225 | Line 224 | main(int argc, char *argv[])
224          int             unbuffered = 0;
225          NORMCODEC       nc;
226          int             a;
227 <
228 <        progname = argv[0];
227 >                                        /* set global progname */
228 >        fixargv0(argv[0]);
229          set_nc_defaults(&nc);
230          nc.hdrflags = HF_ALL;
231          for (a = 1; a < argc && argv[a][0] == '-'; a++)
# Line 342 | Line 341 | main(int argc, char *argv[])
341                  fputs(": cannot open for writing\n", stderr);
342                  return 1;
343          }
344 <        SET_FILE_BINARY(dc.finp);       /* starting assumption */
344 >        SET_FILE_BINARY(nc.finp);       /* starting assumption */
345          SET_FILE_BINARY(stdout);
346   #ifdef getc_unlocked                    /* avoid stupid semaphores */
347          flockfile(nc.finp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines