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

Comparing ray/src/cal/calc.c (file contents):
Revision 1.6 by greg, Tue Dec 9 15:55:46 2003 UTC vs.
Revision 1.7 by greg, Thu Dec 19 16:38:12 2013 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  <stdlib.h>
11 #include  <stdio.h>
12 #include  <string.h>
11   #include  <setjmp.h>
12   #include  <ctype.h>
13  
14 + #include  "rtio.h"
15   #include  "rterror.h"
16   #include  "calcomp.h"
17  
# Line 43 | Line 42 | char  *argv[];
42   #endif
43          varset("PI", ':', 3.14159265358979323846);
44  
45 <        for (i = 1; i < argc; i++)
46 <                fcompile(argv[i]);
47 <
45 >        for (i = 1; i < argc; i++) {
46 >                char    *path = getpath(argv[i], getrlibpath(), 0);
47 >                if (path == NULL) {
48 >                        eputs(argv[0]);
49 >                        eputs(": cannot find file '");
50 >                        eputs(argv[i]);
51 >                        eputs("'\n");
52 >                        quit(1);
53 >                }
54 >                fcompile(path);
55 >        }
56          setjmp(env);
57          recover = 1;
58          eclock++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines