summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/linkage/inittab.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/profiles/linkage/inittab.h b/profiles/linkage/inittab.h
new file mode 100644
index 0000000..f3c4208
--- /dev/null
+++ b/profiles/linkage/inittab.h
@@ -0,0 +1,95 @@
+#ifndef PY_LINKAGE_INITTAB_H
+#define PY_LINKAGE_INITTAB_H
+
+#define PY_CORE_INIT(x) extern void x##_Init(void)
+#define PY_INIT_FUNC(x) extern void PyInit_##x(void)
+#define PY_INIT_PTR(x) void (*x)(void)
+
+#ifdef PY_ALL_STATIC
+#include "static.h"
+#endif
+
+#ifdef PY_FOR_PYCOMPILE
+#include "pycompile.h"
+#endif
+
+struct _inittab {
+ char * name;
+ PY_INIT_PTR(initfunc);
+};
+
+PY_CORE_INIT(_PyWarnings);
+PY_CORE_INIT(PyMarshal);
+
+PY_INIT_FUNC(_ast);
+PY_INIT_FUNC(_string);
+PY_INIT_FUNC(gc);
+PY_INIT_FUNC(imp);
+
+PY_INIT_FUNC(_codecs);
+PY_INIT_FUNC(_collections);
+PY_INIT_FUNC(_functools);
+PY_INIT_FUNC(_io);
+PY_INIT_FUNC(_locale);
+PY_INIT_FUNC(_operator);
+PY_INIT_FUNC(_signal);
+PY_INIT_FUNC(_sre);
+PY_INIT_FUNC(_stat);
+PY_INIT_FUNC(_symtable);
+PY_INIT_FUNC(_thread);
+PY_INIT_FUNC(_tracemalloc);
+PY_INIT_FUNC(_weakref);
+
+PY_INIT_FUNC(atexit);
+PY_INIT_FUNC(errno);
+PY_INIT_FUNC(faulthandler);
+PY_INIT_FUNC(itertools);
+PY_INIT_FUNC(posix);
+PY_INIT_FUNC(pwd);
+PY_INIT_FUNC(time);
+PY_INIT_FUNC(xxsubtype);
+PY_INIT_FUNC(zipimport);
+
+#define PY_IMPORT_INITTAB_BASE \
+ {"builtins", 0}, \
+ {"sys", 0}, \
+ {"_ast", PyInit__ast}, \
+ {"_string", PyInit__string}, \
+ {"_imp", PyInit_imp}, \
+ {"gc", PyInit_gc}, \
+ {"marshal", PyMarshal_Init}, \
+ {"_warnings", _PyWarnings_Init}
+
+
+#define PY_IMPORT_INITTAB_COMMON \
+ {"_codecs", PyInit__codecs}, \
+ {"_collections", PyInit__collections}, \
+ {"_functools", PyInit__functools}, \
+ {"_io", PyInit__io}, \
+ {"_locale", PyInit__locale}, \
+ {"_operator", PyInit__operator}, \
+ {"_signal", PyInit__signal}, \
+ {"_sre", PyInit__sre}, \
+ {"_stat", PyInit__stat}, \
+ {"_symtable", PyInit__symtable}, \
+ {"_thread", PyInit__thread}, \
+ {"_tracemalloc", PyInit__tracemalloc}, \
+ {"_weakref", PyInit__weakref}, \
+ {"atexit", PyInit_atexit}, \
+ {"errno", PyInit_errno}, \
+ {"faulthandler", PyInit_faulthandler}, \
+ {"itertools", PyInit_itertools}, \
+ {"posix", PyInit_posix}, \
+ {"pwd", PyInit_pwd}, \
+ {"time", PyInit_time}, \
+ {"xxsubtype", PyInit_xxsubtype}, \
+ {"zipimport", PyInit_zipimport}
+
+
+#define PY_IMPORT_INITTAB_ANYOS_CORE
+
+
+#define PY_IMPORT_INITTAB_ANYOS_AUDIO
+
+
+#endif