spielwiese
Last change
on this file since 8f64a0f was
8f64a0f,
checked in by Andreas Steenpass <steenpass@…>, 10 years ago
|
chg: port commit 129ed66 from master to spielwiese
commit hash in master: 129ed66a74c2b5b0201c02efbc76fa49062d2fd2
was: 'rmv: remove attribute __attribute__((noreturn)) from m2_end()'
|
-
Property mode set to
100644
|
File size:
1.8 KB
|
Line | |
---|
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 | #include <misc/auxiliary.h> |
---|
13 | #include <kernel/polys.h> |
---|
14 | #include <polys/coeffrings.h> |
---|
15 | |
---|
16 | #ifdef HAVE_RINGS |
---|
17 | #include <coeffs/si_gmp.h> |
---|
18 | #endif |
---|
19 | |
---|
20 | /* standard types */ |
---|
21 | //#ifdef HAVE_RINGS |
---|
22 | //typedef unsigned long NATNUMBER; |
---|
23 | //typedef mpz_ptr int_number; |
---|
24 | //#endif |
---|
25 | |
---|
26 | #define BITSET unsigned int |
---|
27 | |
---|
28 | |
---|
29 | /* C++-part */ |
---|
30 | #ifdef __cplusplus |
---|
31 | class sleftv; |
---|
32 | class procinfo; |
---|
33 | class skStrategy; |
---|
34 | class ssyStrategy; |
---|
35 | class CPolynomialSummator; |
---|
36 | class CGlobalMultiplier; |
---|
37 | class CFormulaPowerMultiplier; |
---|
38 | #endif |
---|
39 | |
---|
40 | |
---|
41 | enum tHomog |
---|
42 | { |
---|
43 | isNotHomog = FALSE, |
---|
44 | isHomog = TRUE, |
---|
45 | testHomog |
---|
46 | }; |
---|
47 | |
---|
48 | |
---|
49 | struct sip_package; |
---|
50 | typedef struct sip_package ip_package; |
---|
51 | typedef ip_package * package; |
---|
52 | |
---|
53 | typedef struct n_Procs_s n_Procs_s; |
---|
54 | |
---|
55 | // #ifdef HAVE_PLURAL |
---|
56 | struct nc_struct; |
---|
57 | typedef struct nc_struct nc_struct; |
---|
58 | // #endif |
---|
59 | |
---|
60 | typedef struct sip_link ip_link; |
---|
61 | |
---|
62 | /* the pointer types */ |
---|
63 | typedef char * char_ptr; |
---|
64 | typedef int * int_ptr; |
---|
65 | |
---|
66 | #ifdef __cplusplus |
---|
67 | //typedef ip_link * si_link; |
---|
68 | typedef sleftv * leftv; |
---|
69 | //typedef slists * lists; |
---|
70 | //typedef sattr * attr; |
---|
71 | typedef skStrategy * kStrategy; |
---|
72 | typedef ssyStrategy * syStrategy; |
---|
73 | typedef procinfo * procinfov; |
---|
74 | |
---|
75 | /* the function pointer types */ |
---|
76 | |
---|
77 | #endif /* __cplusplus */ |
---|
78 | |
---|
79 | |
---|
80 | |
---|
81 | /* |
---|
82 | ** 7. runtime procedures/global data |
---|
83 | */ |
---|
84 | |
---|
85 | /* 7.1 C-routines : */ |
---|
86 | |
---|
87 | |
---|
88 | #ifdef __cplusplus |
---|
89 | extern "C" { |
---|
90 | #endif |
---|
91 | void m2_end(int i); |
---|
92 | #ifdef __cplusplus |
---|
93 | } |
---|
94 | #endif |
---|
95 | |
---|
96 | /* 7.2 C++-routines : */ |
---|
97 | |
---|
98 | #ifdef __cplusplus |
---|
99 | int inits(void); |
---|
100 | //int IsPrime(int i); |
---|
101 | extern int siSeed; |
---|
102 | int siRand(); |
---|
103 | #endif |
---|
104 | |
---|
105 | #define loop for(;;) |
---|
106 | |
---|
107 | #ifndef ABS |
---|
108 | #define ABS(x) ((x)<0?(-(x)):(x)) |
---|
109 | #endif |
---|
110 | |
---|
111 | extern omBin char_ptr_bin; |
---|
112 | |
---|
113 | #endif |
---|
114 | |
---|
Note: See
TracBrowser
for help on using the repository browser.