spielwiese
Last change
on this file since 83192d was
83192d,
checked in by Oleksandr Motsak <motsak@…>, 11 years ago
|
Fixing the including of "config.h"-files before any other headers + include reordering...
fix: also syzextra
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[e6d9a32] | 1 | /* |
---|
| 2 | * Developer's BB tests |
---|
| 3 | */ |
---|
| 4 | |
---|
[83192d] | 5 | #ifdef HAVE_CONFIG_H |
---|
| 6 | #include "config.h" |
---|
| 7 | #endif /* HAVE_CONFIG_H */ |
---|
| 8 | |
---|
[383b2c8] | 9 | #include <kernel/mod2.h> |
---|
[e6d9a32] | 10 | |
---|
| 11 | #include <Singular/blackbox.h> |
---|
| 12 | |
---|
| 13 | #include <Singular/tok.h> |
---|
| 14 | #include <Singular/ipid.h> |
---|
| 15 | #include <Singular/lists.h> |
---|
| 16 | |
---|
| 17 | #include <dlfcn.h> |
---|
| 18 | |
---|
| 19 | #include "bigintm.h" |
---|
| 20 | |
---|
[f24733] | 21 | namespace |
---|
| 22 | { |
---|
[e6d9a32] | 23 | |
---|
| 24 | static inline void NoReturn(leftv& res) |
---|
| 25 | { |
---|
| 26 | res->rtyp = NONE; |
---|
| 27 | res->data = NULL; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | /// listing all blackbox types (debug stuff) |
---|
[636c28] | 32 | static BOOLEAN printBlackboxTypes0(leftv __res, leftv /*__v*/) |
---|
[e6d9a32] | 33 | { |
---|
| 34 | NoReturn(__res); |
---|
| 35 | printBlackboxTypes(); |
---|
| 36 | return FALSE; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | /// init the bigintm (a sample blackbox) type |
---|
[636c28] | 40 | static BOOLEAN bigintm_setup0(leftv __res, leftv /*__v*/) |
---|
[e6d9a32] | 41 | { |
---|
| 42 | NoReturn(__res); |
---|
| 43 | return bigintm_setup(); |
---|
| 44 | } |
---|
| 45 | |
---|
[5cdbfe] | 46 | } |
---|
| 47 | |
---|
| 48 | |
---|
[e6d9a32] | 49 | extern "C" |
---|
| 50 | { |
---|
| 51 | int mod_init(SModulFunctions* psModulFunctions) |
---|
| 52 | { |
---|
[636c28] | 53 | psModulFunctions->iiAddCproc(currPack->libname,(char*)"printBlackboxTypes",FALSE, printBlackboxTypes0); |
---|
| 54 | psModulFunctions->iiAddCproc(currPack->libname,(char*)"bigintm_setup",FALSE, bigintm_setup0); |
---|
[5cdbfe] | 55 | |
---|
[636c28] | 56 | // Q: should we call 'bigintm_setup' here??!?!? |
---|
| 57 | return 0; |
---|
[e6d9a32] | 58 | } |
---|
| 59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.