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.42 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13  
14   #include  "rtio.h"
15   #include  "platform.h"
16 #include  "paths.h"
16   #include  "rterror.h"
17   #include  "color.h"
18   #include  "resolu.h"
# Line 47 | Line 46 | char  StandardInput[] = "<stdin>";
46   char  Command[] = "<Command>";
47   char  Label[] = "<Label>";
48  
50 char  *progname;
51
49   struct {
50          char  *name;                    /* file or command name */
51          FILE  *fp;                      /* stream pointer */
# Line 61 | Line 58 | struct {
58   int  nfile;                     /* number of files */
59  
60   int  echoheader = 1;
61 < char  ourfmt[LPICFMT+1] = PICFMT;
61 > char  ourfmt[MAXFMTLEN] = PICFMT;
62   int  wrongformat = 0;
63   double  common_expos = 1.;
64  
# Line 112 | Line 109 | main(
109          int  xsgn, ysgn;
110          char  *thislabel;
111          int  an;
112 +
113          SET_DEFAULT_BINARY();
114          SET_FILE_BINARY(stdin);
115          SET_FILE_BINARY(stdout);
116 <        progname = argv[0];
116 >
117 >        fixargv0(argv[0]);              /* sets global progname */
118  
119          for (an = 1; an < argc && argv[an][0] == '-'; an++)
120                  switch (argv[an][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines