source: git/libpolys/misc/options.h @ 070c1b4

fieker-DuValspielwiese
Last change on this file since 070c1b4 was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 4.2 KB
Line 
1#ifndef OPTIONS_H
2#define OPTIONS_H
3/*****************************************
4 * *  Computer Algebra System SINGULAR      *
5 * *****************************************/
6/*
7 * ABSTRACT: macros for global options
8 */
9
10/*the general set of std-options : test */
11/*the general set of verbose-options : verbose */
12#ifdef __cplusplus
13extern "C" unsigned test;
14extern "C" unsigned verbose;
15#else
16extern unsigned test;
17extern unsigned verbose;
18#endif
19
20/*
21**  Set operations (small sets only)
22*/
23
24#define Sy_bit(x)     ((unsigned)1<<(x))
25#define Sy_inset(x,s) ((Sy_bit(x)&(s))?TRUE:FALSE)
26#define BTEST1(a)     Sy_inset((a), test)
27#define BVERBOSE(a)   Sy_inset((a), verbose)
28
29/*
30** defines for BITSETs
31*/
32
33#define V_QUIET       0
34#define V_QRING       1
35#define V_SHOW_MEM    2
36#define V_YACC        3
37#define V_REDEFINE    4
38#define V_READING     5
39#define V_LOAD_LIB    6
40#define V_DEBUG_LIB   7
41#define V_LOAD_PROC   8
42#define V_DEF_RES     9
43
44#define V_SHOW_USE   11
45#define V_IMAP       12
46#define V_PROMPT     13
47#define V_NSB        14
48#define V_CONTENTSB  15
49#define V_CANCELUNIT 16
50#define V_MODPSOLVSB 17
51#define V_UPTORADICAL 18
52#define V_FINDMONOM  19
53#define V_COEFSTRAT  20
54#define V_IDLIFT     21
55#define V_LENGTH     22
56/*23: kDebugPrint */
57#define V_ALLWARN    24
58#define V_INTERSECT_ELIM 25
59#define V_INTERSECT_SYZ 26
60/* for tests: 27-30 */
61#define V_DEG_STOP   31
62
63
64#define OPT_PROT           0
65#define OPT_REDSB          1
66#define OPT_NOT_BUCKETS    2
67#define OPT_NOT_SUGAR      3
68#define OPT_INTERRUPT      4
69#define OPT_SUGARCRIT      5
70#define OPT_DEBUG          6
71#define OPT_REDTHROUGH     7
72#define OPT_NO_SYZ_MINIM   8
73#define OPT_RETURN_SB      9
74#define OPT_FASTHC        10
75#define OPT_OLDSTD        20
76
77#define OPT_STAIRCASEBOUND 22
78#define OPT_MULTBOUND     23
79#define OPT_DEGBOUND      24
80#define OPT_REDTAIL       25
81#define OPT_INTSTRATEGY   26
82#define OPT_FINDET        27
83#define OPT_INFREDTAIL    28
84#define OPT_SB_1          29
85#define OPT_NOTREGULARITY 30
86#define OPT_WEIGHTM       31
87
88/* define ring dependent options */
89#define TEST_RINGDEP_OPTS \
90 (Sy_bit(OPT_INTSTRATEGY) | Sy_bit(OPT_REDTHROUGH) | Sy_bit(OPT_REDTAIL))
91
92#define TEST_OPT_PROT              BTEST1(OPT_PROT)
93#define TEST_OPT_REDSB             BTEST1(OPT_REDSB)
94#define TEST_OPT_NOT_BUCKETS       BTEST1(OPT_NOT_BUCKETS)
95#define TEST_OPT_NOT_SUGAR         BTEST1(OPT_NOT_SUGAR)
96#define TEST_OPT_SUGARCRIT         BTEST1(OPT_SUGARCRIT)
97#define TEST_OPT_DEBUG             BTEST1(OPT_DEBUG)
98#define TEST_OPT_FASTHC            BTEST1(OPT_FASTHC)
99#define TEST_OPT_INTSTRATEGY       BTEST1(OPT_INTSTRATEGY)
100#define TEST_OPT_FINDET            BTEST1(OPT_FINDET)
101#define TEST_OPT_RETURN_SB         BTEST1(OPT_RETURN_SB)
102#define TEST_OPT_DEGBOUND          BTEST1(OPT_DEGBOUND)
103#define TEST_OPT_MULTBOUND         BTEST1(OPT_MULTBOUND)
104#define TEST_OPT_STAIRCASEBOUND    BTEST1(OPT_STAIRCASEBOUND)
105#define TEST_OPT_REDTAIL           BTEST1(OPT_REDTAIL)
106#define TEST_OPT_INFREDTAIL        BTEST1(OPT_INFREDTAIL)
107#define TEST_OPT_SB_1              BTEST1(OPT_SB_1)
108#define TEST_OPT_NOTREGULARITY     BTEST1(OPT_NOTREGULARITY)
109#define TEST_OPT_WEIGHTM           BTEST1(OPT_WEIGHTM)
110#define TEST_OPT_REDTHROUGH        BTEST1(OPT_REDTHROUGH)
111#define TEST_OPT_OLDSTD            BTEST1(OPT_OLDSTD)
112#define TEST_OPT_NO_SYZ_MINIM      BTEST1(OPT_NO_SYZ_MINIM)
113
114
115#define TEST_OPT_CONTENTSB         BVERBOSE(V_CONTENTSB)
116#define TEST_OPT_CANCELUNIT        BVERBOSE(V_CANCELUNIT)
117#define TEST_OPT_IDLIFT            BVERBOSE(V_IDLIFT)
118#define TEST_OPT_LENGTH            BVERBOSE(V_LENGTH)
119#define TEST_V_QRING               BVERBOSE(V_QRING)
120#define TEST_V_NSB                 BVERBOSE(V_NSB)
121#define TEST_V_QUIET               BVERBOSE(V_QUIET)
122
123#define TEST_VERB_NSB              BVERBOSE(V_NSB)
124#define TEST_V_DEG_STOP            BVERBOSE(V_DEG_STOP)
125#define TEST_V_MODPSOLVSB          BVERBOSE(V_MODPSOLVSB)
126#define TEST_V_COEFSTRAT           BVERBOSE(V_COEFSTRAT)
127#define TEST_V_UPTORADICAL         BVERBOSE(V_UPTORADICAL)
128#define TEST_V_FINDMONOM           BVERBOSE(V_FINDMONOM)
129#define TEST_V_ALLWARN             BVERBOSE(V_ALLWARN)
130#define TEST_V_INTERSECT_ELIM      BVERBOSE(V_INTERSECT_ELIM)
131#define TEST_V_INTERSECT_SYZ       BVERBOSE(V_INTERSECT_SYZ)
132
133
134#endif
Note: See TracBrowser for help on using the repository browser.