source: git/Singular/mod2.h.in @ 74fe50d

spielwiese
Last change on this file since 74fe50d was 74fe50d, checked in by Mathias Schulze <mschulze@…>, 25 years ago
*** empty log message *** git-svn-id: file:///usr/local/Singular/svn/trunk@3127 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 12.3 KB
Line 
1/*******************************************************************
2 *  Computer Algebra System SINGULAR
3 *
4 *  mod2.h: Main configuration file for Singular
5 *          DO NOT EDIT!
6 *
7 *******************************************************************/
8#ifndef MOD2_H
9#define MOD2_H
10
11/*******************************************************************
12 * Defines which are set by configure
13 ******************************************************************/
14/* Define the info program to use, if you have TeXInfo, undef otherwise */
15#undef HAVE_INFO
16/* Define to use readline lib for fancy display */
17#undef HAVE_READLINE
18/* Define to use built-in command line parser */
19#undef HAVE_FEREAD
20/* Define if you want to use dld's */
21#undef HAVE_DLD
22/* Define to have dbm links */
23#undef HAVE_DBM
24/* Define to have smallgmp */
25#undef HAVE_SMALLGMP
26/* Define to have MP links */
27#undef HAVE_MPSR
28/* Define to have factory functionality added */
29#undef HAVE_FACTORY
30/* Define to have libfac functionality added */
31#undef HAVE_LIBFAC_P
32/* Define if you have stdc headers */
33#undef STDC_HEADERS
34/* Define if you have asm/sigcontext.h */
35#undef HAVE_ASM_SIGCONTEXT_H
36/* Define if you have sys/file.h */
37#undef HAVE_SYS_FILE_H
38/* Define if you have sys/stat.h */
39#undef HAVE_SYS_STAT_H
40/* Define if you have sys/param.h */
41#undef HAVE_SYS_PARAM_H
42/* Define if you have sys/file.h */
43#undef HAVE_SYS_TYPES_H
44/* Define if you have sys/ioctl.h */
45#undef HAVE_SYS_IOCTL_H
46/* Define if you have sys/time.h */
47#undef HAVE_SYS_TIME_H
48/* Define if you have sys/times.h */
49#undef HAVE_SYS_TIMES_H
50/* Define if you have readline/history.h */
51#undef HAVE_READLINE_HISTORY_H
52/* Define if readline/readline.h is ok */
53#undef READLINE_READLINE_H_OK
54/* Define if time.h and sys/time.h can be included at the same time */
55#undef TIME_WITH_SYS_TIME
56/* Define if you have alloca.h */
57#undef HAVE_ALLOCA_H
58/* Define if you have pwd.h */
59#undef HAVE_PWD_H
60/* Define if you have unistd.h */
61#undef HAVE_UNISTD_H
62/* define if you have malloc.h n */
63#undef HAVE_MALLOC_H
64/* Define if you have alloca */
65#undef HAVE_ALLOCA
66/* Define if you have getpagesize */
67#undef GETPAGESIZE
68/* Define if you have vprintf */
69#undef HAVE_VPRINTF
70/* Define if you have gettimeofday */
71#undef HAVE_GETTIMEOFDAY
72/* Define if you have atexit */
73#undef HAVE_ATEXIT
74/* Define if you have bcopy, bzero and bcmp
75   Linux needs that define! */
76#undef HAVE_BCOPY
77/* Define if sprintf does not return number of printed chars */
78#undef BSD_SPRINTF
79/* define if you have explicit C++ constructors */
80#undef HAVE_EXPLICIT_CONSTR
81/* Define if you have the getcwd function.  */
82#undef HAVE_GETCWD
83/* Define if you have the getwd function.  */
84#undef HAVE_GETWD
85/* Define if you have snprintf */
86#undef HAVE_VSNPRINTF
87/* Define if you have sbrk */
88#undef HAVE_SBRK
89/* Define if you have readlink */
90#undef HAVE_READLINK
91/* Define if you have usleep */
92#undef HAVE_USLEEP
93/* Define if you have sleep */
94#undef HAVE_SLEEP
95/* Define sizeof(char) */
96#define SIZEOF_CHAR 1
97/* Define sizeof(short) */
98#define SIZEOF_SHORT 2
99/* Define sizeof(int) */
100#define SIZEOF_INT 4
101/* Define sizeof(long) */
102#define SIZEOF_LONG 4
103/* Define sizeof(void*) */
104#define SIZEOF_VOIDP 4
105/* Define sizeof(double) */
106#define SIZEOF_DOUBLE 8
107/* Define if your integer format is big endian */
108#undef WORDS_BIGENDIAN
109/* Define the type of the exponents to be used in monomials */
110#define EXPONENT_TYPE short
111/* Define the size of exponent */
112#define SIZEOF_EXPONENT SIZEOF_SHORT
113/* Define major version of Singular -- should be set in ../configure.in!!!*/
114#define SINGULAR_MAJOR_VERSION 0
115/* Define minor version of Singular -- should be set in ../configure.in!!! */
116#define SINGULAR_MINOR_VERSION 0
117/* Define sub version of Singular -- should be set in ../configure.in!!! */
118#define SINGULAR_SUB_VERSION 0
119/* Define version as a string */
120#define S_VERSION1 ""
121/* Define version date as a string */
122#define S_VERSION2 ""
123/* Define uname identifier as a string */
124#define S_UNAME ""
125/* Define if our gmalloc is to be used */
126#undef HAVE_GMALLOC
127/* Define pagesize of your system */
128#define SIZE_OF_SYSTEM_PAGE 4096
129/* size of page as we can use it */
130#define SIZE_OF_PAGE SIZE_OF_SYSTEM_PAGE
131/* valloc routine which returns chunk of SIZE_OF_PAGE */
132#define PALLOC malloc
133#define PFREE  free
134/* define if result of PALLOC is aligned on SIZE_OF_SYSTEM_PAGE */
135#undef HAVE_PAGE_ALIGNMENT
136
137/*******************************************************************
138 * Defines which are not set by configure
139 ******************************************************************/
140/* Default value for timer resolution in ticks per second */
141/* set to 10 for resolution of tenth of a second, etc */
142#define TIMER_RESOLUTION 1
143/* Undefine to disable the quote/eval of expressions */
144#define SIQ 1
145/* Define to enable TCL interface */
146#define HAVE_TCL 1
147/* Define to enable working in Weyl algebras */
148#undef DRING
149/* Define to enable working in exterior algebras */
150#undef SRING
151/* Undefine to disable Gerhard's and Wilfried's fast and dirty std computations */
152#define FAST_AND_DIRTY
153#ifdef __MWERKS__
154/* includes for Metrowerks */
155#include "mod2.mwerks.h"
156#else
157/* works around a quirk in the generation of parser tables */
158#define INIT_BUG
159#endif
160
161/* linear algebra extensions from pcv.h/pcv.cc */
162#define HAVE_PCV 1
163
164/* Define to use old mechanismen for saving currRing with procedures
165 * Does not work with HAVE_NAMESPACES enabled
166 */
167#undef USE_IILOCALRING
168
169/* Define to use new namespaces techniks */
170#undef HAVE_NAMESPACES
171
172/* Define to enable dynamic module code */
173#undef HAVE_DYNAMIC_LOADING
174
175/* Define to use scanner when loading libraries */
176#define HAVE_LIBPARSER
177
178/*#define PROFILING*/
179#ifdef PROFILING
180#define PROFILER ,0,0
181#else
182#define PROFILER
183#endif
184
185/* Define to use gmp for rational arithmetic */
186#define HAVE_GMP
187
188/*******************************************************************
189 * Evaluate the set defines
190 ******************************************************************/
191/* FGLM needs factory */
192#ifdef HAVE_FACTORY
193#define HAVE_FGLM
194#endif
195
196/* Define if you want fglm for homogeneous case */
197#ifdef HAVE_FGLM
198#undef HAVE_FGLM_HOME
199#endif
200
201/* Undefine to disable real time measurments  */
202#ifdef HAVE_GETTIMEOFDAY
203#if ! defined(__MWERKS__) && ! defined(MSDOS)
204#define HAVE_RTIMER
205#else
206#undef HAVE_RTIMER
207#endif
208#endif
209
210#if SIZEOF_VOIDP == 8
211#define ALIGN_8
212#endif
213
214#define SINGULAR_VERSION (SINGULAR_MAJOR_VERSION*1000 + SINGULAR_MINOR_VERSION*100 + SINGULAR_SUB_VERSION)
215#ifdef DRING
216#define SDRING
217#endif
218
219#ifdef SRING
220#define SDRING
221#endif
222
223#ifndef HAVE_INFO
224#define buildin_help 1
225#endif
226
227#if SIZEOF_EXPONENT == 1
228#define MAX_EXPONENT 0x7f
229#define MAX_COMPONENT 0xff
230#elif SIZEOF_EXPONENT == 2
231#define MAX_EXPONENT 0x7fff
232#define MAX_COMPONENT 0xffff
233#else /* SIZEOF_EXPONENT == 4 */
234#define MAX_EXPONENT 0x7fffffff
235#define MAX_COMPONENT 0xffffffff
236#endif
237
238/*******************************************************************
239 * Miscellanous Defines
240 ******************************************************************/
241/* define MM_COUNT to enable "memory(0)" (resp. memory(1))*/
242#define MM_COUNT 1
243
244
245#ifndef HAVE_LIBPARSER
246#  undef YYLPDEBUG
247#else
248#  define YYLPDEBUG 1
249#endif
250
251#ifndef FALSE
252#define FALSE       0
253#endif
254
255#ifndef TRUE
256#define TRUE        1
257#endif
258
259#ifndef NULL
260#define NULL        (0)
261#endif
262
263#ifndef SEEK_END
264#define SEEK_END 2
265#endif
266
267#ifndef SEEK_SET
268#define SEEK_SET 0
269#endif
270
271#define HALT() m2_end(2)
272
273#define memcpy4 memcpy
274
275/* define OLD_RES for res/sres/mres(i,j,k) */
276#undef OLD_RES
277
278/* the maximal ascii length of an int number + 1 = 11 for 32 bit int */
279#define MAX_INT_LEN 11
280extern int pShortOut;
281
282/* the maximal level of stacks to remembre in debug (MTRACK) mode */
283#define BT_MAXSTACK 10
284
285#ifdef DO_PROFILE
286/* define to enable explicit profiling of some crucial inline
287 * routines and defines  */
288#undef DO_DEEP_PROFILE
289#endif
290
291#define buildin_rand 1
292
293/* define to enable assume */
294#ifndef HAVE_ASSUME
295#undef HAVE_ASSUME
296#endif
297
298/*******************************************************************
299 * DEBUG OPTIONS
300 * -- only significant for for compiling without -DNDEBUG
301 * -- you better know what your are doing, if you touch this
302 ******************************************************************/
303#ifndef NDEBUG
304
305/* undefine to disable assume -- should normally be defined for NDEBUG */
306#define HAVE_ASSUME
307
308
309/* undefine to disable assume -- should normally be defined for NDEBUG */
310#define HAVE_ASSUME
311
312/* undef MDEBUG to disable memory checks
313 *
314 * define MDEBUG to
315 * 0 to enable basic memory checks (at least on each alloc/free)
316 * 1 for addtl. containment checks in free/alloc list for each memory check
317 * 2 for addtl. checks of entire free/alloc list at each memory check
318 * 3 for addtl. checks of all heaps at each memory check
319 * NOTE: For MDEBUG > 1, it gets very slow
320 * You can control MDEBUG at run-time by setting the value of the
321 * variable mm_MDEBUG (defined in mmcheck.c) to the appropriate value.
322 */
323#define MDEBUG 0
324
325/* undef HEAP_DEBUG to disable heap checks
326 *
327 * define HEAP_DEBUG to
328 * 0 to enable basic heap addr checks (at least on each alloc/free)
329 * 1 for addtl. containment checks in free/alloc list of heap
330 * 2 for addtl. check of entire  heap at each heap addr check
331 * NOTE: For HEAP_DEBUG > 1 on, it gets very slow
332 * You can control HEAP_DEBUG at run-time by setting the value of the
333 * variable mm_HEAP_DEBUG (defined in mmheap.c) to the appropriate value.
334 */
335#define HEAP_DEBUG 0
336
337/* define PAGE_DEBUG for page accesses -- never re-uses freed pages */
338#ifndef PAGE_DEBUG
339#undef PAGE_DEBUG
340#endif
341
342
343
344/* define PDEBUG checking polys, undefine otherwise */
345/* define PDEBUG 1 for additionally checking access to polys  -- vewry slow !*/
346#define PDEBUG 1
347/* define KDEBUG checking during standard base computation */
348#define KDEBUG
349/* define LDEBUG checking numbers, undefine otherwise */
350#define LDEBUG
351/* define RDEBUG checking rings (together with TRACE=9) */
352#define RDEBUG
353/* define TEST for non time critical tests, undefine otherwise */
354#define TEST
355/* define MLIST for printing block of used memory on exit */
356#define MLIST 1
357/* define MTRACK for allowing to keep track of Alloc/Free with a backtrace */
358/* #define MTRACK */
359
360/* #define PAGE_TEST */
361
362/* define YYDEBUG 1 for debugging bison texts, 0 otherwise */
363#define YYDEBUG 1
364
365/* Undefine to disable debugging of MP stuff */
366#ifdef HAVE_MPSR
367#define MPSR_DEBUG
368#endif
369
370/* MLIST requires MDEBUG */
371#ifdef MLIST
372#ifndef MDEBUG
373#define MDEBUG 0
374#endif
375#endif
376
377/* MTRACK requires MDEBUG and MLIST*/
378#ifdef MTRACK
379#ifndef MDEBUG
380#define MDEBUG 1
381#endif
382#ifndef MLIST
383#define MLIST
384#endif
385#endif
386
387/* PDEBUG requires MDEBUG */
388#ifdef PDEBUG
389#ifndef MDEBUG
390#define MDEBUG 0
391#endif
392#endif
393
394#ifdef TEST
395#ifndef buildin_rand
396#define buildin_rand 1
397#endif
398#endif
399
400#ifdef MTRACK
401#define BT_MAXSTACK 10
402#endif /* MTRACK */
403
404#else /* not NDEBUG */
405
406/* define YYDEBUG 1 for debugging bison texts, 0 otherwise */
407#define YYDEBUG 0
408
409#endif /* not NDEBUG */
410
411#ifdef HAVE_DYNAMIC_LOADING
412#   define HAVE_NAMESPACES 1
413#endif /* HAVE_DYNAMIC_LOADING */
414#ifdef HAVE_NAMESPACES
415#  undef USE_IILOCALRING
416#endif
417
418/*******************************************************************
419 *
420 * assume(x) -- a handy macro for assumptions
421 *
422 ******************************************************************/
423
424#ifndef HAVE_ASSUME
425#define assume(x) ((void*) 0)
426#define r_assume(x) ((void*) 0)
427#else /* ! HAVE_ASSUME */
428
429#ifdef __cplusplus
430extern "C" {
431#endif
432/* Set a breakpoint on this function */
433extern void assume_violation(char* file, int line);
434#ifdef __cplusplus
435}
436#endif
437
438
439#define assume(x)   _assume(x, __FILE__, __LINE__)
440#define r_assume(x) _r_assume(x, __FILE__, __LINE__)
441
442#define _assume(x, f, l)                        \
443do                                              \
444{                                               \
445  if (! (x))                                    \
446  {                                             \
447    assume_violation(f, l);                     \
448  }                                             \
449}                                               \
450while (0)
451
452#define _r_assume(x, f, l)                      \
453do                                              \
454{                                               \
455  if (! (x))                                    \
456  {                                             \
457    assume_violation(f, l);                     \
458    return 0;                                   \
459  }                                             \
460}                                               \
461while (0)
462#endif /* HAVE_ASSUME */
463
464#endif /* MOD2_H  */
Note: See TracBrowser for help on using the repository browser.