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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.39 by greg, Thu Sep 2 16:10:01 2021 UTC vs.
Revision 2.41 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 47 | Line 47 | char  StandardInput[] = "<stdin>";
47   char  Command[] = "<Command>";
48   char  Label[] = "<Label>";
49  
50 char  *progname;
51
50   struct {
51          char  *name;                    /* file or command name */
52          FILE  *fp;                      /* stream pointer */
# Line 61 | Line 59 | struct {
59   int  nfile;                     /* number of files */
60  
61   int  echoheader = 1;
62 < char  ourfmt[LPICFMT+1] = PICFMT;
62 > char  ourfmt[MAXFMTLEN] = PICFMT;
63   int  wrongformat = 0;
64   double  common_expos = 1.;
65  
# Line 112 | Line 110 | main(
110          int  xsgn, ysgn;
111          char  *thislabel;
112          int  an;
113 +
114          SET_DEFAULT_BINARY();
115          SET_FILE_BINARY(stdin);
116          SET_FILE_BINARY(stdout);
117 <        progname = argv[0];
117 >
118 >        fixargv0(argv[0]);              /* sets global progname */
119  
120          for (an = 1; an < argc && argv[an][0] == '-'; an++)
121                  switch (argv[an][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines