|
|
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 |
|
|
|
1fbb0e |
#define PY_IMPORT_INITTAB_ANYOS_CORE \
|
|
|
1fbb0e |
{"_asyncio", PyInit__asyncio}, \
|
|
|
1fbb0e |
{"_bisect", PyInit__bisect}, \
|
|
|
1fbb0e |
{"_blake2", PyInit__blake2}, \
|
|
|
1fbb0e |
{"_bz2", PyInit__bz2}, \
|
|
|
1fbb0e |
{"_codecs_cn", PyInit__codecs_cn}, \
|
|
|
1fbb0e |
{"_codecs_hk", PyInit__codecs_hk}, \
|
|
|
1fbb0e |
{"_codecs_iso2022", PyInit__codecs_iso2022}, \
|
|
|
1fbb0e |
{"_codecs_jp", PyInit__codecs_jp}, \
|
|
|
1fbb0e |
{"_codecs_kr", PyInit__codecs_kr}, \
|
|
|
1fbb0e |
{"_codecs_tw", PyInit__codecs_tw}, \
|
|
|
1fbb0e |
{"_crypt", PyInit__crypt}, \
|
|
|
1fbb0e |
{"_csv", PyInit__csv}, \
|
|
|
1fbb0e |
{"_ctypes", PyInit__ctypes}, \
|
|
|
1fbb0e |
{"_ctypes_test", PyInit__ctypes_test}, \
|
|
|
1fbb0e |
{"_curses", PyInit__curses}, \
|
|
|
1fbb0e |
{"_curses_panel", PyInit__curses_panel}, \
|
|
|
1fbb0e |
{"_datetime", PyInit__datetime}, \
|
|
|
1fbb0e |
{"_dbm", PyInit__dbm}, \
|
|
|
1fbb0e |
{"_decimal", PyInit__decimal}, \
|
|
|
1fbb0e |
{"_elementtree", PyInit__elementtree}, \
|
|
|
1fbb0e |
{"_gdbm", PyInit__gdbm}, \
|
|
|
1fbb0e |
{"_hashlib", PyInit__hashlib}, \
|
|
|
1fbb0e |
{"_heapq", PyInit__heapq}, \
|
|
|
1fbb0e |
{"_json", PyInit__json}, \
|
|
|
1fbb0e |
{"_lsprof", PyInit__lsprof}, \
|
|
|
1fbb0e |
{"_lzma", PyInit__lzma}, \
|
|
|
1fbb0e |
{"_md5", PyInit__md5}, \
|
|
|
1fbb0e |
{"_multibytecodec", PyInit__multibytecodec}, \
|
|
|
1fbb0e |
{"_multiprocessing", PyInit__multiprocessing}, \
|
|
|
1fbb0e |
{"_opcode", PyInit__opcode}, \
|
|
|
1fbb0e |
{"_pickle", PyInit__pickle}, \
|
|
|
1fbb0e |
{"_posixsubprocess", PyInit__posixsubprocess}, \
|
|
|
1fbb0e |
{"_random", PyInit__random}, \
|
|
|
1fbb0e |
{"_sha1", PyInit__sha1}, \
|
|
|
1fbb0e |
{"_sha256", PyInit__sha256}, \
|
|
|
1fbb0e |
{"_sha3", PyInit__sha3}, \
|
|
|
1fbb0e |
{"_sha512", PyInit__sha512}, \
|
|
|
1fbb0e |
{"_socket", PyInit__socket}, \
|
|
|
1fbb0e |
{"_sqlite3", PyInit__sqlite3}, \
|
|
|
1fbb0e |
{"_ssl", PyInit__ssl}, \
|
|
|
1fbb0e |
{"_struct", PyInit__struct}, \
|
|
|
1fbb0e |
{"_testbuffer", PyInit__testbuffer}, \
|
|
|
1fbb0e |
{"_testcapi", PyInit__testcapi}, \
|
|
|
1fbb0e |
{"_testimportmultiple", PyInit__testimportmultiple}, \
|
|
|
1fbb0e |
{"_testmultiphase", PyInit__testmultiphase}, \
|
|
|
1fbb0e |
{"array", PyInit_array}, \
|
|
|
1fbb0e |
{"binascii", PyInit_binascii}, \
|
|
|
1fbb0e |
{"cmath", PyInit_cmath}, \
|
|
|
1fbb0e |
{"fcntl", PyInit_fcntl}, \
|
|
|
1fbb0e |
{"grp", PyInit_grp}, \
|
|
|
1fbb0e |
{"math", PyInit_math}, \
|
|
|
1fbb0e |
{"mmap", PyInit_mmap}, \
|
|
|
1fbb0e |
{"parser", PyInit_parser}, \
|
|
|
1fbb0e |
{"pyexpat", PyInit_pyexpat}, \
|
|
|
1fbb0e |
{"readline", PyInit_readline}, \
|
|
|
1fbb0e |
{"resource", PyInit_resource}, \
|
|
|
1fbb0e |
{"select", PyInit_select}, \
|
|
|
1fbb0e |
{"spwd", PyInit_spwd}, \
|
|
|
1fbb0e |
{"syslog", PyInit_syslog}, \
|
|
|
1fbb0e |
{"termios", PyInit_termios}, \
|
|
|
1fbb0e |
{"unicodedata", PyInit_unicodedata}, \
|
|
|
1fbb0e |
{"xxlimited", PyInit_xxlimited}, \
|
|
|
1fbb0e |
{"zlib", PyInit_zlib}
|
|
|
1fbb0e |
|
|
|
1fbb0e |
|
|
|
1fbb0e |
#define PY_IMPORT_INITTAB_ANYOS_AUDIO \
|
|
|
1fbb0e |
{"audioop", PyInit_audioop}, \
|
|
|
1fbb0e |
{"ossaudiodev", PyInit_ossaudiodev}
|
|
|
1fbb0e |
|
|
|
1fbb0e |
|
|
|
1fbb0e |
#define PY_IMPORT_INITTAB_ANYOS_TCLTK \
|
|
|
1fbb0e |
{"_tkinter", PyInit__tkinter}
|
|
|
5d6440 |
|
|
|
5d6440 |
#endif
|