Changeset 9eb3048 in git
- Timestamp:
- Jul 9, 2013, 10:29:22 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 741c7090dd3b618a24f57b75f1a21c3a19ce119f
- Parents:
- 86919e90eae002225109c1b5b9d94a6544b1a907
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-09 22:29:22+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-09 22:31:47+02:00
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipid.cc
r86919e r9eb3048 7 7 */ 8 8 9 #include <string.h>10 11 9 #ifdef HAVE_CONFIG_H 12 10 #include "config.h" 13 11 #endif /* HAVE_CONFIG_H */ 12 14 13 #include <kernel/mod2.h> 14 15 15 #include <omalloc/omalloc.h> 16 #include <Singular/tok.h> 16 17 17 #include <misc/options.h> 18 #include <Singular/ipshell.h>19 18 #include <misc/intvec.h> 20 #include <kernel/febase.h> 19 21 20 #include <coeffs/numbers.h> 22 21 #include <coeffs/bigintmat.h> 22 23 #include <polys/matpol.h> 24 #include <polys/monomials/ring.h> 25 26 #include <kernel/febase.h> 23 27 #include <kernel/longrat.h> 24 28 #include <kernel/polys.h> 25 #include <polys/monomials/ring.h>26 29 #include <kernel/ideals.h> 27 #include <polys/matpol.h> 30 #include <kernel/syz.h> 31 32 #include <Singular/tok.h> 33 #include <Singular/ipshell.h> 28 34 #include <Singular/lists.h> 29 35 #include <Singular/attrib.h> 30 36 #include <Singular/links/silink.h> 31 #include <kernel/syz.h>32 37 #include <Singular/ipid.h> 33 38 #include <Singular/blackbox.h> … … 36 41 #include <polys/mod_raw.h> 37 42 #endif /* HAVE_DYNAMIC_LOADING */ 43 44 #include <string.h> 38 45 39 46 omBin sip_command_bin = omGetSpecBin(sizeof(sip_command)); -
Singular/iplib.cc
r86919e r9eb3048 733 733 } 734 734 735 int staticdemo_mod_init(SModulFunctions*){ PrintS("init of staticdemo\n"); }735 int staticdemo_mod_init(SModulFunctions*){ PrintS("init of staticdemo\n"); return (0); } 736 736 737 737 #define SI_GET_BUILTIN_MOD_INIT(name) \ 738 int name##_mod_init(SModulFunctions*); \739 if (strcmp(libname, #name ".so") == 0) { return name##_mod_init; }738 int SI_MOD_INIT(name)(SModulFunctions*); \ 739 if (strcmp(libname, #name ".so") == 0) { return SI_MOD_INIT(name); } 740 740 741 741 … … 1109 1109 return TRUE; 1110 1110 #else 1111 /* 1111 1112 typedef int (*fktn_t)(int(*iiAddCproc)(const char *libname, const char *procname, 1112 1113 BOOLEAN pstatic, 1113 1114 BOOLEAN(*func)(leftv res, leftv v))); 1115 */ 1114 1116 SModulFunc_t fktn; 1115 1117 idhdl pl; … … 1188 1190 int iiAddCproc(const char *libname, const char *procname, BOOLEAN pstatic, 1189 1191 BOOLEAN(*func)(leftv res, leftv v)); 1192 /* 1190 1193 typedef int (*fktn_t)(int(*iiAddCproc)(const char *libname, const char *procname, 1191 1194 BOOLEAN pstatic, 1192 1195 BOOLEAN(*func)(leftv res, leftv v))); 1196 */ 1193 1197 // SModulFunc_t fktn; 1194 1198 idhdl pl; -
Singular/mod_lib.cc
r86919e r9eb3048 19 19 #define SI_BUILTIN_LIBSTR(name) (char*) #name ".so", 20 20 21 c har* si_builtin_libs[]={ SI_FOREACH_BUILTIN(SI_BUILTIN_LIBSTR)NULL };21 const char * const si_builtin_libs[] = { SI_FOREACH_BUILTIN(SI_BUILTIN_LIBSTR) NULL }; 22 22 23 23 #undef SI_BUILTIN_LIBSTR -
Singular/mod_lib.h
r86919e r9eb3048 6 6 #include <polys/mod_raw.h> /* for lib_types */ 7 7 8 lib_types type_of_LIB(char *newlib, char *fullname); 8 9 9 10 #ifdef EMBED_PYTHON 10 #define SI_BUILTIN_PYOBJECT(add) add(pyobject) 11 #define SI_BUILTIN_PYOBJECT(add) add(pyobject) add(syzextra) 11 12 #else 12 13 #define SI_BUILTIN_PYOBJECT(add) 13 14 #endif 14 lib_types type_of_LIB(char *newlib, char *fullname);15 15 16 16 /// Data for @c type_of_LIB to determine built-in modules, 17 17 /// use @c add(name) to add built-in library to macro 18 18 #define SI_FOREACH_BUILTIN(add)\ 19 add(staticdemo)\20 SI_BUILTIN_PYOBJECT(add)19 add(staticdemo)\ 20 SI_BUILTIN_PYOBJECT(add) 21 21 22 22 #define SI_MOD_INIT(name) name##_mod_init
Note: See TracChangeset
for help on using the changeset viewer.