summaryrefslogtreecommitdiff
path: root/profiles/linkage
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/linkage')
-rw-r--r--profiles/linkage/inittab.h4
-rw-r--r--profiles/linkage/pycompile.h26
2 files changed, 30 insertions, 0 deletions
diff --git a/profiles/linkage/inittab.h b/profiles/linkage/inittab.h
index 94474c8..86d3ea9 100644
--- a/profiles/linkage/inittab.h
+++ b/profiles/linkage/inittab.h
@@ -8,6 +8,10 @@
#include "static.h"
#endif
+#ifdef PY_FOR_PYCOMPILE
+#include "pycompile.h"
+#endif
+
struct _inittab {
char * name;
PY_INIT_PTR(initfunc);
diff --git a/profiles/linkage/pycompile.h b/profiles/linkage/pycompile.h
new file mode 100644
index 0000000..9cdd7ac
--- /dev/null
+++ b/profiles/linkage/pycompile.h
@@ -0,0 +1,26 @@
+#ifndef PY_LINKAGE_PYCOMPILE_H
+#define PY_LINKAGE_PYCOMPILE_H
+
+PY_INIT_FUNC(init_collections);
+PY_INIT_FUNC(init_functools);
+PY_INIT_FUNC(init_heapq);
+PY_INIT_FUNC(init_locale);
+
+PY_INIT_FUNC(inititertools);
+PY_INIT_FUNC(initoperator);
+PY_INIT_FUNC(initreadline);
+PY_INIT_FUNC(initstrop);
+PY_INIT_FUNC(initunicodedata);
+
+#define PY_IMPORT_INITTAB_PYCOMPILE_CORE \
+ {"_collections", init_collections}, \
+ {"_functools", init_functools}, \
+ {"_heapq", init_heapq}, \
+ {"_locale", init_locale}, \
+ {"itertools", inititertools}, \
+ {"operator", initoperator}, \
+ {"readline", initreadline}, \
+ {"strop", initstrop}, \
+ {"unicodedata", initunicodedata}
+
+#endif