Move setting of ioready 'wait' earlier in call chain, to
[python/dscho.git] / Mac / Modules / macconfig.c
blob7a6d3d9006bcde685044cc4e3ff32a00c9798d97
1 /***********************************************************
2 Copyright 1991-1997 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 not be used in advertising or publicity pertaining to
13 distribution of the software without specific, written prior permission.
15 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 ******************************************************************/
25 /* Macintosh Python configuration file */
27 #include "Python.h"
28 /* Table of built-in modules.
29 These are initialized when first imported.
30 Note: selection of optional extensions is now generally done by the
31 makesetup script. */
33 extern void initarray();
34 extern void initmath();
35 #ifndef WITHOUT_COMPLEX
36 extern void initcmath();
37 #endif
38 extern void initparser();
39 extern void initmac();
40 extern void initMacOS();
41 extern void initregex();
42 extern void initstrop();
43 extern void initstruct();
44 extern void inittime();
45 extern void initdbm();
46 extern void initfcntl();
47 extern void initnis();
48 extern void initpwd();
49 extern void initgrp();
50 extern void initcrypt();
51 extern void initselect();
52 extern void init_socket();
53 extern void initaudioop();
54 extern void initimageop();
55 extern void initrgbimg();
56 extern void initmd5();
57 extern void initmpz();
58 extern void initrotor();
59 extern void inital();
60 extern void initcd();
61 extern void initcl();
62 extern void initfm();
63 extern void initgl();
64 extern void initimgfile();
65 extern void initimgformat();
66 extern void initsgi();
67 extern void initsv();
68 extern void initfl();
69 extern void initthread();
70 extern void inittiming();
71 extern void initsignal();
72 extern void initdl();
73 extern void initsyslog();
74 extern void initgestalt();
75 extern void initbinascii();
76 extern void initoperator();
77 extern void initerrno();
78 extern void initpcre();
79 extern void initunicodedata();
80 extern void init_codecs();
81 extern void initNav();
82 extern void inithfsplus();
83 #ifdef USE_MACCTB
84 extern void initctb();
85 #endif
86 #ifdef USE_MACSPEECH
87 extern void initmacspeech();
88 #endif
89 #ifdef USE_IC
90 extern void initicglue();
91 #endif
92 #ifdef USE_TOOLBOX
93 #ifndef USE_CORE_TOOLBOX
94 #define USE_CORE_TOOLBOX
95 #endif
96 extern void init_AH();
97 extern void init_App();
98 extern void init_Fm();
99 extern void init_Help();
100 extern void init_IBCarbon();
101 extern void init_Icn();
102 extern void init_List();
103 extern void init_Mlte();
104 extern void init_Qdoffs();
105 extern void init_Snd();
106 extern void init_Sndihooks();
107 extern void init_Scrap();
108 extern void init_TE();
109 extern void initColorPicker();
110 extern void initPrinting();
111 extern void init_CF();
112 #endif
113 #ifdef USE_CORE_TOOLBOX
114 extern void init_AE();
115 extern void init_Ctl();
116 extern void init_Dlg();
117 extern void init_Drag();
118 extern void init_Evt();
119 extern void init_File();
120 extern void init_Folder();
121 extern void init_Menu();
122 extern void init_Qd();
123 extern void init_Res();
124 extern void init_Win();
125 #endif
126 #ifdef USE_QT
127 extern void init_Cm();
128 extern void init_Qt();
129 #endif
131 #ifdef USE_IMG
132 extern void initimgcolormap();
133 extern void initimgformat();
134 extern void initimggif();
135 extern void initimgjpeg();
136 extern void initimgpbm();
137 extern void initimgppm();
138 extern void initimgpgm();
139 extern void initimgtiff();
140 extern void initimgsgi();
141 extern void initimgpng();
142 extern void initimgop();
143 #endif
144 #ifdef USE_TK
145 extern void init_tkinter();
146 #endif
147 #ifdef USE_GUSI
148 extern void init_socket();
149 extern void initselect();
150 #endif
151 #ifdef USE_WASTE
152 extern void initwaste();
153 #endif
154 #ifdef USE_GDBM
155 extern void initgdbm();
156 #endif
157 #ifdef USE_ZLIB
158 extern void initzlib();
159 #endif
160 #ifdef WITH_THREAD
161 extern void initthread();
162 #endif
163 #ifdef WITH_HOTSHOT
164 extern void init_hotshot();
165 #endif
166 #ifdef USE_PYEXPAT
167 extern void initpyexpat();
168 #endif
169 extern void initgc();
170 extern void init_random();
172 extern void initcPickle();
173 extern void initcStringIO();
174 extern void init_codecs();
175 extern void initsha();
176 extern void init_locale();
177 extern void init_sre();
178 extern void initxreadlines();
179 extern void initzipimport();
180 extern void inititertools();
181 /* -- ADDMODULE MARKER 1 -- */
183 extern void PyMarshal_Init();
184 extern void initimp();
186 struct _inittab _PyImport_Inittab[] = {
188 {"array", initarray},
189 {"math", initmath},
190 #ifndef WITHOUT_COMPLEX
191 {"cmath", initcmath},
192 #endif
193 {"parser", initparser},
194 {"mac", initmac},
195 {"MacOS", initMacOS},
196 {"regex", initregex},
197 {"strop", initstrop},
198 {"struct", initstruct},
199 {"time", inittime},
200 {"audioop", initaudioop},
201 {"imageop", initimageop},
202 {"rgbimg", initrgbimg},
203 {"md5", initmd5},
204 {"rotor", initrotor},
205 {"gestalt", initgestalt},
206 {"binascii", initbinascii},
207 {"operator", initoperator},
208 {"errno", initerrno},
209 {"pcre", initpcre},
210 {"unicodedata", initunicodedata},
211 {"_codecs", init_codecs},
212 {"sha", initsha},
213 {"Nav", initNav},
214 #ifdef USE_MACCTB
215 {"ctb", initctb},
216 #endif
217 /* This could probably be made to work on other compilers... */
218 #ifdef USE_MACSPEECH
219 {"macspeech", initmacspeech},
220 #endif
221 #ifdef USE_IC
222 {"icglue", initicglue},
223 #endif
224 #ifdef USE_CORE_TOOLBOX
225 {"_AE", init_AE},
226 {"_Ctl", init_Ctl},
227 {"_Dlg", init_Dlg},
228 {"_Drag", init_Drag},
229 {"_Evt", init_Evt},
230 {"_File", init_File},
231 {"_Folder", init_Folder},
232 {"_Menu", init_Menu},
233 {"_Qd", init_Qd},
234 {"_Win", init_Win},
235 {"_Res", init_Res},
236 #endif
237 #ifdef USE_TOOLBOX
238 {"_AH", init_AH},
239 {"_App", init_App},
240 {"_Fm", init_Fm},
241 {"_IBCarbon", init_IBCarbon},
242 {"_Icn", init_Icn},
243 {"_List", init_List},
244 {"_Mlte", init_Mlte},
245 {"_Qdoffs", init_Qdoffs},
246 {"_Snd", init_Snd},
247 {"_Sndihooks", init_Sndihooks},
248 /* Carbon scrap manager is completely different */
249 {"_Scrap", init_Scrap},
250 {"_TE", init_TE},
251 {"ColorPicker", initColorPicker},
252 {"_CF", init_CF},
253 {"hfsplus", inithfsplus},
254 #endif /* USE_TOOLBOX */
255 #ifdef USE_QT
256 {"_Cm", init_Cm},
257 {"_Qt", init_Qt},
258 #endif
259 #ifdef USE_IMG
260 {"imgcolormap", initimgcolormap},
261 {"imgformat", initimgformat},
262 {"imggif", initimggif},
263 {"imgjpeg", initimgjpeg},
264 {"imgpbm", initimgpbm},
265 {"imgppm", initimgppm},
266 {"imgpgm", initimgpgm},
267 {"imgtiff", initimgtiff},
268 {"imgsgi", initimgsgi},
269 {"imgpng", initimgpng},
270 {"imgop", initimgop},
271 #endif
272 #ifdef USE_TK
273 {"_tkinter", init_tkinter},
274 #endif
275 #ifdef USE_GUSI
276 {"_socket", init_socket},
277 {"select", initselect},
278 #endif
279 #ifdef USE_WASTE
280 {"waste", initwaste},
281 #endif
282 #ifdef USE_GDBM
283 {"gdbm", initgdbm},
284 #endif /* USE_GDBM */
285 #ifdef USE_ZLIB
286 {"zlib", initzlib},
287 #endif
288 #ifdef WITH_THREAD
289 {"thread", initthread},
290 #endif
291 #ifdef WITH_HOTSHOT
292 {"_hotshot", init_hotshot},
293 #endif
294 #ifdef USE_PYEXPAT
295 {"pyexpat", initpyexpat},
296 #endif
297 {"gc", initgc},
298 {"_random", init_random},
299 {"cPickle", initcPickle},
300 {"cStringIO", initcStringIO},
301 {"_locale", init_locale},
302 {"_sre", init_sre},
303 {"xreadlines", initxreadlines},
304 {"zipimport", initzipimport},
305 {"itertools", inititertools},
306 /* -- ADDMODULE MARKER 2 -- */
308 /* This module "lives in" with marshal.c */
309 {"marshal", PyMarshal_Init},
311 /* This module "lives in" with import.c */
312 {"imp", initimp},
314 /* These entries are here for sys.builtin_module_names */
315 {"__main__", NULL},
316 {"__builtin__", NULL},
317 {"exceptions", NULL},
318 {"sys", NULL},
320 /* Sentinel */
321 {0, 0}