13#include "factory/factory.h"
34#include <NTL/config.h>
46#if defined(OMALLOC_USES_MALLOC)
69 global_argv0 = argv[0];
74 #if NTL_MAJOR_VERSION>=10
75 #ifdef NTL_THREAD_BOOST
82 int optc, option_index;
88 if (optc ==
'?' || optc == 0)
90 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
109 fprintf(stderr,
"Error: Option '--%s' %s\n",
112 fprintf(stderr,
"Error: Option '--%s=%s' %s\n",
114 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
117 if (optc ==
'h') exit(0);
120 case FE_OPT_DUMP_VERSIONTUPLE:
133#ifndef MAKE_DISTRIBUTION
137" A Computer Algebra System for Polynomial Computations / version %s\n"
139" by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\ %s\n"
140"FB Mathematik der Universitaet, D-67653 Kaiserslautern \\\n"
141, VERSION, VERSION_DATE);
143 " shell invocation and links are disallowed");
154#ifdef SINGULAR_PYOBJECT_SETUP_H
157#ifdef SI_COUNTEDREF_AUTOLOAD
178 Warn(
"Can not open %s", argv[
i]);
219 char *linkname=(
char*)
feOptValue(FE_OPT_LINK);
220 if((linkname!=
NULL)&&(strcmp(linkname,
"ssi")==0))
228 Print(
"** missing arguments: -b requires --link/--MPhost/--MPport\n");
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
VAR jmp_buf si_start_jmpbuf
VAR BOOLEAN singular_in_batchmode
void init_signals()
init signal handlers and error handling for libraries: NTL, factory
This file defines reusable classes supporting reference counted interpreter objects and initiates the...
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
#define LONG_OPTION_RETURN
const char SHORT_OPTS_STRING[]
feOptIndex feGetOptIndex(const char *name)
const char * feSetOptValue(feOptIndex opt, char *optarg)
static void * feOptValue(feOptIndex opt)
EXTERN_VAR struct fe_option feOptSpec[]
int fe_getopt_long(int argc, char *const *argv, const char *options, const struct fe_option *long_options, int *opt_index)
#define optional_argument
char * fe_fgets_dummy(const char *, char *, int)
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
BOOLEAN newFile(char *fname)
Voice * feInitStdin(Voice *pp)
void * omMallocFunc(size_t size)
void * omReallocSizeFunc(void *old_addr, size_t old_size, size_t new_size)
void omFreeSizeFunc(void *addr, size_t size)
#define omInitGetBackTrace()
void * malloc(size_t size)
void pyobject_setup()
initialize blackbox support for pyobject; functionilty os autoloaded on demand
int status int void * buf
int ssiBatch(const char *host, const char *port)
int main(int argc, char **argv)
char name(const Variable &v)
#define omInitRet_2_Info(argv0)