Replace the localized min/max calls with normal if/else
[python.git] / PC / config.c
bloba5e153003f8084c0bbf2b093beb5a03fdde68d63
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_WINI64
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 initfuture_builtins(void);
16 extern void initgc(void);
17 #ifndef MS_WINI64
18 extern void initimageop(void);
19 #endif
20 extern void initmath(void);
21 extern void init_md5(void);
22 extern void initnt(void);
23 extern void initoperator(void);
24 extern void initsignal(void);
25 extern void init_sha(void);
26 extern void init_sha256(void);
27 extern void init_sha512(void);
28 extern void initstrop(void);
29 extern void inittime(void);
30 extern void initthread(void);
31 extern void initcStringIO(void);
32 extern void initcPickle(void);
33 #ifdef WIN32
34 extern void initmsvcrt(void);
35 extern void init_locale(void);
36 #endif
37 extern void init_codecs(void);
38 extern void init_weakref(void);
39 extern void init_hotshot(void);
40 extern void initxxsubtype(void);
41 extern void initzipimport(void);
42 extern void init_random(void);
43 extern void inititertools(void);
44 extern void init_collections(void);
45 extern void init_heapq(void);
46 extern void init_bisect(void);
47 extern void init_symtable(void);
48 extern void initmmap(void);
49 extern void init_csv(void);
50 extern void init_sre(void);
51 extern void initparser(void);
52 extern void init_winreg(void);
53 extern void init_struct(void);
54 extern void initdatetime(void);
55 extern void init_fileio(void);
56 extern void init_bytesio(void);
57 extern void init_functools(void);
58 extern void init_json(void);
59 extern void initzlib(void);
61 extern void init_multibytecodec(void);
62 extern void init_codecs_cn(void);
63 extern void init_codecs_hk(void);
64 extern void init_codecs_iso2022(void);
65 extern void init_codecs_jp(void);
66 extern void init_codecs_kr(void);
67 extern void init_codecs_tw(void);
68 extern void init_subprocess(void);
69 extern void init_lsprof(void);
70 extern void init_ast(void);
71 extern void _PyWarnings_Init(void);
73 /* tools/freeze/makeconfig.py marker for additional "extern" */
74 /* -- ADDMODULE MARKER 1 -- */
76 extern void PyMarshal_Init(void);
77 extern void initimp(void);
79 struct _inittab _PyImport_Inittab[] = {
81 {"array", initarray},
82 {"_ast", init_ast},
83 #ifdef MS_WINDOWS
84 #ifndef MS_WINI64
85 {"audioop", initaudioop},
86 #endif
87 #endif
88 {"binascii", initbinascii},
89 {"cmath", initcmath},
90 {"errno", initerrno},
91 {"future_builtins", initfuture_builtins},
92 {"gc", initgc},
93 #ifndef MS_WINI64
94 {"imageop", initimageop},
95 #endif
96 {"math", initmath},
97 {"_md5", init_md5},
98 {"nt", initnt}, /* Use the NT os functions, not posix */
99 {"operator", initoperator},
100 {"signal", initsignal},
101 {"_sha", init_sha},
102 {"_sha256", init_sha256},
103 {"_sha512", init_sha512},
104 {"strop", initstrop},
105 {"time", inittime},
106 #ifdef WITH_THREAD
107 {"thread", initthread},
108 #endif
109 {"cStringIO", initcStringIO},
110 {"cPickle", initcPickle},
111 #ifdef WIN32
112 {"msvcrt", initmsvcrt},
113 {"_locale", init_locale},
114 #endif
115 /* XXX Should _subprocess go in a WIN32 block? not WIN64? */
116 {"_subprocess", init_subprocess},
118 {"_codecs", init_codecs},
119 {"_weakref", init_weakref},
120 {"_hotshot", init_hotshot},
121 {"_random", init_random},
122 {"_bisect", init_bisect},
123 {"_heapq", init_heapq},
124 {"_lsprof", init_lsprof},
125 {"itertools", inititertools},
126 {"_collections", init_collections},
127 {"_symtable", init_symtable},
128 {"mmap", initmmap},
129 {"_csv", init_csv},
130 {"_sre", init_sre},
131 {"parser", initparser},
132 {"_winreg", init_winreg},
133 {"_struct", init_struct},
134 {"datetime", initdatetime},
135 {"_fileio", init_fileio},
136 {"_bytesio", init_bytesio},
137 {"_functools", init_functools},
138 {"_json", init_json},
140 {"xxsubtype", initxxsubtype},
141 {"zipimport", initzipimport},
142 {"zlib", initzlib},
144 /* CJK codecs */
145 {"_multibytecodec", init_multibytecodec},
146 {"_codecs_cn", init_codecs_cn},
147 {"_codecs_hk", init_codecs_hk},
148 {"_codecs_iso2022", init_codecs_iso2022},
149 {"_codecs_jp", init_codecs_jp},
150 {"_codecs_kr", init_codecs_kr},
151 {"_codecs_tw", init_codecs_tw},
153 /* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
154 /* -- ADDMODULE MARKER 2 -- */
156 /* This module "lives in" with marshal.c */
157 {"marshal", PyMarshal_Init},
159 /* This lives it with import.c */
160 {"imp", initimp},
162 /* These entries are here for sys.builtin_module_names */
163 {"__main__", NULL},
164 {"__builtin__", NULL},
165 {"sys", NULL},
166 {"exceptions", NULL},
167 {"_warnings", _PyWarnings_Init},
169 /* Sentinel */
170 {0, 0}