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.9 by greg, Fri Jul 24 16:00:10 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++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines