My Project
Toggle main menu visibility
Loading...
Searching...
No Matches
libpolys
misc
options.h
Go to the documentation of this file.
1
#ifndef OPTIONS_H
2
#define OPTIONS_H
3
/*****************************************
4
* * Computer Algebra System SINGULAR *
5
* *****************************************/
6
/*
7
* ABSTRACT: macros for global options
8
*/
9
#include "
misc/auxiliary.h
"
/*for BOOLEAN*/
10
/*the general set of std-options : si_opt_1(test) */
11
/*the general set of verbose-options : si_opt_2(verbose) */
12
#ifdef __cplusplus
13
extern
"C"
VAR
BITSET
si_opt_1
;
//< NOTE: Original option variable name: test
14
extern
"C"
VAR
BITSET
si_opt_2
;
//< NOTE: Original option variable name: verbose
15
#else
16
EXTERN_VAR
BITSET
si_opt_1
;
17
EXTERN_VAR
BITSET
si_opt_2
;
18
#endif
19
EXTERN_VAR
BOOLEAN
siCntrlc
;
20
#define SI_SAVE_OPT(A,B) { A=si_opt_1; B=si_opt_2; }
21
#define SI_SAVE_OPT1(A) { A=si_opt_1; }
22
#define SI_SAVE_OPT2(A) { A=si_opt_2; }
23
#define SI_RESTORE_OPT(A,B) { si_opt_1=A; si_opt_2=B; }
24
#define SI_RESTORE_OPT1(A) { si_opt_1=A; }
25
#define SI_RESTORE_OPT2(A) { si_opt_2=A; }
26
27
/*
28
** Set operations (small sets only)
29
*/
30
31
#define Sy_bit(x) ((unsigned)1<<(x))
32
#define Sy_bitL(x) ((unsigned long)1L<<(x))
33
#define Sy_inset(x,s) ((Sy_bit(x)&(s))?TRUE:FALSE)
34
#define BTEST1(a) Sy_inset((a), si_opt_1)
35
#define BVERBOSE(a) Sy_inset((a), si_opt_2)
36
37
/*
38
** defines for BITSETs
39
*/
40
41
#define V_QUIET 0
42
#define V_QRING 1
43
#define V_SHOW_MEM 2
44
#define V_YACC 3
45
#define V_REDEFINE 4
46
#define V_READING 5
47
#define V_LOAD_LIB 6
48
#define V_DEBUG_LIB 7
49
#define V_LOAD_PROC 8
50
#define V_DEF_RES 9
51
52
#define V_SHOW_USE 11
53
#define V_IMAP 12
54
#define V_PROMPT 13
55
#define V_NSB 14
56
#define V_CONTENTSB 15
57
#define V_CANCELUNIT 16
58
#define V_MODPSOLVSB 17
59
#define V_UPTORADICAL 18
60
#define V_FINDMONOM 19
61
#define V_COEFSTRAT 20
62
// set V_IDLIFT for liftstd(A,B) command (no syzygies wanted)
63
#define V_IDLIFT 21
64
#define V_LENGTH 22
65
//#define V_REPORT_STD 23
66
/*23: kDebugPrint */
67
#define V_ALLWARN 24
68
#define V_INTERSECT_ELIM 25
69
#define V_INTERSECT_SYZ 26
70
#define V_ASSIGN_NONE 27
71
#define V_PURE_GB 28
72
/* for tests: 29,30 */
73
#define V_DEG_STOP 31
74
75
76
#define OPT_PROT 0
77
#define OPT_REDSB 1
78
#define OPT_NOT_BUCKETS 2
79
#define OPT_NOT_SUGAR 3
80
#define OPT_INTERRUPT 4
81
#define OPT_SUGARCRIT 5
82
#define OPT_DEBUG 6
83
#define OPT_REDTHROUGH 7
84
#define OPT_NO_SYZ_MINIM 8
85
#define OPT_RETURN_SB 9
86
#define OPT_FASTHC 10
87
#define OPT_OLDSTD 20
88
#define OPT_REDTAIL_SYZ 21
89
#define OPT_STAIRCASEBOUND 22
90
#define OPT_MULTBOUND 23
91
#define OPT_DEGBOUND 24
92
#define OPT_REDTAIL 25
93
#define OPT_INTSTRATEGY 26
94
#define OPT_FINDET 27
95
#define OPT_INFREDTAIL 28
96
#define OPT_SB_1 29
97
#define OPT_NOTREGULARITY 30
98
#define OPT_WEIGHTM 31
99
100
/* define ring dependent options */
101
#define TEST_RINGDEP_OPTS \
102
(Sy_bit(OPT_INTSTRATEGY) | Sy_bit(OPT_REDTHROUGH) | Sy_bit(OPT_REDTAIL) \
103
| Sy_bit(OPT_REDTAIL_SYZ))
104
105
#define TEST_OPT_PROT BTEST1(OPT_PROT)
106
#define TEST_OPT_REDSB BTEST1(OPT_REDSB)
107
#define TEST_OPT_NOT_BUCKETS BTEST1(OPT_NOT_BUCKETS)
108
#define TEST_OPT_NOT_SUGAR BTEST1(OPT_NOT_SUGAR)
109
#define TEST_OPT_SUGARCRIT BTEST1(OPT_SUGARCRIT)
110
#define TEST_OPT_DEBUG BTEST1(OPT_DEBUG)
111
#define TEST_OPT_FASTHC BTEST1(OPT_FASTHC)
112
#define TEST_OPT_INTSTRATEGY BTEST1(OPT_INTSTRATEGY)
113
#define TEST_OPT_FINDET BTEST1(OPT_FINDET)
114
#define TEST_OPT_RETURN_SB BTEST1(OPT_RETURN_SB)
115
#define TEST_OPT_DEGBOUND BTEST1(OPT_DEGBOUND)
116
#define TEST_OPT_MULTBOUND BTEST1(OPT_MULTBOUND)
117
#define TEST_OPT_STAIRCASEBOUND BTEST1(OPT_STAIRCASEBOUND)
118
#define TEST_OPT_REDTAIL BTEST1(OPT_REDTAIL)
119
#define TEST_OPT_REDTAIL_SYZ BTEST1(OPT_REDTAIL_SYZ)
120
#define TEST_OPT_INFREDTAIL BTEST1(OPT_INFREDTAIL)
121
#define TEST_OPT_SB_1 BTEST1(OPT_SB_1)
122
#define TEST_OPT_NOTREGULARITY BTEST1(OPT_NOTREGULARITY)
123
#define TEST_OPT_WEIGHTM BTEST1(OPT_WEIGHTM)
124
#define TEST_OPT_REDTHROUGH BTEST1(OPT_REDTHROUGH)
125
#define TEST_OPT_OLDSTD BTEST1(OPT_OLDSTD)
126
#define TEST_OPT_NO_SYZ_MINIM BTEST1(OPT_NO_SYZ_MINIM)
127
128
129
#define TEST_OPT_CONTENTSB BVERBOSE(V_CONTENTSB)
130
#define TEST_OPT_CANCELUNIT BVERBOSE(V_CANCELUNIT)
131
#define TEST_OPT_IDLIFT BVERBOSE(V_IDLIFT)
132
#define TEST_OPT_LENGTH BVERBOSE(V_LENGTH)
133
#define TEST_V_QRING BVERBOSE(V_QRING)
134
#define TEST_V_NSB BVERBOSE(V_NSB)
135
#define TEST_V_QUIET BVERBOSE(V_QUIET)
136
#define TEST_V_ASSIGN_NONE BVERBOSE(V_ASSIGN_NONE)
137
#define TEST_V_PURE_GB BVERBOSE(V_PURE_GB)
138
139
#define TEST_VERB_NSB BVERBOSE(V_NSB)
140
#define TEST_V_DEG_STOP BVERBOSE(V_DEG_STOP)
141
#define TEST_V_MODPSOLVSB BVERBOSE(V_MODPSOLVSB)
142
#define TEST_V_COEFSTRAT BVERBOSE(V_COEFSTRAT)
143
#define TEST_V_UPTORADICAL BVERBOSE(V_UPTORADICAL)
144
#define TEST_V_FINDMONOM BVERBOSE(V_FINDMONOM)
145
#define TEST_V_ALLWARN BVERBOSE(V_ALLWARN)
146
#define TEST_V_INTERSECT_ELIM BVERBOSE(V_INTERSECT_ELIM)
147
#define TEST_V_INTERSECT_SYZ BVERBOSE(V_INTERSECT_SYZ)
148
149
150
#endif
auxiliary.h
All the auxiliary stuff.
BITSET
#define BITSET
Definition
auxiliary.h:85
BOOLEAN
int BOOLEAN
Definition
auxiliary.h:88
EXTERN_VAR
#define EXTERN_VAR
Definition
globaldefs.h:6
VAR
#define VAR
Definition
globaldefs.h:5
si_opt_2
VAR unsigned si_opt_2
Definition
options.c:6
siCntrlc
VAR BOOLEAN siCntrlc
Definition
options.c:14
si_opt_1
VAR unsigned si_opt_1
Definition
options.c:5
Generated on
for My Project by
doxygen 1.17.0
for
Singular