Singular
dyn_modules
bigintm
mod_main.cc
Go to the documentation of this file.
1
#include "
kernel/mod2.h
"
2
3
#include "
Singular/mod_lib.h
"
4
5
#include "
Singular/blackbox.h
"
6
7
#include "
Singular/tok.h
"
8
#include "
Singular/ipid.h
"
9
#include "
Singular/lists.h
"
10
11
#include "
bigintm.h
"
12
13
namespace
14
{
15
16
static
inline
void
NoReturn
(
leftv
&
res
)
17
{
18
res->
rtyp
=
NONE
;
19
res->
data
=
NULL
;
20
}
21
22
23
/// listing all blackbox types (debug stuff)
24
static
BOOLEAN
printBlackboxTypes0(
leftv
__res,
leftv
/*__v*/
)
25
{
26
NoReturn
(__res);
27
printBlackboxTypes
();
28
return
FALSE
;
29
}
30
31
/// init the bigintm (a sample blackbox) type
32
static
BOOLEAN
bigintm_setup0(
leftv
__res,
leftv
/*__v*/
)
33
{
34
NoReturn
(__res);
35
return
bigintm_setup
();
36
}
37
38
}
39
40
41
extern
"C"
int
SI_MOD_INIT(
bigintm
)(
SModulFunctions
* psModulFunctions)
42
{
43
psModulFunctions->iiAddCproc(
currPack
->libname,(
char
*)
"printBlackboxTypes"
,
FALSE
, printBlackboxTypes0);
44
psModulFunctions->iiAddCproc(
currPack
->libname,(
char
*)
"bigintm_setup"
,
FALSE
, bigintm_setup0);
45
46
// Q: should we call 'bigintm_setup' here??!?!?
47
return
MAX_TOK
;
48
}
sleftv
Class used for (list of) interpreter objects.
Definition:
subexpr.h:82
lists.h
NoReturn
static void NoReturn(leftv &res)
Definition:
mod_main.cc:71
mod2.h
FALSE
#define FALSE
Definition:
auxiliary.h:96
MAX_TOK
Definition:
tok.h:217
bigintm_setup
BOOLEAN bigintm_setup()
Definition:
bigintm.cc:271
bigintm
int SI_MOD_INIT() bigintm(SModulFunctions *psModulFunctions)
Definition:
mod_main.cc:41
mod_lib.h
sleftv::data
void * data
Definition:
subexpr.h:88
printBlackboxTypes
void printBlackboxTypes()
list all defined type (for debugging)
Definition:
blackbox.cc:218
SModulFunctions
Definition:
ipid.h:67
res
CanonicalForm res
Definition:
facAbsFact.cc:64
ipid.h
currPack
VAR package currPack
Definition:
ipid.cc:57
NULL
#define NULL
Definition:
omList.c:12
sleftv::rtyp
int rtyp
Definition:
subexpr.h:91
bigintm.h
blackbox.h
BOOLEAN
int BOOLEAN
Definition:
auxiliary.h:87
NONE
#define NONE
Definition:
tok.h:220
tok.h
Generated on Sat Nov 9 2019 17:00:18 by
doxygen 1.8.13
for
Singular debian-1:4.1.2-p1+ds-1