1 | #ifndef STRUCTS_H |
---|
2 | #define STRUCTS_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* |
---|
7 | * ABSTRACT |
---|
8 | */ |
---|
9 | |
---|
10 | /* for omBin */ |
---|
11 | #include <omalloc/omalloc.h> |
---|
12 | #ifdef HAVE_RINGS |
---|
13 | #include <coeffs/si_gmp.h> |
---|
14 | #endif |
---|
15 | |
---|
16 | /* standard types */ |
---|
17 | //#ifdef HAVE_RINGS |
---|
18 | //typedef unsigned long NATNUMBER; |
---|
19 | //typedef mpz_ptr int_number; |
---|
20 | //#endif |
---|
21 | |
---|
22 | #define BITSET unsigned int |
---|
23 | |
---|
24 | |
---|
25 | /* C++-part */ |
---|
26 | #ifdef __cplusplus |
---|
27 | #include <misc/auxiliary.h> |
---|
28 | #include <kernel/polys.h> |
---|
29 | #include <polys/coeffrings.h> |
---|
30 | |
---|
31 | class Voice; |
---|
32 | class sleftv; |
---|
33 | class procinfo; |
---|
34 | class skStrategy; |
---|
35 | class ssyStrategy; |
---|
36 | class CPolynomialSummator; |
---|
37 | class CGlobalMultiplier; |
---|
38 | class CFormulaPowerMultiplier; |
---|
39 | #endif |
---|
40 | |
---|
41 | |
---|
42 | enum tHomog |
---|
43 | { |
---|
44 | isNotHomog = FALSE, |
---|
45 | isHomog = TRUE, |
---|
46 | testHomog |
---|
47 | }; |
---|
48 | |
---|
49 | enum feBufferTypes |
---|
50 | { |
---|
51 | BT_none = 0, // entry level |
---|
52 | BT_break = 1, // while, for |
---|
53 | BT_proc, // proc |
---|
54 | BT_example, // example |
---|
55 | BT_file, // <"file" |
---|
56 | BT_execute, // execute |
---|
57 | BT_if, // if |
---|
58 | BT_else // else |
---|
59 | }; |
---|
60 | |
---|
61 | |
---|
62 | struct sip_package; |
---|
63 | typedef struct sip_package ip_package; |
---|
64 | typedef ip_package * package; |
---|
65 | |
---|
66 | typedef struct n_Procs_s n_Procs_s; |
---|
67 | |
---|
68 | // #ifdef HAVE_PLURAL |
---|
69 | struct nc_struct; |
---|
70 | typedef struct nc_struct nc_struct; |
---|
71 | // #endif |
---|
72 | |
---|
73 | typedef struct sip_link ip_link; |
---|
74 | |
---|
75 | /* the pointer types */ |
---|
76 | typedef char * char_ptr; |
---|
77 | typedef int * int_ptr; |
---|
78 | |
---|
79 | #ifdef __cplusplus |
---|
80 | //typedef ip_link * si_link; |
---|
81 | typedef sleftv * leftv; |
---|
82 | //typedef slists * lists; |
---|
83 | //typedef sattr * attr; |
---|
84 | typedef skStrategy * kStrategy; |
---|
85 | typedef ssyStrategy * syStrategy; |
---|
86 | typedef procinfo * procinfov; |
---|
87 | |
---|
88 | /* the function pointer types */ |
---|
89 | |
---|
90 | #endif /* __cplusplus */ |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | /* |
---|
95 | ** 7. runtime procedures/global data |
---|
96 | */ |
---|
97 | |
---|
98 | /* 7.1 C-routines : */ |
---|
99 | |
---|
100 | |
---|
101 | #ifdef __cplusplus |
---|
102 | extern "C" { |
---|
103 | #endif |
---|
104 | void m2_end(int i); |
---|
105 | #ifdef __cplusplus |
---|
106 | } |
---|
107 | #endif |
---|
108 | |
---|
109 | #define loop for(;;) |
---|
110 | |
---|
111 | #ifndef ABS |
---|
112 | #define ABS(x) ((x)<0?(-(x)):(x)) |
---|
113 | #endif |
---|
114 | |
---|
115 | extern omBin char_ptr_bin; |
---|
116 | |
---|
117 | #endif |
---|
118 | |
---|