This commit was manufactured by cvs2svn to create tag 'r212c1'.
[python/dscho.git] / Mac / Modules / macconfig.c
blob62fa76b72c80e49458726b44336913e730023209
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 #ifdef USE_MACCTB
84 extern void initctb();
85 #endif
86 #ifdef USE_MACSPEECH
87 extern void initmacspeech();
88 #endif
89 #ifdef USE_MACTCP
90 extern void initmacdnr();
91 extern void initmactcp();
92 #endif
93 #ifdef USE_IC
94 extern void initicglue();
95 #endif
96 #ifdef USE_TOOLBOX
97 #ifndef USE_CORE_TOOLBOX
98 #define USE_CORE_TOOLBOX
99 #endif
100 extern void initApp();
101 extern void initFm();
102 extern void initHelp();
103 extern void initIcn();
104 extern void initList();
105 extern void initQdoffs();
106 extern void initSnd();
107 extern void initSndihooks();
108 extern void initScrap();
109 extern void initTE();
110 extern void initColorPicker();
111 extern void initPrinting();
112 #endif
113 #ifdef USE_CORE_TOOLBOX
114 extern void initAE();
115 extern void initCtl();
116 extern void initDlg();
117 extern void initDrag();
118 extern void initEvt();
119 extern void initMenu();
120 extern void initQd();
121 extern void initRes();
122 extern void initWin();
123 extern void initNav();
124 #endif
125 #ifdef USE_QT
126 extern void initCm();
127 extern void initQt();
128 #endif
130 #ifdef USE_IMG
131 extern void initimgcolormap();
132 extern void initimgformat();
133 extern void initimggif();
134 extern void initimgjpeg();
135 extern void initimgpbm();
136 extern void initimgppm();
137 extern void initimgpgm();
138 extern void initimgtiff();
139 extern void initimgsgi();
140 extern void initimgpng();
141 extern void initimgop();
142 #endif
143 #ifdef USE_TK
144 extern void init_tkinter();
145 #endif
146 #ifdef USE_GUSI
147 extern void init_socket();
148 extern void initselect();
149 #endif
150 #ifdef USE_WASTE
151 extern void initwaste();
152 #endif
153 #ifdef USE_GDBM
154 extern void initgdbm();
155 #endif
156 #ifdef USE_ZLIB
157 extern void initzlib();
158 #endif
159 #ifdef WITH_THREAD
160 extern void initthread();
161 #endif
162 #ifdef USE_PYEXPAT
163 extern void initpyexpat();
164 #endif
165 #ifdef WITH_CYCLE_GC
166 extern void initgc();
167 #endif
169 extern void initcPickle();
170 extern void initcStringIO();
171 extern void init_codecs();
172 extern void initsha();
173 extern void init_locale();
174 extern void init_sre();
175 extern void initxreadlines();
176 /* -- ADDMODULE MARKER 1 -- */
178 extern void PyMarshal_Init();
179 extern void initimp();
181 struct _inittab _PyImport_Inittab[] = {
183 {"array", initarray},
184 {"math", initmath},
185 #ifndef WITHOUT_COMPLEX
186 {"cmath", initcmath},
187 #endif
188 {"parser", initparser},
189 {"mac", initmac},
190 {"MacOS", initMacOS},
191 {"regex", initregex},
192 {"strop", initstrop},
193 {"struct", initstruct},
194 {"time", inittime},
195 {"audioop", initaudioop},
196 {"imageop", initimageop},
197 {"rgbimg", initrgbimg},
198 {"md5", initmd5},
199 {"rotor", initrotor},
200 {"new", initnew},
201 {"gestalt", initgestalt},
202 {"macfs", initmacfs},
203 {"binascii", initbinascii},
204 {"operator", initoperator},
205 {"errno", initerrno},
206 {"pcre", initpcre},
207 {"unicodedata", initunicodedata},
208 {"_codecs", init_codecs},
209 {"sha", initsha},
210 #ifdef USE_MACCTB
211 {"ctb", initctb},
212 #endif
213 /* This could probably be made to work on other compilers... */
214 #ifdef USE_MACSPEECH
215 {"macspeech", initmacspeech},
216 #endif
217 #ifdef USE_MACTCP
218 {"macdnr", initmacdnr},
219 {"mactcp", initmactcp},
220 #endif
221 #ifdef USE_IC
222 {"icglue", initicglue},
223 #endif
224 #ifdef USE_CORE_TOOLBOX
225 {"AE", initAE},
226 {"Ctl", initCtl},
227 {"Dlg", initDlg},
228 {"Drag", initDrag},
229 {"Evt", initEvt},
230 {"Menu", initMenu},
231 {"Nav", initNav},
232 {"Qd", initQd},
233 {"Win", initWin},
234 {"Res", initRes},
235 #endif
236 #ifdef USE_TOOLBOX
237 {"App", initApp},
238 {"Fm", initFm},
239 {"Icn", initIcn},
240 {"List", initList},
241 {"Qdoffs", initQdoffs},
242 {"Snd", initSnd},
243 {"Sndihooks", initSndihooks},
244 /* Carbon scrap manager is completely different */
245 {"Scrap", initScrap},
246 {"TE", initTE},
247 {"ColorPicker", initColorPicker},
248 #if !TARGET_API_MAC_CARBON
249 {"Help", initHelp},
250 {"Printing", initPrinting},
251 #endif
252 #endif
253 #ifdef USE_QT
254 {"Cm", initCm},
255 {"Qt", initQt},
256 #endif
257 #ifdef USE_IMG
258 {"imgcolormap", initimgcolormap},
259 {"imgformat", initimgformat},
260 {"imggif", initimggif},
261 {"imgjpeg", initimgjpeg},
262 {"imgpbm", initimgpbm},
263 {"imgppm", initimgppm},
264 {"imgpgm", initimgpgm},
265 {"imgtiff", initimgtiff},
266 {"imgsgi", initimgsgi},
267 {"imgpng", initimgpng},
268 {"imgop", initimgop},
269 #endif
270 #ifdef USE_TK
271 {"_tkinter", init_tkinter},
272 #endif
273 #ifdef USE_GUSI
274 {"_socket", init_socket},
275 {"select", initselect},
276 #endif
277 #ifdef USE_WASTE
278 {"waste", initwaste},
279 #endif
280 #ifdef USE_GDBM
281 {"gdbm", initgdbm},
282 #endif /* USE_GDBM */
283 #ifdef USE_ZLIB
284 {"zlib", initzlib},
285 #endif
286 #ifdef WITH_THREAD
287 {"thread", initthread},
288 #endif
289 #ifdef USE_PYEXPAT
290 {"pyexpat", initpyexpat},
291 #endif
292 #ifdef WITH_CYCLE_GC
293 {"gc", initgc},
294 #endif
295 {"cPickle", initcPickle},
296 {"cStringIO", initcStringIO},
297 {"_locale", init_locale},
298 {"_sre", init_sre},
299 {"xreadlines", initxreadlines},
300 /* -- ADDMODULE MARKER 2 -- */
302 /* This module "lives in" with marshal.c */
303 {"marshal", PyMarshal_Init},
305 /* This module "lives in" with import.c */
306 {"imp", initimp},
308 /* These entries are here for sys.builtin_module_names */
309 {"__main__", NULL},
310 {"__builtin__", NULL},
311 {"sys", NULL},
313 /* Sentinel */
314 {0, 0}