Blame project/variants/3.7.1/linkage/inittab.h

f623e2
#ifndef PY_LINKAGE_INITTAB_H
f623e2
#define PY_LINKAGE_INITTAB_H
f623e2
f623e2
#define PY_CORE_INIT(x) extern void x##_Init(void)
f623e2
#define PY_INIT_FUNC(x) extern void PyInit_##x(void)
f623e2
#define PY_INIT_PTR(x)  void (*x)(void)
f623e2
f623e2
#ifdef   PY_ALL_STATIC
f623e2
#include "static.h"
f623e2
#endif
f623e2
f623e2
#ifdef   PY_FOR_PYCOMPILE
f623e2
#include "pycompile.h"
f623e2
#endif
f623e2
f623e2
struct _inittab {
f623e2
	char * name;
f623e2
	PY_INIT_PTR(initfunc);
f623e2
};
f623e2
f623e2
PY_CORE_INIT(_PyWarnings);
f623e2
PY_CORE_INIT(PyMarshal);
f623e2
f623e2
PY_INIT_FUNC(_ast);
f623e2
PY_INIT_FUNC(_string);
f623e2
PY_INIT_FUNC(_imp);
f623e2
PY_INIT_FUNC(gc);
f623e2
f623e2
PY_INIT_FUNC(_abc);
f623e2
PY_INIT_FUNC(_codecs);
f623e2
PY_INIT_FUNC(_collections);
f623e2
PY_INIT_FUNC(_functools);
f623e2
PY_INIT_FUNC(_io);
f623e2
PY_INIT_FUNC(_locale);
f623e2
PY_INIT_FUNC(_operator);
f623e2
PY_INIT_FUNC(_signal);
f623e2
PY_INIT_FUNC(_sre);
f623e2
PY_INIT_FUNC(_stat);
f623e2
PY_INIT_FUNC(_symtable);
f623e2
PY_INIT_FUNC(_thread);
f623e2
PY_INIT_FUNC(_tracemalloc);
f623e2
PY_INIT_FUNC(_weakref);
f623e2
f623e2
PY_INIT_FUNC(atexit);
f623e2
PY_INIT_FUNC(errno);
f623e2
PY_INIT_FUNC(faulthandler);
f623e2
PY_INIT_FUNC(itertools);
f623e2
PY_INIT_FUNC(posix);
f623e2
PY_INIT_FUNC(pwd);
f623e2
PY_INIT_FUNC(time);
f623e2
PY_INIT_FUNC(xxsubtype);
f623e2
PY_INIT_FUNC(zipimport);
f623e2
f623e2
#define PY_IMPORT_INITTAB_BASE                  \
f623e2
	{"builtins",    0},                     \
f623e2
	{"sys",         0},                     \
f623e2
	{"_ast",        PyInit__ast},           \
f623e2
	{"_imp",        PyInit__imp},           \
f623e2
	{"_string",     PyInit__string},        \
f623e2
	{"gc",          PyInit_gc},             \
f623e2
	{"marshal",     PyMarshal_Init},        \
f623e2
	{"_warnings",   _PyWarnings_Init}
f623e2
f623e2
f623e2
#define PY_IMPORT_INITTAB_COMMON                      \
f623e2
	{"_abc",                PyInit__abc},         \
f623e2
	{"_codecs",             PyInit__codecs},      \
f623e2
	{"_collections",        PyInit__collections}, \
f623e2
	{"_functools",          PyInit__functools},   \
f623e2
	{"_io",                 PyInit__io},          \
f623e2
	{"_locale",             PyInit__locale},      \
f623e2
	{"_operator",           PyInit__operator},    \
f623e2
	{"_signal",             PyInit__signal},      \
f623e2
	{"_sre",                PyInit__sre},         \
f623e2
	{"_stat",               PyInit__stat},        \
f623e2
	{"_symtable",           PyInit__symtable},    \
f623e2
	{"_thread",             PyInit__thread},      \
f623e2
	{"_tracemalloc",        PyInit__tracemalloc}, \
f623e2
	{"_weakref",            PyInit__weakref},     \
f623e2
	{"atexit",              PyInit_atexit},       \
f623e2
	{"errno",               PyInit_errno},        \
f623e2
	{"faulthandler",        PyInit_faulthandler}, \
f623e2
	{"itertools",           PyInit_itertools},    \
f623e2
	{"posix",               PyInit_posix},        \
f623e2
	{"pwd",                 PyInit_pwd},          \
f623e2
	{"time",                PyInit_time},         \
f623e2
	{"xxsubtype",           PyInit_xxsubtype},    \
f623e2
	{"zipimport",           PyInit_zipimport}
f623e2
f623e2
f623e2
#define PY_IMPORT_INITTAB_ANYOS_CORE                            \
f623e2
	{"_asyncio",            PyInit__asyncio},               \
f623e2
	{"_bisect",             PyInit__bisect},                \
f623e2
	{"_blake2",             PyInit__blake2},                \
f623e2
	{"_bz2",                PyInit__bz2},                   \
f623e2
	{"_codecs_cn",          PyInit__codecs_cn},             \
f623e2
	{"_codecs_hk",          PyInit__codecs_hk},             \
f623e2
	{"_codecs_iso2022",     PyInit__codecs_iso2022},        \
f623e2
	{"_codecs_jp",          PyInit__codecs_jp},             \
f623e2
	{"_codecs_kr",          PyInit__codecs_kr},             \
f623e2
	{"_codecs_tw",          PyInit__codecs_tw},             \
f623e2
	{"_contextvars",        PyInit__contextvars},           \
f623e2
	{"_crypt",              PyInit__crypt},                 \
f623e2
	{"_csv",                PyInit__csv},                   \
f623e2
	{"_ctypes",             PyInit__ctypes},                \
f623e2
	{"_ctypes_test",        PyInit__ctypes_test},           \
f623e2
	{"_curses",             PyInit__curses},                \
f623e2
	{"_curses_panel",       PyInit__curses_panel},          \
f623e2
	{"_datetime",           PyInit__datetime},              \
f623e2
	{"_dbm",                PyInit__dbm},                   \
f623e2
	{"_decimal",            PyInit__decimal},               \
f623e2
	{"_elementtree",        PyInit__elementtree},           \
f623e2
	{"_gdbm",               PyInit__gdbm},                  \
f623e2
	{"_hashlib",            PyInit__hashlib},               \
f623e2
	{"_heapq",              PyInit__heapq},                 \
f623e2
	{"_json",               PyInit__json},                  \
f623e2
	{"_lsprof",             PyInit__lsprof},                \
f623e2
	{"_lzma",               PyInit__lzma},                  \
f623e2
	{"_md5",                PyInit__md5},                   \
f623e2
	{"_multibytecodec",     PyInit__multibytecodec},        \
f623e2
	{"_multiprocessing",    PyInit__multiprocessing},       \
f623e2
	{"_opcode",             PyInit__opcode},                \
f623e2
	{"_pickle",             PyInit__pickle},                \
f623e2
	{"_posixsubprocess",    PyInit__posixsubprocess},       \
f623e2
	{"_queue",              PyInit__queue},                 \
f623e2
	{"_random",             PyInit__random},                \
f623e2
	{"_sha1",               PyInit__sha1},                  \
f623e2
	{"_sha256",             PyInit__sha256},                \
f623e2
	{"_sha3",               PyInit__sha3},                  \
f623e2
	{"_sha512",             PyInit__sha512},                \
f623e2
	{"_socket",             PyInit__socket},                \
f623e2
	{"_sqlite3",            PyInit__sqlite3},               \
f623e2
	{"_struct",             PyInit__struct},                \
f623e2
	{"_testbuffer",         PyInit__testbuffer},            \
f623e2
	{"_testcapi",           PyInit__testcapi},              \
f623e2
	{"_testimportmultiple", PyInit__testimportmultiple},    \
f623e2
	{"_testmultiphase",     PyInit__testmultiphase},        \
f623e2
	{"_uuid",               PyInit__uuid},                  \
f623e2
	{"_xxtestfuzz",         PyInit__xxtestfuzz},            \
f623e2
	{"array",               PyInit_array},                  \
f623e2
	{"binascii",            PyInit_binascii},               \
f623e2
	{"cmath",               PyInit_cmath},                  \
f623e2
	{"fcntl",               PyInit_fcntl},                  \
f623e2
	{"grp",                 PyInit_grp},                    \
f623e2
	{"math",                PyInit_math},                   \
f623e2
	{"mmap",                PyInit_mmap},                   \
f623e2
	{"parser",              PyInit_parser},                 \
f623e2
	{"pyexpat",             PyInit_pyexpat},                \
f623e2
	{"readline",            PyInit_readline},               \
f623e2
	{"resource",            PyInit_resource},               \
f623e2
	{"select",              PyInit_select},                 \
f623e2
	{"spwd",                PyInit_spwd},                   \
f623e2
	{"syslog",              PyInit_syslog},                 \
f623e2
	{"termios",             PyInit_termios},                \
f623e2
	{"unicodedata",         PyInit_unicodedata},            \
f623e2
	{"xxlimited",           PyInit_xxlimited},              \
f623e2
	{"zlib",                PyInit_zlib}
f623e2
f623e2
f623e2
#define PY_IMPORT_INITTAB_ANYOS_AUDIO                           \
f623e2
	{"audioop",             PyInit_audioop},                \
f623e2
	{"ossaudiodev",         PyInit_ossaudiodev}
f623e2
f623e2
f623e2
#define PY_IMPORT_INITTAB_ANYOS_SSL                             \
f623e2
	{"_ssl",                PyInit__ssl}
f623e2
f623e2
f623e2
#define PY_IMPORT_INITTAB_ANYOS_TCLTK                           \
f623e2
	{"_tkinter",            PyInit__tkinter}
f623e2
f623e2
#endif