203{
204
205 switch(opt)
206 {
207 case FE_OPT_BATCH:
211
212 case FE_OPT_HELP:
215
216 case FE_OPT_PROFILE:
219
220 case FE_OPT_QUIET:
223 else
226
227 case FE_OPT_NO_TTY:
231
232 case FE_OPT_SDB:
233 #ifdef HAVE_SDB
236 else
238 #endif
240
241 case FE_OPT_VERSION:
242 {
247 }
248
249 case FE_OPT_ECHO:
251 if (si_echo < 0 || si_echo > 9)
252 return "argument of option is not in valid range 0..9";
254
255 case FE_OPT_RANDOM:
261
262 case FE_OPT_EMACS:
264 {
265
266
271 }
273
274 case FE_OPT_NO_WARN:
277 else
280
281 case FE_OPT_NO_OUT:
284 else
287
288 case FE_OPT_MIN_TIME:
289 {
291 if (
mintime <= 0)
return "invalid float argument";
294 }
295
296 case FE_OPT_BROWSER:
298
299 case FE_OPT_TICKS_PER_SEC:
300 {
301 int ticks = (int) ((
long)(
feOptSpec[FE_OPT_TICKS_PER_SEC].
value));
302 if (ticks <= 0)
303 return "integer argument must be larger than 0";
306 }
307
308 case FE_OPT_DUMP_VERSIONTUPLE:
309 {
312 }
313
314 #ifdef HAVE_FLINT
315 #if __FLINT_RELEASE >= 20503
316 case FE_OPT_FLINT_THREADS:
317 {
319 nthreads = FLINT_MAX(nthreads, WORD(1));
320 flint_set_num_threads(nthreads);
321 int * cpu_affinities = new int[nthreads];
322 for (
slong i = 0;
i < nthreads;
i++)
323 cpu_affinities[
i] = (
int)
i;
324 flint_set_thread_affinity(cpu_affinities, nthreads);
325 delete[] cpu_affinities;
327 }
328 #endif
329 #endif
330
331 default:
333 }
334}
void factoryseed(int s)
random seed initializer
const CanonicalForm int s
void feOptDumpVersionTuple(void)
void feOptHelp(const char *name)
static char * feResource(feResourceConfig config, int warn)
const char * feHelpBrowser(char *which, int warn)
char * fe_fgets_dummy(const char *, char *, int)
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
char * fe_fgets(const char *pr, char *s, int size)
void SetMinDisplayTime(double mtime)
STATIC_VAR double mintime
void SetTimerResolution(int res)