|
|
5d6440 |
#ifndef PY_LINKAGE_INITTAB_H
|
|
|
5d6440 |
#define PY_LINKAGE_INITTAB_H
|
|
|
5d6440 |
|
|
|
5d6440 |
#define PY_CORE_INIT(x) extern void x##_Init(void)
|
|
|
5d6440 |
#define PY_INIT_FUNC(x) extern void PyInit_##x(void)
|
|
|
5d6440 |
#define PY_INIT_PTR(x) void (*x)(void)
|
|
|
5d6440 |
|
|
|
5d6440 |
#ifdef PY_ALL_STATIC
|
|
|
5d6440 |
#include "static.h"
|
|
|
5d6440 |
#endif
|
|
|
5d6440 |
|
|
|
5d6440 |
#ifdef PY_FOR_PYCOMPILE
|
|
|
5d6440 |
#include "pycompile.h"
|
|
|
5d6440 |
#endif
|
|
|
5d6440 |
|
|
|
5d6440 |
struct _inittab {
|
|
|
5d6440 |
char * name;
|
|
|
5d6440 |
PY_INIT_PTR(initfunc);
|
|
|
5d6440 |
};
|
|
|
5d6440 |
|
|
|
5d6440 |
PY_CORE_INIT(_PyWarnings);
|
|
|
5d6440 |
PY_CORE_INIT(PyMarshal);
|
|
|
5d6440 |
|
|
|
5d6440 |
PY_INIT_FUNC(_ast);
|
|
|
5d6440 |
PY_INIT_FUNC(_string);
|
|
|
5d6440 |
PY_INIT_FUNC(gc);
|
|
|
5d6440 |
PY_INIT_FUNC(imp);
|
|
|
5d6440 |
|
|
|
5d6440 |
PY_INIT_FUNC(_codecs);
|
|
|
5d6440 |
PY_INIT_FUNC(_collections);
|
|
|
5d6440 |
PY_INIT_FUNC(_functools);
|
|
|
5d6440 |
PY_INIT_FUNC(_io);
|
|
|
5d6440 |
PY_INIT_FUNC(_locale);
|
|
|
5d6440 |
PY_INIT_FUNC(_operator);
|
|
|
5d6440 |
PY_INIT_FUNC(_signal);
|
|
|
5d6440 |
PY_INIT_FUNC(_sre);
|
|
|
5d6440 |
PY_INIT_FUNC(_stat);
|
|
|
5d6440 |
PY_INIT_FUNC(_symtable);
|
|
|
5d6440 |
PY_INIT_FUNC(_thread);
|
|
|
5d6440 |
PY_INIT_FUNC(_tracemalloc);
|
|
|
5d6440 |
PY_INIT_FUNC(_weakref);
|
|
|
5d6440 |
|
|
|
5d6440 |
PY_INIT_FUNC(atexit);
|
|
|
5d6440 |
PY_INIT_FUNC(errno);
|
|
|
5d6440 |
PY_INIT_FUNC(faulthandler);
|
|
|
5d6440 |
PY_INIT_FUNC(itertools);
|
|
|
5d6440 |
PY_INIT_FUNC(posix);
|
|
|
5d6440 |
PY_INIT_FUNC(pwd);
|
|
|
5d6440 |
PY_INIT_FUNC(time);
|
|
|
5d6440 |
PY_INIT_FUNC(xxsubtype);
|
|
|
5d6440 |
PY_INIT_FUNC(zipimport);
|
|
|
5d6440 |
|
|
|
5d6440 |
#define PY_IMPORT_INITTAB_BASE \
|
|
|
5d6440 |
{"builtins", 0}, \
|
|
|
5d6440 |
{"sys", 0}, \
|
|
|
5d6440 |
{"_ast", PyInit__ast}, \
|
|
|
5d6440 |
{"_string", PyInit__string}, \
|
|
|
5d6440 |
{"_imp", PyInit_imp}, \
|
|
|
5d6440 |
{"gc", PyInit_gc}, \
|
|
|
5d6440 |
{"marshal", PyMarshal_Init}, \
|
|
|
5d6440 |
{"_warnings", _PyWarnings_Init}
|
|
|
5d6440 |
|
|
|
5d6440 |
|
|
|
5d6440 |
#define PY_IMPORT_INITTAB_COMMON \
|
|
|
5d6440 |
{"_codecs", PyInit__codecs}, \
|
|
|
5d6440 |
{"_collections", PyInit__collections}, \
|
|
|
5d6440 |
{"_functools", PyInit__functools}, \
|
|
|
5d6440 |
{"_io", PyInit__io}, \
|
|
|
5d6440 |
{"_locale", PyInit__locale}, \
|
|
|
5d6440 |
{"_operator", PyInit__operator}, \
|
|
|
5d6440 |
{"_signal", PyInit__signal}, \
|
|
|
5d6440 |
{"_sre", PyInit__sre}, \
|
|
|
5d6440 |
{"_stat", PyInit__stat}, \
|
|
|
5d6440 |
{"_symtable", PyInit__symtable}, \
|
|
|
5d6440 |
{"_thread", PyInit__thread}, \
|
|
|
5d6440 |
{"_tracemalloc", PyInit__tracemalloc}, \
|
|
|
5d6440 |
{"_weakref", PyInit__weakref}, \
|
|
|
5d6440 |
{"atexit", PyInit_atexit}, \
|
|
|
5d6440 |
{"errno", PyInit_errno}, \
|
|
|
5d6440 |
{"faulthandler", PyInit_faulthandler}, \
|
|
|
5d6440 |
{"itertools", PyInit_itertools}, \
|
|
|
5d6440 |
{"posix", PyInit_posix}, \
|
|
|
5d6440 |
{"pwd", PyInit_pwd}, \
|
|
|
5d6440 |
{"time", PyInit_time}, \
|
|
|
5d6440 |
{"xxsubtype", PyInit_xxsubtype}, \
|
|
|
5d6440 |
{"zipimport", PyInit_zipimport}
|
|
|
5d6440 |
|
|
|
5d6440 |
|
|
|
5d6440 |
#define PY_IMPORT_INITTAB_ANYOS_CORE
|
|
|
5d6440 |
|
|
|
5d6440 |
|
|
|
5d6440 |
#define PY_IMPORT_INITTAB_ANYOS_AUDIO
|
|
|
5d6440 |
|
|
|
5d6440 |
|
|
|
5d6440 |
#endif
|