This commit was manufactured by cvs2svn to create tag 'r221'.
[python/dscho.git] / Mac / Modules / macconfig.c
blobf5f78bf88106b84ff02e3978075cde7285308eb3
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 initnew();
73 extern void initdl();
74 extern void initsyslog();
75 extern void initgestalt();
76 extern void initmacfs();
77 extern void initbinascii();
78 extern void initoperator();
79 extern void initerrno();
80 extern void initpcre();
81 extern void initunicodedata();
82 extern void init_codecs();
83 extern void initNav();
84 extern void inithfsplus();
85 #ifdef USE_MACCTB
86 extern void initctb();
87 #endif
88 #ifdef USE_MACSPEECH
89 extern void initmacspeech();
90 #endif
91 #ifdef USE_IC
92 extern void initicglue();
93 #endif
94 #ifdef USE_TOOLBOX
95 #ifndef USE_CORE_TOOLBOX
96 #define USE_CORE_TOOLBOX
97 #endif
98 extern void init_App();
99 extern void init_Fm();
100 extern void init_Help();
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_Menu();
120 extern void init_Qd();
121 extern void init_Res();
122 extern void init_Win();
123 #endif
124 #ifdef USE_QT
125 extern void init_Cm();
126 extern void init_Qt();
127 #endif
129 #ifdef USE_IMG
130 extern void initimgcolormap();
131 extern void initimgformat();
132 extern void initimggif();
133 extern void initimgjpeg();
134 extern void initimgpbm();
135 extern void initimgppm();
136 extern void initimgpgm();
137 extern void initimgtiff();
138 extern void initimgsgi();
139 extern void initimgpng();
140 extern void initimgop();
141 #endif
142 #ifdef USE_TK
143 extern void init_tkinter();
144 #endif
145 #ifdef USE_GUSI
146 extern void init_socket();
147 extern void initselect();
148 #endif
149 #ifdef USE_WASTE
150 extern void initwaste();
151 #endif
152 #ifdef USE_GDBM
153 extern void initgdbm();
154 #endif
155 #ifdef USE_ZLIB
156 extern void initzlib();
157 #endif
158 #ifdef WITH_THREAD
159 extern void initthread();
160 #endif
161 #ifdef WITH_HOTSHOT
162 extern void init_hotshot();
163 #endif
164 #ifdef USE_PYEXPAT
165 extern void initpyexpat();
166 #endif
167 #ifdef WITH_CYCLE_GC
168 extern void initgc();
169 #endif
171 extern void initcPickle();
172 extern void initcStringIO();
173 extern void init_codecs();
174 extern void initsha();
175 extern void init_locale();
176 extern void init_sre();
177 extern void initxreadlines();
178 /* -- ADDMODULE MARKER 1 -- */
180 extern void PyMarshal_Init();
181 extern void initimp();
183 struct _inittab _PyImport_Inittab[] = {
185 {"array", initarray},
186 {"math", initmath},
187 #ifndef WITHOUT_COMPLEX
188 {"cmath", initcmath},
189 #endif
190 {"parser", initparser},
191 {"mac", initmac},
192 {"MacOS", initMacOS},
193 {"regex", initregex},
194 {"strop", initstrop},
195 {"struct", initstruct},
196 {"time", inittime},
197 {"audioop", initaudioop},
198 {"imageop", initimageop},
199 {"rgbimg", initrgbimg},
200 {"md5", initmd5},
201 {"rotor", initrotor},
202 {"new", initnew},
203 {"gestalt", initgestalt},
204 {"macfs", initmacfs},
205 {"binascii", initbinascii},
206 {"operator", initoperator},
207 {"errno", initerrno},
208 {"pcre", initpcre},
209 {"unicodedata", initunicodedata},
210 {"_codecs", init_codecs},
211 {"sha", initsha},
212 {"Nav", initNav},
213 #ifdef USE_MACCTB
214 {"ctb", initctb},
215 #endif
216 /* This could probably be made to work on other compilers... */
217 #ifdef USE_MACSPEECH
218 {"macspeech", initmacspeech},
219 #endif
220 #ifdef USE_IC
221 {"icglue", initicglue},
222 #endif
223 #ifdef USE_CORE_TOOLBOX
224 {"_AE", init_AE},
225 {"_Ctl", init_Ctl},
226 {"_Dlg", init_Dlg},
227 {"_Drag", init_Drag},
228 {"_Evt", init_Evt},
229 {"_Menu", init_Menu},
230 {"_Qd", init_Qd},
231 {"_Win", init_Win},
232 {"_Res", init_Res},
233 #endif
234 #ifdef USE_TOOLBOX
235 {"_App", init_App},
236 {"_Fm", init_Fm},
237 {"_Icn", init_Icn},
238 {"_List", init_List},
239 {"_Mlte", init_Mlte},
240 {"_Qdoffs", init_Qdoffs},
241 {"_Snd", init_Snd},
242 {"_Sndihooks", init_Sndihooks},
243 /* Carbon scrap manager is completely different */
244 {"_Scrap", init_Scrap},
245 {"_TE", init_TE},
246 {"ColorPicker", initColorPicker},
247 #if !TARGET_API_MAC_CARBON
248 {"_Help", init_Help},
249 {"Printing", initPrinting},
250 #endif
251 #if TARGET_API_MAC_CARBON
252 {"_CF", init_CF},
253 #endif
254 #if TARGET_API_MAC_CARBON
255 {"hfsplus", inithfsplus},
256 #endif
257 #endif /* USE_TOOLBOX */
258 #ifdef USE_QT
259 {"_Cm", init_Cm},
260 {"_Qt", init_Qt},
261 #endif
262 #ifdef USE_IMG
263 {"imgcolormap", initimgcolormap},
264 {"imgformat", initimgformat},
265 {"imggif", initimggif},
266 {"imgjpeg", initimgjpeg},
267 {"imgpbm", initimgpbm},
268 {"imgppm", initimgppm},
269 {"imgpgm", initimgpgm},
270 {"imgtiff", initimgtiff},
271 {"imgsgi", initimgsgi},
272 {"imgpng", initimgpng},
273 {"imgop", initimgop},
274 #endif
275 #ifdef USE_TK
276 {"_tkinter", init_tkinter},
277 #endif
278 #ifdef USE_GUSI
279 {"_socket", init_socket},
280 {"select", initselect},
281 #endif
282 #ifdef USE_WASTE
283 {"waste", initwaste},
284 #endif
285 #ifdef USE_GDBM
286 {"gdbm", initgdbm},
287 #endif /* USE_GDBM */
288 #ifdef USE_ZLIB
289 {"zlib", initzlib},
290 #endif
291 #ifdef WITH_THREAD
292 {"thread", initthread},
293 #endif
294 #ifdef WITH_HOTSHOT
295 {"_hotshot", init_hotshot},
296 #endif
297 #ifdef USE_PYEXPAT
298 {"pyexpat", initpyexpat},
299 #endif
300 #ifdef WITH_CYCLE_GC
301 {"gc", initgc},
302 #endif
303 {"cPickle", initcPickle},
304 {"cStringIO", initcStringIO},
305 {"_locale", init_locale},
306 {"_sre", init_sre},
307 {"xreadlines", initxreadlines},
308 /* -- ADDMODULE MARKER 2 -- */
310 /* This module "lives in" with marshal.c */
311 {"marshal", PyMarshal_Init},
313 /* This module "lives in" with import.c */
314 {"imp", initimp},
316 /* These entries are here for sys.builtin_module_names */
317 {"__main__", NULL},
318 {"__builtin__", NULL},
319 {"exceptions", NULL},
320 {"sys", NULL},
322 /* Sentinel */
323 {0, 0}