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.4 by schorsch, Tue Mar 30 16:13:01 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines