spielwiese
Last change
on this file since de4e64 was
636c28,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: "scons debug=1" for debug version
UPD: updated bigintm to support correct (debug/release) version
FIX: some minor warnings (thanks to debug version)
From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>
git-svn-id: file:///usr/local/Singular/svn/trunk@14066 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
993 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Developer's BB tests |
---|
3 | */ |
---|
4 | |
---|
5 | #include <Singular/mod2.h> |
---|
6 | |
---|
7 | #include <Singular/blackbox.h> |
---|
8 | |
---|
9 | #include <Singular/tok.h> |
---|
10 | #include <Singular/ipid.h> |
---|
11 | #include <Singular/lists.h> |
---|
12 | |
---|
13 | #include <dlfcn.h> |
---|
14 | |
---|
15 | #include "bigintm.h" |
---|
16 | |
---|
17 | namespace |
---|
18 | { |
---|
19 | |
---|
20 | static inline void NoReturn(leftv& res) |
---|
21 | { |
---|
22 | res->rtyp = NONE; |
---|
23 | res->data = NULL; |
---|
24 | } |
---|
25 | |
---|
26 | |
---|
27 | /// listing all blackbox types (debug stuff) |
---|
28 | static BOOLEAN printBlackboxTypes0(leftv __res, leftv /*__v*/) |
---|
29 | { |
---|
30 | NoReturn(__res); |
---|
31 | printBlackboxTypes(); |
---|
32 | return FALSE; |
---|
33 | } |
---|
34 | |
---|
35 | /// init the bigintm (a sample blackbox) type |
---|
36 | static BOOLEAN bigintm_setup0(leftv __res, leftv /*__v*/) |
---|
37 | { |
---|
38 | NoReturn(__res); |
---|
39 | return bigintm_setup(); |
---|
40 | } |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | extern "C" |
---|
46 | { |
---|
47 | int mod_init(SModulFunctions* psModulFunctions) |
---|
48 | { |
---|
49 | psModulFunctions->iiAddCproc(currPack->libname,(char*)"printBlackboxTypes",FALSE, printBlackboxTypes0); |
---|
50 | psModulFunctions->iiAddCproc(currPack->libname,(char*)"bigintm_setup",FALSE, bigintm_setup0); |
---|
51 | |
---|
52 | // Q: should we call 'bigintm_setup' here??!?!? |
---|
53 | return 0; |
---|
54 | } |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.