| 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 |
#include "Python.h" |
| 38 |
|
| 39 |
extern void initos2(); |
| 40 |
extern void initsignal(); |
| 41 |
#ifdef WITH_THREAD |
| 42 |
extern void initthread(); |
| 43 |
#endif |
| 44 |
extern void init_codecs(); |
| 45 |
extern void init_csv(); |
| 46 |
extern void init_locale(); |
| 47 |
extern void init_random(); |
| 48 |
extern void init_sre(); |
| 49 |
extern void init_symtable(); |
| 50 |
extern void init_weakref(); |
| 51 |
extern void initarray(); |
| 52 |
extern void initbinascii(); |
| 53 |
extern void initcPickle(); |
| 54 |
extern void initcStringIO(); |
| 55 |
extern void init_collections(); |
| 56 |
extern void initcmath(); |
| 57 |
extern void initdatetime(); |
| 58 |
extern void initdl(); |
| 59 |
extern void initerrno(); |
| 60 |
extern void initfcntl(); |
| 61 |
extern void init_fileio(); |
| 62 |
extern void init_functools(); |
| 63 |
extern void init_heapq(); |
| 64 |
extern void initimageop(); |
| 65 |
extern void inititertools(); |
| 66 |
extern void initmath(); |
| 67 |
extern void init_md5(); |
| 68 |
extern void initoperator(); |
| 69 |
extern void init_sha(); |
| 70 |
extern void init_sha256(); |
| 71 |
extern void init_sha512(); |
| 72 |
extern void initstrop(); |
| 73 |
extern void init_struct(); |
| 74 |
extern void inittermios(); |
| 75 |
extern void inittime(); |
| 76 |
extern void inittiming(); |
| 77 |
extern void initxxsubtype(); |
| 78 |
extern void initzipimport(); |
| 79 |
#if !HAVE_DYNAMIC_LOADING |
| 80 |
extern void init_curses(); |
| 81 |
extern void init_curses_panel(); |
| 82 |
extern void init_hotshot(); |
| 83 |
extern void init_testcapi(); |
| 84 |
extern void initbsddb185(); |
| 85 |
extern void initbz2(); |
| 86 |
extern void initfpectl(); |
| 87 |
extern void initfpetest(); |
| 88 |
extern void initparser(); |
| 89 |
extern void initpwd(); |
| 90 |
extern void initunicodedata(); |
| 91 |
extern void initzlib(); |
| 92 |
#ifdef USE_SOCKET |
| 93 |
extern void init_socket(); |
| 94 |
extern void initselect(); |
| 95 |
#endif |
| 96 |
#endif |
| 97 |
|
| 98 |
|
| 99 |
extern void PyMarshal_Init(); |
| 100 |
extern void initimp(); |
| 101 |
extern void initgc(); |
| 102 |
|
| 103 |
struct _inittab _PyImport_Inittab[] = { |
| 104 |
|
| 105 |
{"os2", initos2}, |
| 106 |
{"signal", initsignal}, |
| 107 |
#ifdef WITH_THREAD |
| 108 |
{"thread", initthread}, |
| 109 |
#endif |
| 110 |
{"_codecs", init_codecs}, |
| 111 |
{"_csv", init_csv}, |
| 112 |
{"_locale", init_locale}, |
| 113 |
{"_random", init_random}, |
| 114 |
{"_sre", init_sre}, |
| 115 |
{"_symtable", init_symtable}, |
| 116 |
{"_weakref", init_weakref}, |
| 117 |
{"array", initarray}, |
| 118 |
{"binascii", initbinascii}, |
| 119 |
{"cPickle", initcPickle}, |
| 120 |
{"cStringIO", initcStringIO}, |
| 121 |
{"_collections", init_collections}, |
| 122 |
{"cmath", initcmath}, |
| 123 |
{"datetime", initdatetime}, |
| 124 |
{"dl", initdl}, |
| 125 |
{"errno", initerrno}, |
| 126 |
{"fcntl", initfcntl}, |
| 127 |
{"_fileio", init_fileio}, |
| 128 |
{"_functools", init_functools}, |
| 129 |
{"_heapq", init_heapq}, |
| 130 |
{"imageop", initimageop}, |
| 131 |
{"itertools", inititertools}, |
| 132 |
{"math", initmath}, |
| 133 |
{"_md5", init_md5}, |
| 134 |
{"operator", initoperator}, |
| 135 |
{"_sha", init_sha}, |
| 136 |
{"_sha256", init_sha256}, |
| 137 |
{"_sha512", init_sha512}, |
| 138 |
{"strop", initstrop}, |
| 139 |
{"_struct", init_struct}, |
| 140 |
{"termios", inittermios}, |
| 141 |
{"time", inittime}, |
| 142 |
{"timing", inittiming}, |
| 143 |
{"xxsubtype", initxxsubtype}, |
| 144 |
{"zipimport", initzipimport}, |
| 145 |
#if !HAVE_DYNAMIC_LOADING |
| 146 |
{"_curses", init_curses}, |
| 147 |
{"_curses_panel", init_curses_panel}, |
| 148 |
{"_hotshot", init_hotshot}, |
| 149 |
{"_testcapi", init_testcapi}, |
| 150 |
{"bsddb185", initbsddb185}, |
| 151 |
{"bz2", initbz2}, |
| 152 |
{"fpectl", initfpectl}, |
| 153 |
{"fpetest", initfpetest}, |
| 154 |
{"parser", initparser}, |
| 155 |
{"pwd", initpwd}, |
| 156 |
{"unicodedata", initunicodedata}, |
| 157 |
{"zlib", initzlib}, |
| 158 |
#ifdef USE_SOCKET |
| 159 |
{"_socket", init_socket}, |
| 160 |
{"select", initselect}, |
| 161 |
#endif |
| 162 |
#endif |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
{"marshal", PyMarshal_Init}, |
| 167 |
|
| 168 |
|
| 169 |
{"imp", initimp}, |
| 170 |
|
| 171 |
|
| 172 |
{"__main__", NULL}, |
| 173 |
{"__builtin__", NULL}, |
| 174 |
{"sys", NULL}, |
| 175 |
{"exceptions", NULL}, |
| 176 |
|
| 177 |
|
| 178 |
{"gc", initgc}, |
| 179 |
|
| 180 |
|
| 181 |
{0, 0} |
| 182 |
}; |