1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
#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 \
{"_asyncio", PyInit__asyncio}, \
{"_bisect", PyInit__bisect}, \
{"_blake2", PyInit__blake2}, \
{"_bz2", PyInit__bz2}, \
{"_codecs_cn", PyInit__codecs_cn}, \
{"_codecs_hk", PyInit__codecs_hk}, \
{"_codecs_iso2022", PyInit__codecs_iso2022}, \
{"_codecs_jp", PyInit__codecs_jp}, \
{"_codecs_kr", PyInit__codecs_kr}, \
{"_codecs_tw", PyInit__codecs_tw}, \
{"_crypt", PyInit__crypt}, \
{"_csv", PyInit__csv}, \
{"_ctypes", PyInit__ctypes}, \
{"_ctypes_test", PyInit__ctypes_test}, \
{"_curses", PyInit__curses}, \
{"_curses_panel", PyInit__curses_panel}, \
{"_datetime", PyInit__datetime}, \
{"_dbm", PyInit__dbm}, \
{"_decimal", PyInit__decimal}, \
{"_elementtree", PyInit__elementtree}, \
{"_gdbm", PyInit__gdbm}, \
{"_hashlib", PyInit__hashlib}, \
{"_heapq", PyInit__heapq}, \
{"_json", PyInit__json}, \
{"_lsprof", PyInit__lsprof}, \
{"_lzma", PyInit__lzma}, \
{"_md5", PyInit__md5}, \
{"_multibytecodec", PyInit__multibytecodec}, \
{"_multiprocessing", PyInit__multiprocessing}, \
{"_opcode", PyInit__opcode}, \
{"_pickle", PyInit__pickle}, \
{"_posixsubprocess", PyInit__posixsubprocess}, \
{"_random", PyInit__random}, \
{"_sha1", PyInit__sha1}, \
{"_sha256", PyInit__sha256}, \
{"_sha3", PyInit__sha3}, \
{"_sha512", PyInit__sha512}, \
{"_socket", PyInit__socket}, \
{"_sqlite3", PyInit__sqlite3}, \
{"_ssl", PyInit__ssl}, \
{"_struct", PyInit__struct}, \
{"_testbuffer", PyInit__testbuffer}, \
{"_testcapi", PyInit__testcapi}, \
{"_testimportmultiple", PyInit__testimportmultiple}, \
{"_testmultiphase", PyInit__testmultiphase}, \
{"array", PyInit_array}, \
{"binascii", PyInit_binascii}, \
{"cmath", PyInit_cmath}, \
{"fcntl", PyInit_fcntl}, \
{"grp", PyInit_grp}, \
{"math", PyInit_math}, \
{"mmap", PyInit_mmap}, \
{"parser", PyInit_parser}, \
{"pyexpat", PyInit_pyexpat}, \
{"readline", PyInit_readline}, \
{"resource", PyInit_resource}, \
{"select", PyInit_select}, \
{"spwd", PyInit_spwd}, \
{"syslog", PyInit_syslog}, \
{"termios", PyInit_termios}, \
{"unicodedata", PyInit_unicodedata}, \
{"xxlimited", PyInit_xxlimited}, \
{"zlib", PyInit_zlib}
#define PY_IMPORT_INITTAB_ANYOS_AUDIO \
{"audioop", PyInit_audioop}, \
{"ossaudiodev", PyInit_ossaudiodev}
#define PY_IMPORT_INITTAB_ANYOS_TCLTK \
{"_tkinter", PyInit__tkinter}
#endif
|