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

Comparing ray/src/cv/pkgBSDF.c (file contents):
Revision 2.7 by greg, Tue Aug 18 15:23:38 2015 UTC vs.
Revision 2.8 by greg, Sat Dec 1 19:45:43 2018 UTC

# Line 12 | Line 12 | static const char RCSid[] = "$Id$";
12   int     do_stdout = 0;                  /* send Radiance object to stdout? */
13   int     do_instance = 0;                /* produce instance/octree pairs? */
14  
15 + char    *progname;                      /* global argv[0] */
16  
17   /* Return appropriate suffix for Z offset */
18   static const char *
# Line 116 | Line 117 | cvtBSDF(char *fname)
117                          retOK = (freopen(rname, "w", stdout) != NULL);
118                  }
119                  if (retOK) {
120 +                        printf("# Produced by: %s %s\n", progname, fname);
121                          if (myBSDF.matn[0] && myBSDF.makr[0])
122                                  printf("# Material '%s' by '%s'\n\n",
123                                                  myBSDF.matn, myBSDF.makr);
# Line 140 | Line 142 | main(int argc, char *argv[])
142   {
143          int     status = 0;
144          int     i;
145 +
146 +        progname = argv[0];
147  
148          for (i = 1; i < argc && argv[i][0] == '-'; i++)
149                  switch (argv[i][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines