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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.2 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.5 by greg, Tue Mar 30 20:40:04 2004 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include "copyright.h"
11  
12   #include  "ray.h"
13 + #include  "paths.h"
14  
15  
16 < int
17 < getrenderopt(ac, av)            /* get next render option */
18 < int  ac;
19 < char  *av[];
16 > extern int
17 > getrenderopt(           /* get next render option */
18 >        int  ac,
19 >        char  *av[]
20 > )
21   {
22   #define  check(ol,al)           if (av[0][ol] || \
23                                  badarg(ac-1,av+1,al)) \
# Line 139 | Line 141 | char  *av[];
141                          }
142                          if (av[0][2] == 'I') {  /* file */
143                                  rval = wordfile(amblp,
144 <                                        getpath(av[1],getlibpath(),R_OK));
144 >                                        getpath(av[1],getrlibpath(),R_OK));
145                                  if (rval < 0) {
146                                          sprintf(errmsg,
147                          "cannot open ambient include file \"%s\"", av[0]);
# Line 160 | Line 162 | char  *av[];
162                          }
163                          if (av[0][2] == 'E') {  /* file */
164                                  rval = wordfile(amblp,
165 <                                        getpath(av[1],getlibpath(),R_OK));
165 >                                        getpath(av[1],getrlibpath(),R_OK));
166                                  if (rval < 0) {
167                                          sprintf(errmsg,
168                          "cannot open ambient exclude file \"%s\"", av[0]);
# Line 210 | Line 212 | char  *av[];
212   }
213  
214  
215 < void
216 < print_rdefaults()               /* print default render values to stdout */
215 > extern void
216 > print_rdefaults(void)           /* print default render values to stdout */
217   {
216        register char  *cp;
217
218          printf(do_irrad ? "-i+\t\t\t\t# irradiance calculation on\n" :
219                          "-i-\t\t\t\t# irradiance calculation off\n");
220          printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines