source: git/kernel/options.h @ d544b1

spielwiese
Last change on this file since d544b1 was d544b1, checked in by Hans Schönemann <hannes@…>, 14 years ago
option qringNF git-svn-id: file:///usr/local/Singular/svn/trunk@12470 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.7 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#include "structs.h" /*for BITSET */
12/*the general set of std-options : test */
13/*the general set of verbose-options : verbose */
14#ifdef __cplusplus
15extern "C" BITSET test;
16extern "C" BITSET verbose;
17#else
18extern BITSET test;
19extern BITSET verbose;
20#endif
21
22/*
23**  Set operations (small sets only)
24*/
25
26#define Sy_bit(x)     ((unsigned)1<<(x))
27#define Sy_inset(x,s) ((Sy_bit(x)&(s))?TRUE:FALSE)
28#define BTEST1(a)     Sy_inset((a), test)
29#define BVERBOSE(a)   Sy_inset((a), verbose)
30
31/*
32** defines for BITSETs
33*/
34
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
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#define V_LENGTH     22
58/*23: kDebugPrint */
59/* for tests: 25-30 */
60#define V_DEG_STOP   31
61
62
63#define OPT_PROT           0
64#define OPT_REDSB          1
65#define OPT_NOT_BUCKETS    2
66#define OPT_NOT_SUGAR      3
67#define OPT_INTERRUPT      4
68#define OPT_SUGARCRIT      5
69#define OPT_DEBUG          6
70#define OPT_REDTHROUGH     7
71#define OPT_RETURN_SB      9
72#define OPT_FASTHC        10
73#define OPT_OLDSTD        20
74
75#define OPT_STAIRCASEBOUND 22
76#define OPT_MULTBOUND     23
77#define OPT_DEGBOUND      24
78#define OPT_REDTAIL       25
79#define OPT_INTSTRATEGY   26
80#define OPT_FINDET        27
81#define OPT_INFREDTAIL    28
82#define OPT_SB_1          29
83#define OPT_NOTREGULARITY 30
84#define OPT_WEIGHTM       31
85
86/* define ring dependent options */
87#define TEST_RINGDEP_OPTS \
88 (Sy_bit(OPT_INTSTRATEGY) | Sy_bit(OPT_REDTHROUGH) | Sy_bit(OPT_REDTAIL))
89
90#define TEST_OPT_PROT              BTEST1(OPT_PROT)
91#define TEST_OPT_REDSB             BTEST1(OPT_REDSB)
92#define TEST_OPT_NOT_BUCKETS       BTEST1(OPT_NOT_BUCKETS)
93#define TEST_OPT_NOT_SUGAR         BTEST1(OPT_NOT_SUGAR)
94#define TEST_OPT_SUGARCRIT         BTEST1(OPT_SUGARCRIT)
95#define TEST_OPT_DEBUG             BTEST1(OPT_DEBUG)
96#define TEST_OPT_FASTHC            BTEST1(OPT_FASTHC)
97#define TEST_OPT_INTSTRATEGY       BTEST1(OPT_INTSTRATEGY)
98#define TEST_OPT_FINDET            BTEST1(OPT_FINDET)
99#define TEST_OPT_RETURN_SB         BTEST1(OPT_RETURN_SB)
100#define TEST_OPT_DEGBOUND          BTEST1(OPT_DEGBOUND)
101#define TEST_OPT_MULTBOUND         BTEST1(OPT_MULTBOUND)
102#define TEST_OPT_STAIRCASEBOUND    BTEST1(OPT_STAIRCASEBOUND)
103#define TEST_OPT_REDTAIL           BTEST1(OPT_REDTAIL)
104#define TEST_OPT_INFREDTAIL        BTEST1(OPT_INFREDTAIL)
105#define TEST_OPT_SB_1              BTEST1(OPT_SB_1)
106#define TEST_OPT_NOTREGULARITY     BTEST1(OPT_NOTREGULARITY)
107#define TEST_OPT_WEIGHTM           BTEST1(OPT_WEIGHTM)
108#define TEST_OPT_REDTHROUGH        BTEST1(OPT_REDTHROUGH)
109#define TEST_OPT_OLDSTD            BTEST1(OPT_OLDSTD)
110#define TEST_OPT_CONTENTSB         BVERBOSE(V_CONTENTSB)
111#define TEST_OPT_CANCELUNIT        BVERBOSE(V_CANCELUNIT)
112#define TEST_OPT_IDLIFT            BVERBOSE(V_IDLIFT)
113#define TEST_OPT_LENGTH            BVERBOSE(V_LENGTH)
114#define TEST_V_QRING               BVERBOSE(V_QRING)
115
116#define TEST_VERB_NSB              BVERBOSE(V_NSB)
117#define TEST_V_DEG_STOP            BVERBOSE(V_DEG_STOP)
118#define TEST_V_MODPSOLVSB          BVERBOSE(V_MODPSOLVSB)
119#define TEST_V_COEFSTRAT           BVERBOSE(V_COEFSTRAT)
120#define TEST_V_UPTORADICAL         BVERBOSE(V_UPTORADICAL)
121#define TEST_V_FINDMONOM           BVERBOSE(V_FINDMONOM)
122
123
124#endif
Note: See TracBrowser for help on using the repository browser.