197 |
|
gargc = argc; |
198 |
|
/* feature check only? */ |
199 |
|
strcat(RFeatureList, RCONTRIB_FEATURES); |
200 |
< |
if (argc == 2 && !strcmp(argv[1], "-features")) |
200 |
> |
if (argc > 1 && !strcmp(argv[1], "-features")) |
201 |
|
return feature_status(argc-2, argv+2); |
202 |
|
#if defined(_WIN32) || defined(_WIN64) |
203 |
< |
_setmaxstdio(2048); /* increase file limit to maximum */ |
203 |
> |
|
204 |
> |
#if defined(_WIN32) || defined(_WIN64) /* increase file limit to maximum */ |
205 |
> |
for (i = 8192; i > _IOB_ENTRIES; i >>= 1) |
206 |
> |
if (_setmaxstdio(i) == 0) |
207 |
> |
break; |
208 |
|
#endif |
209 |
|
/* initialize calcomp routines early */ |
210 |
|
initfunc(); |
406 |
|
|
407 |
|
void |
408 |
|
wputs( /* warning output function */ |
409 |
< |
char *s |
409 |
> |
const char *s |
410 |
|
) |
411 |
|
{ |
412 |
|
int lasterrno = errno; |
417 |
|
|
418 |
|
void |
419 |
|
eputs( /* put string to stderr */ |
420 |
< |
char *s |
420 |
> |
const char *s |
421 |
|
) |
422 |
|
{ |
423 |
|
static int midline = 0; |