source: git/kernel/structs.h @ cd5fefc

fieker-DuValspielwiese
Last change on this file since cd5fefc was f1d2c9, checked in by Hans Schoenemann <hannes@…>, 10 years ago
mvoed siRand to libpolys/misc/sirandom.*
  • Property mode set to 100644
File size: 2.0 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#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
31class Voice;
32class sleftv;
33class procinfo;
34class skStrategy;
35class ssyStrategy;
36class CPolynomialSummator;
37class CGlobalMultiplier;
38class CFormulaPowerMultiplier;
39#endif
40
41
42enum tHomog
43{
44  isNotHomog = FALSE,
45  isHomog    = TRUE,
46  testHomog
47};
48
49enum   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
62struct sip_package;
63typedef struct sip_package ip_package;
64typedef ip_package *       package;
65
66typedef struct  n_Procs_s  n_Procs_s;
67
68// #ifdef HAVE_PLURAL
69struct nc_struct;
70typedef struct nc_struct   nc_struct;
71// #endif
72
73typedef struct sip_link    ip_link;
74
75/* the pointer types */
76typedef char *             char_ptr;
77typedef int  *             int_ptr;
78
79#ifdef __cplusplus
80//typedef ip_link *          si_link;
81typedef sleftv *           leftv;
82//typedef slists *           lists;
83//typedef sattr *            attr;
84typedef skStrategy *       kStrategy;
85typedef ssyStrategy *      syStrategy;
86typedef 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
102extern "C" {
103#endif
104void  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
115extern omBin char_ptr_bin;
116
117#endif
118
Note: See TracBrowser for help on using the repository browser.