source: git/libpolys/misc/options.h @ 71f6dbd

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