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

Comparing ray/src/cv/bsdf2ttree.c (file contents):
Revision 2.62 by greg, Wed May 21 20:42:48 2025 UTC vs.
Revision 2.64 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 12 | Line 12 | static const char RCSid[] = "$Id$";
12   #include <math.h>
13   #include <ctype.h>
14   #include "random.h"
15 #include "platform.h"
16 #include "paths.h"
15   #include "rtio.h"
16   #include "calcomp.h"
17   #include "bsdfrep.h"
20                                /* global argv[0] */
21 char                    *progname;
18                                  /* reciprocity averaging option */
19   static const char       *recip = "";
20                                  /* percentage to cull (<0 to turn off) */
# Line 746 | Line 742 | main(int argc, char *argv[])
742          int                     nsirs = 0;
743          char                    buf[1024];
744          int                     i;
745 <
746 <        progname = argv[0];
745 >                                                /* set global progname */
746 >        fixargv0(argv[0]);
747          esupport |= E_VARIABLE|E_FUNCTION|E_RCONST;
748          esupport &= ~(E_INCHAN|E_OUTCHAN);
749          scompile("PI:3.14159265358979323846", NULL, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines