Apparently the code to forestall Tk eating events was too aggressive (Tk user input...
[python/dscho.git] / PC / config.c
blob2044688009bd21b180492f8c22a891e7aae8552e
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);
48 /* XXX tim: what's the purpose of ADDMODULE MARKER? */
49 /* -- ADDMODULE MARKER 1 -- */
51 extern void PyMarshal_Init(void);
52 extern void initimp(void);
54 struct _inittab _PyImport_Inittab[] = {
56 {"array", initarray},
57 #ifdef MS_WINDOWS
58 #ifndef MS_WIN64
59 {"audioop", initaudioop},
60 #endif
61 #endif
62 {"binascii", initbinascii},
63 {"cmath", initcmath},
64 {"errno", initerrno},
65 #ifdef WITH_CYCLE_GC
66 {"gc", initgc},
67 #endif
68 #ifndef MS_WIN64
69 {"imageop", initimageop},
70 #endif
71 {"math", initmath},
72 {"md5", initmd5},
73 {"new", initnew},
74 {"nt", initnt}, /* Use the NT os functions, not posix */
75 {"operator", initoperator},
76 {"regex", initregex},
77 #ifndef MS_WIN64
78 {"rgbimg", initrgbimg},
79 #endif
80 {"rotor", initrotor},
81 {"signal", initsignal},
82 {"sha", initsha},
83 {"strop", initstrop},
84 {"struct", initstruct},
85 {"time", inittime},
86 #ifdef WITH_THREAD
87 {"thread", initthread},
88 #endif
89 {"cStringIO", initcStringIO},
90 {"cPickle", initcPickle},
91 {"pcre", initpcre},
92 #ifdef WIN32
93 {"msvcrt", initmsvcrt},
94 {"_locale", init_locale},
95 #endif
97 {"_codecs", init_codecs},
98 {"xreadlines", initxreadlines},
99 {"_weakref", init_weakref},
101 /* XXX tim: what's the purpose of ADDMODULE MARKER? */
102 /* -- ADDMODULE MARKER 2 -- */
104 /* This module "lives in" with marshal.c */
105 {"marshal", PyMarshal_Init},
107 /* This lives it with import.c */
108 {"imp", initimp},
110 /* These entries are here for sys.builtin_module_names */
111 {"__main__", NULL},
112 {"__builtin__", NULL},
113 {"sys", NULL},
114 {"exceptions", NULL},
116 /* Sentinel */
117 {0, 0}