source: vendor/python/2.5/PC/config.c

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 4.4 KB
Line 
1/* Module configuration */
2
3/* This file contains the table of built-in modules.
4 See init_builtin() in import.c. */
5
6#include "Python.h"
7
8extern void initarray(void);
9#ifndef MS_WIN64
10extern void initaudioop(void);
11#endif
12extern void initbinascii(void);
13extern void initcmath(void);
14extern void initerrno(void);
15extern void initgc(void);
16#ifndef MS_WIN64
17extern void initimageop(void);
18#endif
19extern void initmath(void);
20extern void init_md5(void);
21extern void initnt(void);
22extern void initoperator(void);
23#ifndef MS_WIN64
24extern void initrgbimg(void);
25#endif
26extern void initsignal(void);
27extern void init_sha(void);
28extern void init_sha256(void);
29extern void init_sha512(void);
30extern void initstrop(void);
31extern void inittime(void);
32extern void initthread(void);
33extern void initcStringIO(void);
34extern void initcPickle(void);
35#ifdef WIN32
36extern void initmsvcrt(void);
37extern void init_locale(void);
38#endif
39extern void init_codecs(void);
40extern void init_weakref(void);
41extern void init_hotshot(void);
42extern void initxxsubtype(void);
43extern void initzipimport(void);
44extern void init_random(void);
45extern void inititertools(void);
46extern void initcollections(void);
47extern void init_heapq(void);
48extern void init_bisect(void);
49extern void init_symtable(void);
50extern void initmmap(void);
51extern void init_csv(void);
52extern void init_sre(void);
53extern void initparser(void);
54extern void init_winreg(void);
55extern void init_struct(void);
56extern void initdatetime(void);
57extern void init_functools(void);
58extern void initzlib(void);
59
60extern void init_multibytecodec(void);
61extern void init_codecs_cn(void);
62extern void init_codecs_hk(void);
63extern void init_codecs_iso2022(void);
64extern void init_codecs_jp(void);
65extern void init_codecs_kr(void);
66extern void init_codecs_tw(void);
67extern void init_subprocess(void);
68extern void init_lsprof(void);
69extern void init_ast(void);
70extern void init_types(void);
71
72/* tools/freeze/makeconfig.py marker for additional "extern" */
73/* -- ADDMODULE MARKER 1 -- */
74
75extern void PyMarshal_Init(void);
76extern void initimp(void);
77
78struct _inittab _PyImport_Inittab[] = {
79
80 {"array", initarray},
81 {"_ast", init_ast},
82#ifdef MS_WINDOWS
83#ifndef MS_WIN64
84 {"audioop", initaudioop},
85#endif
86#endif
87 {"binascii", initbinascii},
88 {"cmath", initcmath},
89 {"errno", initerrno},
90 {"gc", initgc},
91#ifndef MS_WIN64
92 {"imageop", initimageop},
93#endif
94 {"math", initmath},
95 {"_md5", init_md5},
96 {"nt", initnt}, /* Use the NT os functions, not posix */
97 {"operator", initoperator},
98#ifndef MS_WIN64
99 {"rgbimg", initrgbimg},
100#endif
101 {"signal", initsignal},
102 {"_sha", init_sha},
103 {"_sha256", init_sha256},
104 {"_sha512", init_sha512},
105 {"strop", initstrop},
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},
118
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 {"_struct", init_struct},
135 {"datetime", initdatetime},
136 {"_functools", init_functools},
137
138 {"xxsubtype", initxxsubtype},
139 {"zipimport", initzipimport},
140 {"zlib", initzlib},
141
142 /* CJK codecs */
143 {"_multibytecodec", init_multibytecodec},
144 {"_codecs_cn", init_codecs_cn},
145 {"_codecs_hk", init_codecs_hk},
146 {"_codecs_iso2022", init_codecs_iso2022},
147 {"_codecs_jp", init_codecs_jp},
148 {"_codecs_kr", init_codecs_kr},
149 {"_codecs_tw", init_codecs_tw},
150
151/* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
152/* -- ADDMODULE MARKER 2 -- */
153
154 /* This module "lives in" with marshal.c */
155 {"marshal", PyMarshal_Init},
156
157 /* This lives it with import.c */
158 {"imp", initimp},
159
160 /* These entries are here for sys.builtin_module_names */
161 {"__main__", NULL},
162 {"__builtin__", NULL},
163 {"sys", NULL},
164 {"exceptions", NULL},
165
166 {"_types", init_types},
167
168 /* Sentinel */
169 {0, 0}
170};
Note: See TracBrowser for help on using the repository browser.