Changeset 210bd9 in git for Singular/tok.h


Ignore:
Timestamp:
Jan 27, 2010, 7:40:47 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
af92df51b8d5feaf30e639aaa8980a541c934eb8
Parents:
690e21e881c763e9c23a2f83759a44488fbf2ea0
Message:
moved option marcos to options.h

git-svn-id: file:///usr/local/Singular/svn/trunk@12467 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tok.h

    r690e21e r210bd9  
    161161#define UNKNOWN 0
    162162
    163 /*
    164 **  Set operations (small sets only)
    165 */
    166 
    167 #define Sy_bit(x)     ((unsigned)1<<(x))
    168 #define Sy_inset(x,s) ((Sy_bit(x)&(s))?TRUE:FALSE)
    169 #define BTEST1(a)     Sy_inset((a), test)
    170 #define BVERBOSE(a)   Sy_inset((a), verbose)
    171 
    172 /*
    173 ** defines for BITSETs
    174 */
    175 
    176 #define V_SHOW_MEM  2
    177 #define V_YACC      3
    178 #define V_REDEFINE  4
    179 #define V_READING   5
    180 #define V_LOAD_LIB  6
    181 #define V_DEBUG_LIB 7
    182 #define V_LOAD_PROC 8
    183 #define V_DEF_RES   9
    184 #define V_DEBUG_MEM 10
    185 #define V_SHOW_USE  11
    186 #define V_IMAP      12
    187 #define V_PROMPT    13
    188 #define V_NSB       14
    189 #define V_CONTENTSB 15
    190 #define V_CANCELUNIT 16
    191 #define V_DEG_STOP  31
    192 
    193 
    194 #define OPT_PROT           0
    195 #define OPT_REDSB          1
    196 #define OPT_NOT_BUCKETS    2
    197 #define OPT_NOT_SUGAR      3
    198 #define OPT_INTERRUPT      4
    199 #define OPT_SUGARCRIT      5
    200 #define OPT_DEBUG          6
    201 #define OPT_REDTHROUGH     7
    202 #define OPT_RETURN_SB      9
    203 #define OPT_FASTHC        10
    204 #define OPT_OLDSTD        20
    205 #define OPT_KEEPVARS      21
    206 #define OPT_STAIRCASEBOUND 22
    207 #define OPT_MULTBOUND     23
    208 #define OPT_DEGBOUND      24
    209 #define OPT_REDTAIL       25
    210 #define OPT_INTSTRATEGY   26
    211 #define OPT_INFREDTAIL    28
    212 #define OPT_SB_1          29
    213 #define OPT_NOTREGULARITY 30
    214 #define OPT_WEIGHTM       31
    215 
    216 /* define ring dependent options */
    217 #define TEST_RINGDEP_OPTS \
    218  (Sy_bit(OPT_INTSTRATEGY) | Sy_bit(OPT_REDTHROUGH) | Sy_bit(OPT_REDTAIL))
    219 
    220 #define TEST_OPT_PROT              BTEST1(OPT_PROT)
    221 #define TEST_OPT_REDSB             BTEST1(OPT_REDSB)
    222 #define TEST_OPT_NOT_BUCKETS       BTEST1(OPT_NOT_BUCKETS)
    223 #define TEST_OPT_NOT_SUGAR         BTEST1(OPT_NOT_SUGAR)
    224 #define TEST_OPT_SUGARCRIT         BTEST1(OPT_SUGARCRIT)
    225 #define TEST_OPT_DEBUG             BTEST1(OPT_DEBUG)
    226 #define TEST_OPT_FASTHC            BTEST1(OPT_FASTHC)
    227 #define TEST_OPT_INTSTRATEGY       BTEST1(OPT_INTSTRATEGY)
    228 #define TEST_OPT_RETURN_SB         BTEST1(OPT_RETURN_SB)
    229 #define TEST_OPT_KEEPVARS          BTEST1(OPT_KEEPVARS)
    230 #define TEST_OPT_DEGBOUND          BTEST1(OPT_DEGBOUND)
    231 #define TEST_OPT_MULTBOUND         BTEST1(OPT_MULTBOUND)
    232 #define TEST_OPT_STAIRCASEBOUND    BTEST1(OPT_STAIRCASEBOUND)
    233 #define TEST_OPT_REDTAIL           BTEST1(OPT_REDTAIL)
    234 #define TEST_OPT_INFREDTAIL        BTEST1(OPT_INFREDTAIL)
    235 #define TEST_OPT_SB_1              BTEST1(OPT_SB_1)
    236 #define TEST_OPT_NOTREGULARITY     BTEST1(OPT_NOTREGULARITY)
    237 #define TEST_OPT_WEIGHTM           BTEST1(OPT_WEIGHTM)
    238 #define TEST_OPT_REDTHROUGH        BTEST1(OPT_REDTHROUGH)
    239 #define TEST_OPT_OLDSTD            BTEST1(OPT_OLDSTD)
    240 #define TEST_OPT_CONTENTSB         BVERBOSE(V_CONTENTSB)
    241 #define TEST_OPT_CANCELUNIT        BVERBOSE(V_CANCELUNIT)
    242 
    243 #define TEST_VERB_NSB              BVERBOSE(V_NSB)
    244 #define TEST_V_DEG_STOP            BVERBOSE(V_DEG_STOP)
    245 
    246163#endif
Note: See TracChangeset for help on using the changeset viewer.