#include <string.h>
#include "kernel/mod2.h"
#include "factory/factory.h"
#include "feOpt.h"
#include "misc/options.h"
#include "misc/sirandom.h"
#include "fehelp.h"
#include "omalloc/omalloc.h"
#include "resources/feResource.h"
#include "kernel/oswrapper/feread.h"
#include "kernel/oswrapper/timer.h"
#include "ipshell.h"
#include "tok.h"
#include "sdb.h"
#include "cntrlc.h"
#include <errno.h>
Go to the source code of this file.
◆ FE_OPT_STRUCTURE
◆ feGetOptIndex() [1/2]
Definition at line 101 of file feOpt.cc.
char name(const Variable &v)
EXTERN_VAR struct fe_option feOptSpec[]
◆ feGetOptIndex() [2/2]
Definition at line 114 of file feOpt.cc.
#define LONG_OPTION_RETURN
◆ feOptAction()
Definition at line 199 of file feOpt.cc.
248 if (si_echo < 0 || si_echo > 9)
249 return "argument of option is not in valid range 0..9";
285 case FE_OPT_MIN_TIME:
288 if (
mintime <= 0)
return "invalid float argument";
296 case FE_OPT_TICKS_PER_SEC:
298 int ticks = (int) ((
long)(
feOptSpec[FE_OPT_TICKS_PER_SEC].
value));
300 return "integer argument must be larger than 0";
305 case FE_OPT_DUMP_VERSIONTUPLE:
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_stdin)(const char *pr, char *s, int size)
char * fe_fgets(const char *pr, char *s, int size)
char * fe_fgets_dummy(const char *, char *, int)
void SetMinDisplayTime(double mtime)
STATIC_VAR double mintime
void SetTimerResolution(int res)
◆ feOptDumpVersionTuple()
void feOptDumpVersionTuple |
( |
void |
| ) |
|
◆ feOptHelp()
void feOptHelp |
( |
const char * |
name | ) |
|
Definition at line 352 of file feOpt.cc.
356 #if defined(ESINGULAR)
357 printf(
"ESingular starts up Singular within emacs;\n");
358 #elif defined(TSINGULAR)
359 printf(
"TSingular starts up Singular within a terminal window;\n");
361 printf(
"Singular is a Computer Algebra System (CAS) for Polynomial Computations.\n");
362 printf(
"Usage: %s [options] [file1 [file2 ...]]\n",
name);
363 printf(
"Options:\n");
380 printf(
" %c%c --%-20s %s\n",
388 printf(
" %c%c --%-20s %s\n",
398 printf(
"\nFor more information, type `help;' from within Singular or visit\n");
399 printf(
"http://www.singular.uni-kl.de or consult the\n");
400 printf(
"Singular manual (available as on-line info or html manual).\n");
◆ fePrintOptValues()
void fePrintOptValues |
( |
| ) |
|
◆ feSetOptValue() [1/2]
Definition at line 151 of file feOpt.cc.
163 if (errno)
return "invalid integer argument";
static const char * feOptAction(feOptIndex opt)
◆ feSetOptValue() [2/2]
Definition at line 185 of file feOpt.cc.
192 return "option value needs to be an integer";
◆ SHORT_OPTS_STRING
const char SHORT_OPTS_STRING[] = "bdhpqstvxec:r:u:" |