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

Comparing ray/src/cv/bsdfquery.c (file contents):
Revision 2.10 by greg, Tue Jun 11 16:09:40 2019 UTC vs.
Revision 2.13 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 11 | Line 11 | static const char RCSid[] = "$Id$";
11   */
12  
13   #define _USE_MATH_DEFINES
14 #include <stdio.h>
15 #include <string.h>
14   #include <stdlib.h>
15   #include "rtmath.h"
16   #include "rtio.h"
17 + #include "paths.h"
18   #include "bsdfrep.h"
19  
21 char    *progname;
22
20   /* Read in a vector pair */
21   static int
22   readIOdir(FVECT idir, FVECT odir, FILE *fp, int fmt)
# Line 67 | Line 64 | main(int argc, char *argv[])
64          SDData  myBSDF;
65          FVECT   idir, odir;
66          int     n;
67 +                                                /* set global progname */
68 +        fixargv0(argv[0]);
69                                                  /* check arguments */
71        progname = argv[0];
70          while (argc > 2 && argv[1][0] == '-') {
71                  switch (argv[1][1]) {
72 <                case 'u':                       /* unbuffered output */\
72 >                case 'u':                       /* unbuffered output */
73                          unbuffered = 1;
74                          break;
75                  case 'c':                       /* color output */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines