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

Comparing ray/src/gen/genrev.c (file contents):
Revision 2.11 by greg, Fri Jan 12 00:50:17 2018 UTC vs.
Revision 2.12 by greg, Fri May 4 23:56:49 2018 UTC

# Line 16 | Line 16 | static const char      RCSid[] = "$Id$";
16   #include  <string.h>
17   #include  <math.h>
18  
19 + #include  "rtio.h"
20   #include  "rterror.h"
21   #include  "resolu.h"
22   #include  "calcomp.h"
# Line 112 | Line 113 | char  *argv[];
113          for (i = 6; i < argc; i++)
114                  if (!strcmp(argv[i], "-e"))
115                          scompile(argv[++i], NULL, 0);
116 <                else if (!strcmp(argv[i], "-f"))
117 <                        fcompile(argv[++i]);
118 <                else if (!strcmp(argv[i], "-s"))
116 >                else if (!strcmp(argv[i], "-f")) {
117 >                        char  *fpath = getpath(argv[++i], getrlibpath(), 0);
118 >                        if (fpath == NULL) {
119 >                                fprintf(stderr, "%s: cannot find file '%s'\n",
120 >                                                argv[0], argv[i]);
121 >                                quit(1);
122 >                        }
123 >                        fcompile(fpath);
124 >                } else if (!strcmp(argv[i], "-s"))
125                          smooth = 1;
126                  else
127                          goto userror;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines