_make_boundary(): Fix for SF bug #745478, broken boundary calculation
[python/dscho.git] / PC / config.c
blobea65e912210a5bd08c072154ffa48e3e6c16b479
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 initmd5(void);
21 extern void initnt(void);
22 extern void initoperator(void);
23 extern void initregex(void);
24 #ifndef MS_WIN64
25 extern void initrgbimg(void);
26 #endif
27 extern void initrotor(void);
28 extern void initsignal(void);
29 extern void initsha(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 extern void initpcre(void);
37 #ifdef WIN32
38 extern void initmsvcrt(void);
39 extern void init_locale(void);
40 #endif
41 extern void init_codecs(void);
42 extern void initxreadlines(void);
43 extern void init_weakref(void);
44 extern void init_hotshot(void);
45 extern void initxxsubtype(void);
46 extern void initzipimport(void);
47 extern void init_random(void);
48 extern void inititertools(void);
50 /* tools/freeze/makeconfig.py marker for additional "extern" */
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 {"gc", initgc},
68 #ifndef MS_WIN64
69 {"imageop", initimageop},
70 #endif
71 {"math", initmath},
72 {"md5", initmd5},
73 {"nt", initnt}, /* Use the NT os functions, not posix */
74 {"operator", initoperator},
75 {"regex", initregex},
76 #ifndef MS_WIN64
77 {"rgbimg", initrgbimg},
78 #endif
79 {"rotor", initrotor},
80 {"signal", initsignal},
81 {"sha", initsha},
82 {"strop", initstrop},
83 {"struct", initstruct},
84 {"time", inittime},
85 #ifdef WITH_THREAD
86 {"thread", initthread},
87 #endif
88 {"cStringIO", initcStringIO},
89 {"cPickle", initcPickle},
90 {"pcre", initpcre},
91 #ifdef WIN32
92 {"msvcrt", initmsvcrt},
93 {"_locale", init_locale},
94 #endif
96 {"_codecs", init_codecs},
97 {"xreadlines", initxreadlines},
98 {"_weakref", init_weakref},
99 {"_hotshot", init_hotshot},
100 {"_random", init_random},
101 {"itertools", inititertools},
103 {"xxsubtype", initxxsubtype},
104 {"zipimport", initzipimport},
106 /* tools/freeze/makeconfig.py marker for additional "_inittab" entries */
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}