Functions
tesths.cc File Reference
#include "kernel/mod2.h"
#include "omalloc/omalloc.h"
#include "misc/options.h"
#include "factory/factory.h"
#include "kernel/oswrapper/feread.h"
#include "Singular/fevoices.h"
#include "kernel/oswrapper/timer.h"
#include "ipshell.h"
#include "cntrlc.h"
#include "links/silink.h"
#include "ipid.h"
#include "sdb.h"
#include "feOpt.h"
#include "distrib.h"
#include "mmalloc.h"
#include "tok.h"
#include "fegetopt.h"
#include "Singular/countedref.h"
#include "Singular/pyobject_setup.h"
#include <unistd.h>
#include <NTL/config.h>

Go to the source code of this file.

Functions

int siInit (char *)
 
int mmInit (void)
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 56 of file tesths.cc.

59 {
60  mmInit();
61  // Don't worry: ifdef OM_NDEBUG, then all these calls are undef'ed
62  omInitRet_2_Info(argv[0]);
64 
65  siInit(argv[0]);
66  init_signals();
67  #ifdef HAVE_NTL
68  #if NTL_MAJOR_VERSION>=10
69  #ifdef NTL_THREAD_BOOST
70  SetNumThreads(feOptValue(FE_OPT_CPUS));
71  #endif
72  #endif
73  #endif
74 
75  // parse command line options
76  int optc, option_index;
77  const char* errormsg;
78  while((optc = fe_getopt_long(argc, argv,
79  SHORT_OPTS_STRING, feOptSpec, &option_index))
80  != EOF)
81  {
82  if (optc == '?' || optc == 0)
83  {
84  fprintf(stderr, "Use '%s --help' for a complete list of options\n", feArgv0);
85  exit(1);
86  }
87 
88  if (optc != LONG_OPTION_RETURN)
89  option_index = feGetOptIndex(optc);
90 
91  assume(option_index >= 0 && option_index < (int) FE_OPT_UNDEF);
92 
93  if (fe_optarg == NULL &&
94  (feOptSpec[option_index].type == feOptBool ||
95  feOptSpec[option_index].has_arg == optional_argument))
96  errormsg = feSetOptValue((feOptIndex) option_index, (int) 1);
97  else
98  errormsg = feSetOptValue((feOptIndex) option_index, fe_optarg);
99 
100  if (errormsg)
101  {
102  if (fe_optarg == NULL)
103  fprintf(stderr, "Error: Option '--%s' %s\n",
104  feOptSpec[option_index].name, errormsg);
105  else
106  fprintf(stderr, "Error: Option '--%s=%s' %s\n",
107  feOptSpec[option_index].name, fe_optarg, errormsg);
108  fprintf(stderr, "Use '%s --help' for a complete list of options\n", feArgv0);
109  exit(1);
110  }
111  if (optc == 'h') exit(0);
112  switch(option_index)
113  {
114  case FE_OPT_DUMP_VERSIONTUPLE:
115  exit(0);
116  break;
117  default: ;
118  }
119  }
120 
121  /* say hello */
122 
123  if (TEST_V_QUIET)
124  {
125  (printf)(
126 " SINGULAR /"
127 #ifndef MAKE_DISTRIBUTION
128 " Development"
129 #endif
130 "\n"
131 " A Computer Algebra System for Polynomial Computations / version %s\n"
132 " 0<\n"
133 " by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\ %s\n"
134 "FB Mathematik der Universitaet, D-67653 Kaiserslautern \\ Debian " DEB_PKG_VERSION "\n"
135 , VERSION, VERSION_DATE);
136  if (feOptValue(FE_OPT_NO_SHELL)) WarnS("running in restricted mode:"
137  " shell invocation and links are disallowed");
138  }
139  else
140  {
141  if (feOptValue(FE_OPT_SORT)) On(SW_USE_NTL_SORT);
142  dup2(1,2);
143  /* alternative:
144  * memcpy(stderr,stdout,sizeof(FILE));
145  */
146  }
147 
148 #ifdef SINGULAR_PYOBJECT_SETUP_H
149  pyobject_setup();
150 #endif
151 #ifdef SI_COUNTEDREF_AUTOLOAD
152  countedref_init();
153 #endif
154  errorreported = 0;
155 
156  // -- example for "static" modules ------
157  //load_builtin("huhu.so",FALSE,(SModulFunc_t)huhu_mod_init);
158  //module_help_main("huhu.so","Help for huhu\nhaha\n");
159  //module_help_proc("huhu.so","p","Help for huhu::p\nhaha\n");
160  setjmp(si_start_jmpbuf);
161 
162  // Now, put things on the stack of stuff to do
163  // Last thing to do is to execute given scripts
164  if (fe_optind < argc)
165  {
166  int i = argc - 1;
167  FILE *fd;
168  while (i >= fe_optind)
169  {
170  if ((fd = feFopen(argv[i], "r")) == NULL)
171  {
172  Warn("Can not open %s", argv[i]);
173  }
174  else
175  {
176  fclose(fd);
177  newFile(argv[i]);
178  }
179  i--;
180  }
181  }
182  else
183  {
185  }
186 
187  // before scripts, we execute -c, if it was given
188  if (feOptValue(FE_OPT_EXECUTE) != NULL)
189  newBuffer(omStrDup((char*) feOptValue(FE_OPT_EXECUTE)), BT_execute);
190 
191  // first thing, however, is to load .singularrc from Singularpath
192  // and cwd/$HOME (in that order).
193  if (! feOptValue(FE_OPT_NO_RC))
194  {
195  char buf[MAXPATHLEN];
196  FILE * rc = feFopen("." DIR_SEPP ".singularrc", "r", buf);
197  if (rc == NULL) rc = feFopen("~" DIR_SEPP ".singularrc", "r", buf);
198  if (rc == NULL) rc = feFopen(".singularrc", "r", buf);
199 
200  if (rc != NULL)
201  {
202  if (BVERBOSE(V_LOAD_LIB))
203  Print("// ** executing %s\n", buf);
204  fclose(rc);
205  newFile(buf);
206  }
207  }
208 
209  /* start shell */
211  {
213  char *linkname=(char*) feOptValue(FE_OPT_LINK);
214  if((linkname!=NULL)&&(strcmp(linkname,"ssi")==0))
215  {
216  return ssiBatch((char*) feOptValue(FE_OPT_MPHOST),(char*) feOptValue(FE_OPT_MPPORT));
217  //Print("batch: p:%s, h:%s\n",(char*) feOptValue(FE_OPT_MPPORT),(char*) feOptValue(FE_OPT_MPHOST));
218  //exit(0);
219  }
220  else
221  {
222  Print("** missing arguments: -b requires --link/--MPhost/--MPport\n");
223  return 1;
224  }
225  }
226  setjmp(si_start_jmpbuf);
227  yyparse();
228  m2_end(0);
229  return 0;
230 }
feOptIndex
Definition: feOptGen.h:15
jmp_buf si_start_jmpbuf
Definition: cntrlc.cc:95
int status int fd
Definition: si_signals.h:59
#define TEST_V_QUIET
Definition: options.h:131
#define optional_argument
Definition: fegetopt.h:101
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
Definition: feread.cc:34
void pyobject_setup()
initialize blackbox support for pyobject; functionilty os autoloaded on demand
#define MAXPATHLEN
Definition: omRet2Info.c:22
#define Print
Definition: emacs.cc:80
char * fe_optarg
Definition: fegetopt.c:96
static void * feOptValue(feOptIndex opt)
Definition: feOpt.h:40
#define omInitGetBackTrace()
#define V_LOAD_LIB
Definition: options.h:47
char * fe_fgets_dummy(const char *, char *, int)
Definition: feread.cc:451
BOOLEAN newFile(char *fname)
Definition: fevoices.cc:119
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
Definition: cf_defs.h:36
#define TRUE
Definition: auxiliary.h:98
const char * feSetOptValue(feOptIndex opt, char *optarg)
Definition: feOpt.cc:151
#define WarnS
Definition: emacs.cc:78
int fe_getopt_long(int argc, char *const *argv, const char *options, const struct fe_option *long_options, int *opt_index)
Definition: fegetopt.c:666
#define omInitRet_2_Info(argv0)
Definition: xalloc.h:318
BOOLEAN singular_in_batchmode
Definition: cntrlc.cc:65
Voice * feInitStdin(Voice *pp)
Definition: fevoices.cc:655
#define assume(x)
Definition: mod2.h:390
int mmInit(void)
Definition: tesths.cc:40
int status int void * buf
Definition: si_signals.h:59
struct fe_option feOptSpec[]
int siInit(char *)
Definition: misc_ip.cc:1316
void On(int sw)
switches
#define DIR_SEPP
Definition: feResource.h:7
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
Definition: feFopen.cc:47
void countedref_init()
Definition: countedref.h:458
int i
Definition: cfEzgcd.cc:125
char name(const Variable &v)
Definition: factory.h:180
int yyparse(void)
Definition: grammar.cc:2111
short errorreported
Definition: feFopen.cc:23
char * feArgv0
Definition: feResource.cc:19
#define BVERBOSE(a)
Definition: options.h:35
void m2_end(int i)
Definition: misc_ip.cc:1096
#define NULL
Definition: omList.c:12
#define VERSION
Definition: mod2.h:18
#define LONG_OPTION_RETURN
Definition: feOptTab.h:4
Voice * currentVoice
Definition: fevoices.cc:47
void init_signals()
init signal handlers and error handling for libraries: NTL, factory
Definition: cntrlc.cc:559
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
Definition: fevoices.cc:156
feOptIndex feGetOptIndex(const char *name)
Definition: feOpt.cc:101
int fe_optind
Definition: fegetopt.c:111
const char SHORT_OPTS_STRING[]
Definition: feOpt.cc:26
#define Warn
Definition: emacs.cc:77
#define omStrDup(s)
Definition: omAllocDecl.h:263

◆ mmInit()

int mmInit ( void  )

Definition at line 40 of file tesths.cc.

41 {
42 #ifndef X_OMALLOC
43 #if defined(OMALLOC_USES_MALLOC)
44  /* in mmstd.c, for some architectures freeSize() unconditionally uses the *system* free() */
45  /* sage ticket 5344: http://trac.sagemath.org/sage_trac/ticket/5344 */
46  /* do not rely on the default in Singular as libsingular may be different */
47  mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc);
48 #else
49  mp_set_memory_functions(malloc,reallocSize,freeSize);
50 #endif
51 #endif
52  return 1;
53 }
void omFreeSizeFunc(void *addr, size_t size)
void * omReallocSizeFunc(void *old_addr, size_t old_size, size_t new_size)
void * malloc(size_t size)
Definition: omalloc.c:92
#define freeSize
Definition: omAllocFunc.c:15
#define reallocSize
Definition: omAllocFunc.c:17
void * omMallocFunc(size_t size)

◆ siInit()

int siInit ( char *  )

Definition at line 1316 of file misc_ip.cc.

1317 {
1318 // memory initialization: -----------------------------------------------
1319  om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc;
1320 #ifndef OM_NDEBUG
1321 #ifndef __OPTIMIZE__
1322  om_Opts.ErrorHook = dErrorBreak;
1323 #else
1324  om_Opts.Keep = 0; /* !OM_NDEBUG, __OPTIMIZE__*/
1325 #endif
1326 #else
1327  om_Opts.Keep = 0; /* OM_NDEBUG */
1328 #endif
1329  omInitInfo();
1330 
1331 // options ---------------------------------------------------------------
1332  si_opt_1=0;
1333 // interpreter tables etc.: -----------------------------------------------
1334  memset(&sLastPrinted,0,sizeof(sleftv));
1336 
1337  extern int iiInitArithmetic(); iiInitArithmetic(); // iparith.cc
1338 
1339  basePack=(package)omAlloc0(sizeof(*basePack));
1341  idhdl h;
1342  h=enterid("Top", 0, PACKAGE_CMD, &IDROOT, FALSE);
1343  IDPACKAGE(h)=basePack;
1344  IDPACKAGE(h)->language = LANG_TOP;
1345  currPackHdl=h;
1346  basePackHdl=h;
1347 
1348  coeffs_BIGINT = nInitChar(n_Q,(void*)1);
1349 
1350 #if 1
1351  // def HAVE_POLYEXTENSIONS
1352  if(TRUE)
1353  {
1354  n_coeffType type;
1355  #ifdef SINGULAR_4_2
1356  type = nRegister(n_polyExt, n2pInitChar);
1357  assume(type == n_polyExt);
1358  #endif
1359 
1360  type = nRegister(n_algExt, naInitChar);
1361  assume(type == n_algExt);
1362 
1363  type = nRegister(n_transExt, ntInitChar);
1364  assume(type == n_transExt);
1365 
1366  (void)type;
1367  }
1368 #endif
1369 
1370 // random generator: -----------------------------------------------
1371  int t=initTimer();
1372  if (t==0) t=1;
1373  initRTimer();
1374  siSeed=t;
1375  factoryseed(t);
1376  siRandomStart=t;
1377  feOptSpec[FE_OPT_RANDOM].value = (void*) ((long)siRandomStart);
1378 
1379 // ressource table: ----------------------------------------------------
1380  // Don't worry: ifdef OM_NDEBUG, then all these calls are undef'ed
1381  // hack such that all shared' libs in the bindir are loaded correctly
1383 
1384 // singular links: --------------------------------------------------
1385  slStandardInit();
1386  myynest=0;
1387 // how many processes ? -----------------------------------------------------
1388  int cpus=2;
1389  int cpu_n;
1390  #ifdef _SC_NPROCESSORS_ONLN
1391  if ((cpu_n=sysconf(_SC_NPROCESSORS_ONLN))>cpus) cpus=cpu_n;
1392  #elif defined(_SC_NPROCESSORS_CONF)
1393  if ((cpu_n=sysconf(_SC_NPROCESSORS_CONF))>cpus) cpus=cpu_n;
1394  #endif
1395  feSetOptValue(FE_OPT_CPUS, cpus);
1396 // how many threads ? -----------------------------------------------------
1397  feSetOptValue(FE_OPT_THREADS, cpus);
1398 
1399 // default coeffs
1400  {
1401  idhdl h;
1402  h=enterid("QQ",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1403  IDDATA(h)=(char*)nInitChar(n_Q,NULL);
1404  h=enterid("ZZ",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1405  IDDATA(h)=(char*)nInitChar(n_Z,NULL);
1406  nRegisterCfByName(nrnInitCfByName,n_Zn); // and n_Znm
1407  iiAddCproc("kernel","crossprod",FALSE,iiCrossProd);
1408  iiAddCproc("kernel","Float",FALSE,iiFloat);
1409  //h=enterid("RR",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1410  //IDDATA(h)=(char*)nInitChar(n_R,NULL);
1411  //h=enterid("CC",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1412  //IDDATA(h)=(char*)nInitChar(n_long_C,NULL);
1413  n_coeffType t;
1414 #ifdef SINGULAR_4_2
1415  t=nRegister(n_unknown,n_AEInitChar);
1416  if (t!=n_unknown)
1417  {
1418  h=enterid("AE",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1419  IDDATA(h)=(char*)nInitChar(t,NULL);
1420  }
1421  t=nRegister(n_unknown,n_QAEInitChar);
1422  if (t!=n_unknown)
1423  {
1424  h=enterid("QAE",0/*level*/, CRING_CMD,&(basePack->idroot),FALSE /*init*/,FALSE /*search*/);
1425  IDDATA(h)=(char*)nInitChar(t,NULL);
1426  }
1427  n_pAE=nRegister(n_unknown,n_pAEInitChar);
1428  if (n_pAE!=n_unknown)
1429  {
1430  iiAddCproc("kernel","pAE",FALSE,ii_pAE_init);
1431  }
1432 #endif
1433  #ifdef HAVE_FLINT
1435  if (n_FlintQ!=n_unknown)
1436  {
1437  iiAddCproc("kernel","flintQ",FALSE,ii_FlintQ_init);
1439  }
1441  if (n_FlintZn!=n_unknown)
1442  {
1443  iiAddCproc("kernel","flintZn",FALSE,ii_FlintZn_init);
1445  }
1446  #endif
1447  }
1448 // setting routines for PLURAL QRINGS:
1449 // allowing to use libpolys without libSingular(kStd)
1450 #ifdef HAVE_PLURAL
1451  nc_NF=k_NF;
1457 #endif
1458 // loading standard.lib -----------------------------------------------
1459  if (! feOptValue(FE_OPT_NO_STDLIB))
1460  {
1461  BITSET save1,save2;
1462  SI_SAVE_OPT(save1,save2);
1463  si_opt_2 &= ~Sy_bit(V_LOAD_LIB);
1464  iiLibCmd(omStrDup("standard.lib"), TRUE,TRUE,TRUE);
1465  SI_RESTORE_OPT(save1,save2);
1466  }
1467  errorreported = 0;
1468 }
BBA_Proc sca_mora
Definition: old.gring.cc:70
int iiInitArithmetic()
initialisation of arithmetic structured data
Definition: iparith.cc:9112
BOOLEAN flintQ_InitChar(coeffs cf, void *infoStruct)
Definition: flintcf_Q.cc:562
poly k_NF(ideal F, ideal Q, poly p, int syzComp, int lazyReduce, const ring _currRing)
NOTE: this is just a wrapper which sets currRing for the actual kNF call.
Definition: kstd1.cc:3033
ip_package * package
Definition: structs.h:48
void omSingOutOfMemoryFunc()
Definition: misc_ip.cc:1194
unsigned si_opt_1
Definition: options.c:5
void factoryseed(int s)
random seed initializer
Definition: cf_random.cc:176
Class used for (list of) interpreter objects.
Definition: subexpr.h:82
ideal k_gnc_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Definition: gr_kstd2.cc:1030
only used if HAVE_RINGS is defined
Definition: coeffs.h:45
ideal k_sca_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified modern Sinuglar Buchberger&#39;s algorithm.
Definition: sca.cc:368
ideal k_sca_gr_bba(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified Plural&#39;s Buchberger&#39;s algorithmus.
Definition: sca.cc:95
static void * feOptValue(feOptIndex opt)
Definition: feOpt.h:40
idhdl currPackHdl
Definition: ipid.cc:55
coeffs flintQInitCfByName(char *s, n_coeffType n)
Definition: flintcf_Q.cc:534
BOOLEAN naInitChar(coeffs cf, void *infoStruct)
Initialize the coeffs object.
Definition: algext.cc:1397
ideal k_sca_mora(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Modified modern Sinuglar Mora&#39;s algorithm.
Definition: sca.cc:885
used for all transcendental extensions, i.e., the top-most extension in an extension tower is transce...
Definition: coeffs.h:39
#define FALSE
Definition: auxiliary.h:94
static n_coeffType n_FlintZn
Definition: misc_ip.cc:1222
#define V_LOAD_LIB
Definition: options.h:47
rational (GMP) numbers
Definition: coeffs.h:31
#define IDROOT
Definition: ipid.h:18
static BOOLEAN ii_FlintQ_init(leftv res, leftv a)
Definition: misc_ip.cc:1238
int siRandomStart
Definition: cntrlc.cc:96
coeffs nrnInitCfByName(char *s, n_coeffType n)
Definition: rmodulon.cc:57
#define TRUE
Definition: auxiliary.h:98
void * value
Definition: fegetopt.h:93
const char * feSetOptValue(feOptIndex opt, char *optarg)
Definition: feOpt.cc:151
void feInitResources(const char *argv0)
Definition: feResource.cc:170
void initRTimer()
Definition: timer.cc:156
idhdl basePackHdl
Definition: ipid.cc:56
#define BITSET
Definition: structs.h:20
coeffs coeffs_BIGINT
Definition: ipid.cc:50
#define Sy_bit(x)
Definition: options.h:32
static BOOLEAN iiFloat(leftv res, leftv pnn)
Definition: misc_ip.cc:1253
BOOLEAN iiLibCmd(char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force)
Definition: iplib.cc:825
BOOLEAN n2pInitChar(coeffs cf, void *infoStruct)
Definition: algext.cc:1681
Definition: idrec.h:34
omOpts_t om_Opts
Definition: omOpts.c:13
BBA_Proc gnc_gr_bba
Definition: old.gring.cc:67
static BOOLEAN iiCrossProd(leftv res, leftv args)
Definition: misc_ip.cc:1282
#define IDPACKAGE(a)
Definition: ipid.h:134
int myynest
Definition: febase.cc:41
void nRegisterCfByName(cfInitCfByNameProc p, n_coeffType n)
Definition: numbers.cc:579
idhdl enterid(const char *s, int lev, int t, idhdl *root, BOOLEAN init, BOOLEAN search)
Definition: ipid.cc:265
Definition: tok.h:56
#define SI_RESTORE_OPT(A, B)
Definition: options.h:24
n_coeffType nRegister(n_coeffType n, cfInitCharProc p)
Definition: numbers.cc:538
BBA_Proc sca_bba
Definition: old.gring.cc:69
BBA_Proc gnc_gr_mora
Definition: old.gring.cc:68
#define assume(x)
Definition: mod2.h:390
static BOOLEAN ii_FlintZn_init(leftv res, leftv a)
Definition: misc_ip.cc:1224
struct fe_option feOptSpec[]
only used if HAVE_RINGS is defined
Definition: coeffs.h:44
ideal k_gnc_gr_mora(const ideal F, const ideal Q, const intvec *, const intvec *, kStrategy strat, const ring _currRing)
Definition: gr_kstd2.cc:1289
char name(const Variable &v)
Definition: factory.h:180
#define omInitInfo()
Definition: xalloc.h:268
short errorreported
Definition: feFopen.cc:23
BOOLEAN flintZn_InitChar(coeffs cf, void *infoStruct)
Definition: flintcf_Zn.cc:487
n_coeffType
Definition: coeffs.h:27
#define NULL
Definition: omList.c:12
static n_coeffType n_FlintQ
Definition: misc_ip.cc:1223
int siSeed
Definition: sirandom.c:29
used for all algebraic extensions, i.e., the top-most extension in an extension tower is algebraic ...
Definition: coeffs.h:36
package basePack
Definition: ipid.cc:58
package currPack
Definition: ipid.cc:57
int rtyp
Definition: subexpr.h:91
#define SI_SAVE_OPT(A, B)
Definition: options.h:21
sleftv sLastPrinted
Definition: subexpr.cc:46
coeffs flintZnInitCfByName(char *s, n_coeffType n)
Definition: flintcf_Zn.cc:433
int initTimer()
Definition: timer.cc:67
NF_Proc nc_NF
Definition: old.gring.cc:66
int iiAddCproc(const char *libname, const char *procname, BOOLEAN pstatic, BOOLEAN(*func)(leftv res, leftv v))
Definition: iplib.cc:1004
#define IDDATA(a)
Definition: ipid.h:121
BBA_Proc sca_gr_bba
Definition: old.gring.cc:71
unsigned si_opt_2
Definition: options.c:6
static Poly * h
Definition: janet.cc:971
#define NONE
Definition: tok.h:219
void dErrorBreak()
Definition: dError.cc:139
#define omAlloc0(size)
Definition: omAllocDecl.h:211
used to represent polys as coeffcients
Definition: coeffs.h:35
coeffs nInitChar(n_coeffType t, void *parameter)
one-time initialisations for new coeffs in case of an error return NULL
Definition: numbers.cc:349
BOOLEAN ntInitChar(coeffs cf, void *infoStruct)
Initialize the coeffs object.
Definition: transext.cc:2512
#define omStrDup(s)
Definition: omAllocDecl.h:263