Revert previous change, SKIP had a versionadded elsewhere
[python.git] / PC / config.c
blob75e1a3cb5e2d0272bba59b7c66bd52be9708b24c
1 /* Module configuration */
3 /* This file contains the table of built-in modules.
4 See init_builtin() in import.c. */
6 #include "Python.h"
8 extern void initarray(void);
9 #ifndef MS_WIN64
10 extern void initaudioop(void);
11 #endif
12 extern void initbinascii(void);
13 extern void initcmath(void);
14 extern void initerrno(void);
15 extern void initgc(void);
16 #ifndef MS_WIN64
17 extern void initimageop(void);
18 #endif
19 extern void initmath(void);
20 extern void init_md5(void);
21 extern void initnt(void);
22 extern void initoperator(void);
23 #ifndef MS_WIN64
24 extern void initrgbimg(void);
25 #endif
26 extern void initsignal(void);
27 extern void init_sha(void);
28 extern void init_sha256(void);
29 extern void init_sha512(void);
30 extern void initstrop(void);
31 extern void initstruct(void);
32 extern void inittime(void);
33 extern void initthread(void);
34 extern void initcStringIO(void);
35 extern void initcPickle(void);
36 #ifdef WIN32
37 extern void initmsvcrt(void);
38 extern void init_locale(void);
39 #endif
40 extern void init_codecs(void);
41 extern void init_weakref(void);
42 extern void init_hotshot(void);
43 extern void initxxsubtype(void);
44 extern void initzipimport(void);
45 extern void init_random(void);
46 extern void inititertools(void);
47 extern void initcollections(void);
48 extern void init_heapq(void);
49 extern void init_bisect(void);
50 extern void init_symtable(void);
51 extern void initmmap(void);
52 extern void init_csv(void);
53 extern void init_sre(void);
54 extern void initparser(void);
55 extern void init_winreg(void);
56 extern void initdatetime(void);
57 extern void initfunctional(void);
58 extern void initzlib(void);
60 extern void init_multibytecodec(void);
61 extern void init_codecs_cn(void);
62 extern void init_codecs_hk(void);
63 extern void init_codecs_iso2022(void);
64 extern void init_codecs_jp(void);
65 extern void init_codecs_kr(void);
66 extern void init_codecs_tw(void);
67 extern void init_subprocess(void);
68 extern void init_lsprof(void);
69 extern void init_ast(void);
71 /* tools/freeze/makeconfig.py marker for additional "extern" */
72 /* -- ADDMODULE MARKER 1 -- */
74 extern void PyMarshal_Init(void);
75 extern void initimp(void);
77 struct _inittab _PyImport_Inittab[] = {
79 {"array", initarray},
80 {"_ast", init_ast},
81 #ifdef MS_WINDOWS
82 #ifndef MS_WIN64
83 {"audioop", initaudioop},
84 #endif
85 #endif
86 {"binascii", initbinascii},
87 {"cmath", initcmath},
88 {"errno", initerrno},
89 {"gc", initgc},
90 #ifndef MS_WIN64
91 {"imageop", initimageop},
92 #endif
93 {"math", initmath},
94 {"_md5", init_md5},
95 {"nt", initnt}, /* Use the NT os functions, not posix */
96 {"operator", initoperator},
97 #ifndef MS_WIN64
98 {"rgbimg", initrgbimg},
99 #endif
100 {"signal", initsignal},
101 {"_sha", init_sha},
102 {"_sha256", init_sha256},
103 {"_sha512", init_sha512},
104 {"strop", initstrop},
105 {"struct", initstruct},
106 {"time", inittime},
107 #ifdef WITH_THREAD
108 {"thread", initthread},
109 #endif
110 {"cStringIO", initcStringIO},
111 {"cPickle", initcPickle},
112 #ifdef WIN32
113 {"msvcrt", initmsvcrt},
114 {"_locale", init_locale},
115 #endif
116 /* XXX Should _subprocess go in a WIN32 block? not WIN64? */
117 {"_subprocess", init_subprocess},
119 {"_codecs", init_codecs},
120 {"_weakref", init_weakref},
121 {"_hotshot", init_hotshot},
122 {"_random", init_random},
123 {"_bisect", init_bisect},
124 {"_heapq", init_heapq},
125 {"_lsprof", init_lsprof},
126 {"itertools", inititertools},
127 {"collections", initcollections},
128 {"_symtable", init_symtable},
129 {"mmap", initmmap},
130 {"_csv", init_csv},
131 {"_sre", init_sre},
132 {"parser", initparser},
133 {"_winreg", init_winreg},
134 {"datetime", initdatetime},
135 {"functional", initfunctional},
137 {"xxsubtype", initxxsubtype},
138 {"zipimport", initzipimport},
139 {"zlib", initzlib},
141 /* CJK codecs */
142 {"_multibytecodec", init_multibytecodec},
143 {"_codecs_cn", init_codecs_cn},
144 {"_codecs_hk", init_codecs_hk},
145 {"_codecs_iso2022", init_codecs_iso2022},
146 {"_codecs_jp", init_codecs_jp},
147 {"_codecs_kr", init_codecs_kr},
148 {"_codecs_tw", init_codecs_tw},
150 /* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
151 /* -- ADDMODULE MARKER 2 -- */
153 /* This module "lives in" with marshal.c */
154 {"marshal", PyMarshal_Init},
156 /* This lives it with import.c */
157 {"imp", initimp},
159 /* These entries are here for sys.builtin_module_names */
160 {"__main__", NULL},
161 {"__builtin__", NULL},
162 {"sys", NULL},
163 {"exceptions", NULL},
165 /* Sentinel */
166 {0, 0}