1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
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 */
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
33 extern void initarray();
34 extern void initmath();
35 #ifndef WITHOUT_COMPLEX
36 extern void initcmath();
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();
64 extern void initimgfile();
65 extern void initimgformat();
66 extern void initsgi();
69 extern void initthread();
70 extern void inittiming();
71 extern void initsignal();
72 extern void initnew();
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();
86 extern void initctb();
89 extern void initmacspeech();
92 extern void initicglue();
95 #ifndef USE_CORE_TOOLBOX
96 #define USE_CORE_TOOLBOX
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();
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();
125 extern void init_Cm();
126 extern void init_Qt();
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();
143 extern void init_tkinter();
146 extern void init_socket();
147 extern void initselect();
150 extern void initwaste();
153 extern void initgdbm();
156 extern void initzlib();
159 extern void initthread();
162 extern void init_hotshot();
165 extern void initpyexpat();
168 extern void initgc();
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
},
187 #ifndef WITHOUT_COMPLEX
188 {"cmath", initcmath
},
190 {"parser", initparser
},
192 {"MacOS", initMacOS
},
193 {"regex", initregex
},
194 {"strop", initstrop
},
195 {"struct", initstruct
},
197 {"audioop", initaudioop
},
198 {"imageop", initimageop
},
199 {"rgbimg", initrgbimg
},
201 {"rotor", initrotor
},
203 {"gestalt", initgestalt
},
204 {"macfs", initmacfs
},
205 {"binascii", initbinascii
},
206 {"operator", initoperator
},
207 {"errno", initerrno
},
209 {"unicodedata", initunicodedata
},
210 {"_codecs", init_codecs
},
216 /* This could probably be made to work on other compilers... */
218 {"macspeech", initmacspeech
},
221 {"icglue", initicglue
},
223 #ifdef USE_CORE_TOOLBOX
227 {"_Drag", init_Drag
},
229 {"_Menu", init_Menu
},
238 {"_List", init_List
},
239 {"_Mlte", init_Mlte
},
240 {"_Qdoffs", init_Qdoffs
},
242 {"_Sndihooks", init_Sndihooks
},
243 /* Carbon scrap manager is completely different */
244 {"_Scrap", init_Scrap
},
246 {"ColorPicker", initColorPicker
},
247 #if !TARGET_API_MAC_CARBON
248 {"_Help", init_Help
},
249 {"Printing", initPrinting
},
251 #if TARGET_API_MAC_CARBON
254 #if TARGET_API_MAC_CARBON
255 {"hfsplus", inithfsplus
},
257 #endif /* USE_TOOLBOX */
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
},
276 {"_tkinter", init_tkinter
},
279 {"_socket", init_socket
},
280 {"select", initselect
},
283 {"waste", initwaste
},
287 #endif /* USE_GDBM */
292 {"thread", initthread
},
295 {"_hotshot", init_hotshot
},
298 {"pyexpat", initpyexpat
},
303 {"cPickle", initcPickle
},
304 {"cStringIO", initcStringIO
},
305 {"_locale", init_locale
},
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 */
316 /* These entries are here for sys.builtin_module_names */
318 {"__builtin__", NULL
},
319 {"exceptions", NULL
},