This commit was manufactured by cvs2svn to create tag
[python/dscho.git] / PC / config.c
blob9e4da2aab882f9f804c530ee7c5b2b0d9062da5f
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 #ifdef WITH_CYCLE_GC
16 extern void initgc(void);
17 #endif
18 #ifndef MS_WIN64
19 extern void initimageop(void);
20 #endif
21 extern void initmath(void);
22 extern void initmd5(void);
23 extern void initnew(void);
24 extern void initnt(void);
25 extern void initoperator(void);
26 extern void initregex(void);
27 #ifndef MS_WIN64
28 extern void initrgbimg(void);
29 #endif
30 extern void initrotor(void);
31 extern void initsignal(void);
32 extern void initsha(void);
33 extern void initstrop(void);
34 extern void initstruct(void);
35 extern void inittime(void);
36 extern void initthread(void);
37 extern void initcStringIO(void);
38 extern void initcPickle(void);
39 extern void initpcre(void);
40 #ifdef WIN32
41 extern void initmsvcrt(void);
42 extern void init_locale(void);
43 #endif
44 extern void init_codecs(void);
45 extern void initxreadlines(void);
46 extern void init_weakref(void);
47 extern void init_hotshot(void);
48 extern void initxxsubtype(void);
50 /* XXX tim: what's the purpose of ADDMODULE MARKER? */
51 /* -- ADDMODULE MARKER 1 -- */
53 extern void PyMarshal_Init(void);
54 extern void initimp(void);
56 struct _inittab _PyImport_Inittab[] = {
58 {"array", initarray},
59 #ifdef MS_WINDOWS
60 #ifndef MS_WIN64
61 {"audioop", initaudioop},
62 #endif
63 #endif
64 {"binascii", initbinascii},
65 {"cmath", initcmath},
66 {"errno", initerrno},
67 #ifdef WITH_CYCLE_GC
68 {"gc", initgc},
69 #endif
70 #ifndef MS_WIN64
71 {"imageop", initimageop},
72 #endif
73 {"math", initmath},
74 {"md5", initmd5},
75 {"new", initnew},
76 {"nt", initnt}, /* Use the NT os functions, not posix */
77 {"operator", initoperator},
78 {"regex", initregex},
79 #ifndef MS_WIN64
80 {"rgbimg", initrgbimg},
81 #endif
82 {"rotor", initrotor},
83 {"signal", initsignal},
84 {"sha", initsha},
85 {"strop", initstrop},
86 {"struct", initstruct},
87 {"time", inittime},
88 #ifdef WITH_THREAD
89 {"thread", initthread},
90 #endif
91 {"cStringIO", initcStringIO},
92 {"cPickle", initcPickle},
93 {"pcre", initpcre},
94 #ifdef WIN32
95 {"msvcrt", initmsvcrt},
96 {"_locale", init_locale},
97 #endif
99 {"_codecs", init_codecs},
100 {"xreadlines", initxreadlines},
101 {"_weakref", init_weakref},
102 {"_hotshot", init_hotshot},
104 {"xxsubtype", initxxsubtype},
106 /* XXX tim: what's the purpose of ADDMODULE MARKER? */
107 /* -- ADDMODULE MARKER 2 -- */
109 /* This module "lives in" with marshal.c */
110 {"marshal", PyMarshal_Init},
112 /* This lives it with import.c */
113 {"imp", initimp},
115 /* These entries are here for sys.builtin_module_names */
116 {"__main__", NULL},
117 {"__builtin__", NULL},
118 {"sys", NULL},
119 {"exceptions", NULL},
121 /* Sentinel */
122 {0, 0}