#include <kernel/mod2.h>
#include <string.h>
#include <stdlib.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 104 of file feOpt.cc.
struct fe_option feOptSpec[]
char name(const Variable &v)
◆ feGetOptIndex() [2/2]
Definition at line 117 of file feOpt.cc.
struct fe_option feOptSpec[]
#define LONG_OPTION_RETURN
◆ feOptAction()
Definition at line 201 of file feOpt.cc.
250 if (si_echo < 0 || si_echo > 9)
251 return "argument of option is not in valid range 0..9";
287 case FE_OPT_MIN_TIME:
290 if (
mintime <= 0)
return "invalid float argument";
298 case FE_OPT_TICKS_PER_SEC:
300 int ticks = (int) ((
long)(
feOptSpec[FE_OPT_TICKS_PER_SEC].
value));
302 return "integer argument must be larger than 0";
307 case FE_OPT_DUMP_VERSIONTUPLE:
const char * feHelpBrowser(char *which, int warn)
const CanonicalForm int s
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
void factoryseed(int s)
random seed initializer
static char * feResource(feResourceConfig config, int warn)
char * fe_fgets(const char *pr, char *s, int size)
char * fe_fgets_dummy(const char *, char *, int)
void feOptDumpVersionTuple(void)
void SetTimerResolution(int res)
struct fe_option feOptSpec[]
void SetMinDisplayTime(double mtime)
void feOptHelp(const char *name)
◆ feOptDumpVersionTuple()
void feOptDumpVersionTuple |
( |
void |
| ) |
|
◆ feOptHelp()
void feOptHelp |
( |
const char * |
name | ) |
|
Definition at line 354 of file feOpt.cc.
358 #if defined(ESINGULAR) 359 printf(
"ESingular starts up Singular within emacs;\n");
360 #elif defined(TSINGULAR) 361 printf(
"TSingular starts up Singular within a terminal window;\n");
363 printf(
"Singular is a Computer Algebra System (CAS) for Polynomial Computations.\n");
364 printf(
"Usage: %s [options] [file1 [file2 ...]]\n",
name);
365 printf(
"Options:\n");
382 printf(
" %c%c --%-20s %s\n",
390 printf(
" %c%c --%-20s %s\n",
400 printf(
"\nFor more information, type `help;' from within Singular or visit\n");
401 printf(
"http://www.singular.uni-kl.de or consult the\n");
402 printf(
"Singular manual (available as on-line info or html manual).\n");
struct fe_option feOptSpec[]
char name(const Variable &v)
#define LONG_OPTION_RETURN
◆ fePrintOptValues()
void fePrintOptValues |
( |
| ) |
|
Definition at line 319 of file feOpt.cc.
struct fe_option feOptSpec[]
char name(const Variable &v)
◆ feSetOptValue() [1/2]
Definition at line 153 of file feOpt.cc.
165 if (errno)
return "invalid integer argument";
static const char * feOptAction(feOptIndex opt)
struct fe_option feOptSpec[]
◆ feSetOptValue() [2/2]
Definition at line 187 of file feOpt.cc.
194 return "option value needs to be an integer";
static const char * feOptAction(feOptIndex opt)
struct fe_option feOptSpec[]
◆ SHORT_OPTS_STRING
const char SHORT_OPTS_STRING[] = "bdhpqstvxec:r:u:" |