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

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.49 by greg, Mon Feb 5 20:07:17 2018 UTC vs.
Revision 2.50 by greg, Fri May 4 23:56:49 2018 UTC

# Line 193 | Line 193 | main(
193          init();                         /* set constants */
194                                          /* go back and get expressions */
195          for (a = 1; a < argc; a++) {
196 +                char    *fpath;
197                  if (argv[a][0] == '-')
198                          switch (argv[a][1]) {
199                          case 'x':
# Line 206 | Line 207 | main(
207                          case 'h':
208                                  continue;
209                          case 'f':
210 <                                fcompile(argv[++a]);
210 >                                fpath = getpath(argv[++a], getrlibpath(), 0);
211 >                                if (fpath == NULL) {
212 >                                        eputs(argv[0]);
213 >                                        eputs(": cannot find file '");
214 >                                        eputs(argv[a]);
215 >                                        eputs("'\n");
216 >                                        quit(1);
217 >                                }
218 >                                fcompile(fpath);
219                                  continue;
220                          case 'e':
221                                  scompile(argv[++a], NULL, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines