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

Comparing ray/src/px/pfilt.c (file contents):
Revision 2.39 by greg, Fri Dec 15 01:57:45 2023 UTC vs.
Revision 2.41 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 13 | Line 13 | static const char RCSid[] = "$Id$";
13   #include  <signal.h>
14   #include  "pfilt.h"
15   #include  "platform.h"
16 #include  "paths.h"
16   #include  "view.h"
17  
18   #define  FEQ(a,b)       ((a) >= .98*(b) && (a) <= 1.02*(b))
# Line 76 | Line 75 | float  **greybar;              /* grey-averaged input values */
75   int  obarsize = 0;              /* size of output scan bar */
76   int  orad = 0;                  /* output window radius */
77  
79 char  *progname;
80
78   static void copyfile(FILE  *infp, FILE  *out);
79   static void pass1(FILE  *infp);
80   static void pass2(FILE  *infp);
# Line 162 | Line 159 | main(
159          double  outaspect = 0.0;
160          double  d;
161          int  i, j;
162 +
163 +        fixargv0(argv[0]);              /* sets global progname */
164          SET_DEFAULT_BINARY();
165          SET_FILE_BINARY(stdin);
166          SET_FILE_BINARY(stdout);
# Line 179 | Line 178 | main(
178          signal(SIGXCPU, quit);
179          signal(SIGXFSZ, quit);
180   #endif
182
183        progname = argv[0] = fixargv0(argv[0]);
184
181          for (i = 1; i < argc; i++)
182                  if (argv[i][0] == '-')
183                          switch (argv[i][1]) {
# Line 216 | Line 212 | main(
212                                  if (d < 1e-20 || d > 1e20) {
213                                          fprintf(stderr,
214                                                  "%s: exposure out of range\n",
215 <                                                        argv[0]);
215 >                                                        progname);
216                                          quit(1);
217                                  }
218                                  switch (argv[i][2]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines