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.3 by greg, Tue May 13 17:58:33 2003 UTC vs.
Revision 2.6 by greg, Fri Aug 13 22:57:56 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 147 | Line 149 | char  *av[];
149                                  }
150                                  amblp += rval;
151                          } else {
152 <                                *amblp++ = av[1];
152 >                                *amblp++ = savqstr(av[1]);
153                                  *amblp = NULL;
154                          }
155                          return(1);
# Line 168 | Line 170 | char  *av[];
170                                  }
171                                  amblp += rval;
172                          } else {
173 <                                *amblp++ = av[1];
173 >                                *amblp++ = savqstr(av[1]);
174                                  *amblp = NULL;
175                          }
176                          return(1);
177                  case 'f':                               /* file */
178                          check(3,"s");
179 <                        ambfile= av[1];
179 >                        ambfile = savqstr(av[1]);
180                          return(1);
181                  }
182                  break;
# 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