--- ray/src/rt/rcmain.c 2016/03/10 18:25:46 2.15 +++ ray/src/rt/rcmain.c 2018/01/18 19:43:43 2.18 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rcmain.c,v 2.15 2016/03/10 18:25:46 schorsch Exp $"; +static const char RCSid[] = "$Id: rcmain.c,v 2.18 2018/01/18 19:43:43 greg Exp $"; #endif /* * rcmain.c - main for rtcontrib ray contribution tracer @@ -48,7 +48,7 @@ int nmods = 0; /* number of modifiers */ void (*addobjnotify[8])() = {ambnotify, NULL}; -char RCCONTEXT[] = "RC"; /* our special evaluation context */ +char RCCONTEXT[] = "RC."; /* our special evaluation context */ static void @@ -180,6 +180,9 @@ main(int argc, char *argv[]) progname = argv[0] = fixargv0(argv[0]); gargv = argv; gargc = argc; +#if defined(_WIN32) || defined(_WIN64) + _setmaxstdio(2048); /* increase file limit to maximum */ +#endif /* initialize calcomp routines early */ initfunc(); setcontext(RCCONTEXT); @@ -363,7 +366,7 @@ main(int argc, char *argv[]) badopt: fprintf(stderr, -"Usage: %s [-n nprocs][-V][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", +"Usage: %s [-n nprocs][-V][-c count][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", progname); sprintf(errmsg, "command line error at '%s'", argv[i]); error(USER, errmsg);