--- ray/src/rt/rcmain.c 2023/02/24 18:25:36 2.28 +++ ray/src/rt/rcmain.c 2023/08/15 00:46:56 2.31 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rcmain.c,v 2.28 2023/02/24 18:25:36 greg Exp $"; +static const char RCSid[] = "$Id: rcmain.c,v 2.31 2023/08/15 00:46:56 greg Exp $"; #endif /* * rcmain.c - main for rtcontrib ray contribution tracer @@ -55,14 +55,16 @@ char RCCONTEXT[] = "RC."; /* our special evaluation c #if defined(_WIN32) || defined(_WIN64) #define RCONTRIB_FEATURES "Accumulation\nSummation\nRecovery\n" \ - "ValueContribution\nImmediateIrradiance\n" \ + "ImmediateIrradiance\n" \ "ProgressReporting\nDistanceLimiting\n" \ + "InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \ "Outputs=V,W\n" #else #define RCONTRIB_FEATURES "Multiprocessing\n" \ "Accumulation\nSummation\nRecovery\n" \ - "ValueContribution\nImmediateIrradiance\n" \ + "ImmediateIrradiance\n" \ "ProgressReporting\nDistanceLimiting\n" \ + "InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \ "Outputs=V,W\n" #endif @@ -199,11 +201,9 @@ main(int argc, char *argv[]) strcat(RFeatureList, RCONTRIB_FEATURES); if (argc > 1 && !strcmp(argv[1], "-features")) return feature_status(argc-2, argv+2); -#if defined(_WIN32) || defined(_WIN64) - #if defined(_WIN32) || defined(_WIN64) /* increase file limit to maximum */ for (i = 8192; i > _IOB_ENTRIES; i >>= 1) - if (_setmaxstdio(i) == 0) + if (_setmaxstdio(i) == i) break; #endif /* initialize calcomp routines early */