| 43 |
|
int imm_irrad = 0; /* compute immediate irradiance? */ |
| 44 |
|
int lim_dist = 0; /* limit distance? */ |
| 45 |
|
|
| 46 |
< |
const char *modname[MAXMODLIST]; /* ordered modifier name list */ |
| 47 |
< |
int nmods = 0; /* number of modifiers */ |
| 46 |
> |
int report_intvl = 0; /* reporting interval (seconds) */ |
| 47 |
|
|
| 48 |
+ |
char **modname = NULL; /* ordered modifier name list */ |
| 49 |
+ |
int nmods = 0; /* number of modifiers */ |
| 50 |
+ |
int modasiz = 0; /* allocated modifier array size */ |
| 51 |
+ |
|
| 52 |
|
void (*addobjnotify[8])() = {ambnotify, NULL}; |
| 53 |
|
|
| 54 |
< |
char RCCONTEXT[] = "RC"; /* our special evaluation context */ |
| 54 |
> |
char RCCONTEXT[] = "RC."; /* our special evaluation context */ |
| 55 |
|
|
| 56 |
|
|
| 57 |
|
static void |
| 183 |
|
progname = argv[0] = fixargv0(argv[0]); |
| 184 |
|
gargv = argv; |
| 185 |
|
gargc = argc; |
| 186 |
+ |
#if defined(_WIN32) || defined(_WIN64) |
| 187 |
+ |
_setmaxstdio(2048); /* increase file limit to maximum */ |
| 188 |
+ |
#endif |
| 189 |
|
/* initialize calcomp routines early */ |
| 190 |
|
initfunc(); |
| 191 |
|
setcontext(RCCONTEXT); |
| 297 |
|
case 'M': /* modifier file */ |
| 298 |
|
check(2,"s"); |
| 299 |
|
addmodfile(argv[++i], curout, prms, binval, bincnt); |
| 300 |
+ |
break; |
| 301 |
+ |
case 't': /* reporting interval */ |
| 302 |
+ |
check(2,"i"); |
| 303 |
+ |
report_intvl = atoi(argv[++i]); |
| 304 |
|
break; |
| 305 |
|
default: |
| 306 |
|
goto badopt; |