source:
git/Singular/mod_lib.h
@
6b5a71
Last change on this file since 6b5a71 was a9c298, checked in by , 10 years ago | |
---|---|
|
|
File size: 984 bytes |
Rev | Line | |
---|---|---|
[adc0a4] | 1 | #ifndef MOD_LIB_H |
2 | #define MOD_LIB_H | |
3 | ||
[a9c298] | 4 | // #include config.h |
[ba5e9e] | 5 | #include <kernel/mod2.h> /* for EMBED_PYTHON, HAVE_MATHICGB */ |
[83192d] | 6 | |
[adc0a4] | 7 | #include <polys/mod_raw.h> /* for lib_types */ |
8 | ||
[e2202ee] | 9 | lib_types type_of_LIB(const char *newlib, char *fullname); |
[adc0a4] | 10 | |
[bbeddf] | 11 | |
[a9c298] | 12 | #if HAVE_GFANLIB |
[bbeddf] | 13 | #define SI_BUILTIN_GFANLIB(add) add(gfanlib) |
14 | #else | |
[a9c298] | 15 | #define SI_BUILTIN_GFANLIB(add) |
[bbeddf] | 16 | #endif |
17 | ||
18 | ||
[adc0a4] | 19 | #ifdef EMBED_PYTHON |
[bbeddf] | 20 | #define SI_BUILTIN_PYOBJECT(add) add(pyobject) add(syzextra) SI_BUILTIN_GFANLIB(add) |
[3a40eb] | 21 | //TODO: the line above means that syzextra should be staticly embedded IFF pyobjects do so :( |
[adc0a4] | 22 | #else |
[a9c298] | 23 | #define SI_BUILTIN_PYOBJECT(add) |
[adc0a4] | 24 | #endif |
25 | ||
[3a40eb] | 26 | #ifdef HAVE_MATHICGB |
27 | # define SI_BUILTIN_MATHIC(add) add(singmathic) | |
28 | #else | |
[a9c298] | 29 | # define SI_BUILTIN_MATHIC(add) |
[3a40eb] | 30 | #endif |
31 | ||
[adc0a4] | 32 | /// Data for @c type_of_LIB to determine built-in modules, |
33 | /// use @c add(name) to add built-in library to macro | |
34 | #define SI_FOREACH_BUILTIN(add)\ | |
[9eb3048] | 35 | add(staticdemo)\ |
[3a40eb] | 36 | SI_BUILTIN_MATHIC(add)\ |
[9eb3048] | 37 | SI_BUILTIN_PYOBJECT(add) |
[adc0a4] | 38 | |
39 | #define SI_MOD_INIT(name) name##_mod_init | |
40 | ||
41 | #endif | |
[3a40eb] | 42 |
Note: See TracBrowser
for help on using the repository browser.