Maintain backwards compatibility with python < 2.3 by dynamically
[python/dscho.git] / PC / os2emx / config.c
blob6ffc15708c36e2626f2acd8c4eb5af7f0686670a
1 /* -*- C -*- ***********************************************
2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3 The Netherlands.
5 All Rights Reserved
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
15 permission.
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
32 /* Module configuration */
34 /* This file contains the table of built-in modules.
35 See init_builtin() in import.c. */
37 #include "Python.h"
39 extern void initos2();
40 extern void initsignal();
41 #ifdef WITH_THREAD
42 extern void initthread();
43 #endif
44 extern void init_codecs();
45 extern void init_csv();
46 extern void init_locale();
47 extern void init_random();
48 extern void init_sre();
49 extern void init_symtable();
50 extern void init_weakref();
51 extern void initarray();
52 extern void initbinascii();
53 extern void initcPickle();
54 extern void initcStringIO();
55 extern void initcmath();
56 extern void initdatetime();
57 extern void initdl();
58 extern void initerrno();
59 extern void initfcntl();
60 extern void initimageop();
61 extern void inititertools();
62 extern void initmath();
63 extern void initmd5();
64 extern void initoperator();
65 extern void initpcre();
66 extern void initregex();
67 extern void initrgbimg();
68 extern void initsha();
69 extern void initstrop();
70 extern void initstruct();
71 extern void inittermios();
72 extern void inittime();
73 extern void inittiming();
74 extern void initxreadlines();
75 extern void initxxsubtype();
76 extern void initzipimport();
77 #if !HAVE_DYNAMIC_LOADING
78 extern void init_curses();
79 extern void init_curses_panel();
80 extern void init_hotshot();
81 extern void init_testcapi();
82 extern void initbsddb185();
83 extern void initbz2();
84 extern void initfpectl();
85 extern void initfpetest();
86 extern void initparser();
87 extern void initpwd();
88 extern void initrotor();
89 extern void initunicodedata();
90 extern void initzlib();
91 #ifdef USE_SOCKET
92 extern void init_socket();
93 extern void initselect();
94 #endif
95 #endif
96 /* -- ADDMODULE MARKER 1 -- */
98 extern void PyMarshal_Init();
99 extern void initimp();
100 extern void initgc();
102 struct _inittab _PyImport_Inittab[] = {
104 {"os2", initos2},
105 {"signal", initsignal},
106 #ifdef WITH_THREAD
107 {"thread", initthread},
108 #endif
109 {"_codecs", init_codecs},
110 {"_csv", init_csv},
111 {"_locale", init_locale},
112 {"_random", init_random},
113 {"_sre", init_sre},
114 {"_symtable", init_symtable},
115 {"_weakref", init_weakref},
116 {"array", initarray},
117 {"binascii", initbinascii},
118 {"cPickle", initcPickle},
119 {"cStringIO", initcStringIO},
120 {"cmath", initcmath},
121 {"datetime", initdatetime},
122 {"dl", initdl},
123 {"errno", initerrno},
124 {"fcntl", initfcntl},
125 {"imageop", initimageop},
126 {"itertools", inititertools},
127 {"math", initmath},
128 {"md5", initmd5},
129 {"operator", initoperator},
130 {"pcre", initpcre},
131 {"regex", initregex},
132 {"rgbimg", initrgbimg},
133 {"sha", initsha},
134 {"strop", initstrop},
135 {"struct", initstruct},
136 {"termios", inittermios},
137 {"time", inittime},
138 {"timing", inittiming},
139 {"xreadlines", initxreadlines},
140 {"xxsubtype", initxxsubtype},
141 {"zipimport", initzipimport},
142 #if !HAVE_DYNAMIC_LOADING
143 {"_curses", init_curses},
144 {"_curses_panel", init_curses_panel},
145 {"_hotshot", init_hotshot},
146 {"_testcapi", init_testcapi},
147 {"bsddb185", initbsddb185},
148 {"bz2", initbz2},
149 {"fpectl", initfpectl},
150 {"fpetest", initfpetest},
151 {"parser", initparser},
152 {"pwd", initpwd},
153 {"rotor", initrotor},
154 {"unicodedata", initunicodedata},
155 {"zlib", initzlib},
156 #ifdef USE_SOCKET
157 {"_socket", init_socket},
158 {"select", initselect},
159 #endif
160 #endif
161 /* -- ADDMODULE MARKER 2 -- */
163 /* This module "lives in" with marshal.c */
164 {"marshal", PyMarshal_Init},
166 /* This lives it with import.c */
167 {"imp", initimp},
169 /* These entries are here for sys.builtin_module_names */
170 {"__main__", NULL},
171 {"__builtin__", NULL},
172 {"sys", NULL},
173 {"exceptions", NULL},
175 /* This lives in gcmodule.c */
176 {"gc", initgc},
178 /* Sentinel */
179 {0, 0}