jengelh-datetimespielwiese
Last change
on this file since cab375 was
cab375,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
ADD: LIBPOLYS_CFLAGS for GMP and etc... includes
FIX: use coeffs/si_gmp.h for a moment
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Line | |
---|
1 | #ifndef STRUCTS_H |
---|
2 | #define STRUCTS_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id$ */ |
---|
7 | /* |
---|
8 | * ABSTRACT |
---|
9 | */ |
---|
10 | |
---|
11 | /* for omBin */ |
---|
12 | #include <omalloc/omalloc.h> |
---|
13 | #include <misc/auxiliary.h> |
---|
14 | #ifdef HAVE_RINGS |
---|
15 | #include <coeffs/si_gmp.h> |
---|
16 | #endif |
---|
17 | |
---|
18 | extern int dummy; |
---|
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 | #if SIZEOF_LONG == 4 |
---|
29 | typedef long long int64; |
---|
30 | #elif SIZEOF_LONG == 8 |
---|
31 | typedef long int64; |
---|
32 | #else |
---|
33 | #error int64 undefined |
---|
34 | #endif |
---|
35 | |
---|
36 | |
---|
37 | /* C++-part */ |
---|
38 | #ifdef __cplusplus |
---|
39 | class sleftv; |
---|
40 | class procinfo; |
---|
41 | class skStrategy; |
---|
42 | class ssyStrategy; |
---|
43 | class CPolynomialSummator; |
---|
44 | class CGlobalMultiplier; |
---|
45 | class CFormulaPowerMultiplier; |
---|
46 | #endif |
---|
47 | |
---|
48 | struct sip_package; |
---|
49 | typedef struct sip_package ip_package; |
---|
50 | typedef ip_package * package; |
---|
51 | |
---|
52 | typedef struct n_Procs_s n_Procs_s; |
---|
53 | |
---|
54 | // #ifdef HAVE_PLURAL |
---|
55 | struct nc_struct; |
---|
56 | typedef struct nc_struct nc_struct; |
---|
57 | // #endif |
---|
58 | |
---|
59 | typedef struct sip_link ip_link; |
---|
60 | |
---|
61 | /* the pointer types */ |
---|
62 | typedef char * char_ptr; |
---|
63 | typedef int * int_ptr; |
---|
64 | |
---|
65 | #ifdef __cplusplus |
---|
66 | //typedef ip_link * si_link; |
---|
67 | typedef sleftv * leftv; |
---|
68 | //typedef slists * lists; |
---|
69 | //typedef sattr * attr; |
---|
70 | typedef skStrategy * kStrategy; |
---|
71 | typedef ssyStrategy * syStrategy; |
---|
72 | typedef procinfo * procinfov; |
---|
73 | |
---|
74 | /* the function pointer types */ |
---|
75 | |
---|
76 | class idrec; |
---|
77 | typedef idrec * idhdl; |
---|
78 | |
---|
79 | #endif /* __cplusplus */ |
---|
80 | |
---|
81 | |
---|
82 | |
---|
83 | /* |
---|
84 | ** 7. runtime procedures/global data |
---|
85 | */ |
---|
86 | |
---|
87 | /* 7.1 C-routines : */ |
---|
88 | |
---|
89 | |
---|
90 | #ifdef __cplusplus |
---|
91 | extern "C" { |
---|
92 | #endif |
---|
93 | void m2_end(int i) __attribute__((noreturn)); |
---|
94 | #ifdef __cplusplus |
---|
95 | } |
---|
96 | #endif |
---|
97 | |
---|
98 | /* 7.2 C++-routines : */ |
---|
99 | |
---|
100 | #ifdef __cplusplus |
---|
101 | int inits(void); |
---|
102 | int IsPrime(int i); |
---|
103 | extern int siSeed; |
---|
104 | int siRand(); |
---|
105 | #endif |
---|
106 | |
---|
107 | #define loop for(;;) |
---|
108 | |
---|
109 | #ifndef ABS |
---|
110 | #define ABS(x) ((x)<0?(-(x)):(x)) |
---|
111 | #endif |
---|
112 | |
---|
113 | extern omBin char_ptr_bin; |
---|
114 | |
---|
115 | #endif |
---|
116 | |
---|
Note: See
TracBrowser
for help on using the repository browser.