| 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)) \ |
| 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" : |