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();
84 extern void initctb();
87 extern void initmacspeech();
90 extern void initmacdnr();
91 extern void initmactcp();
94 extern void initicglue();
97 #ifndef USE_CORE_TOOLBOX
98 #define USE_CORE_TOOLBOX
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();
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();
126 extern void initCm();
127 extern void initQt();
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();
144 extern void init_tkinter();
147 extern void init_socket();
148 extern void initselect();
151 extern void initwaste();
154 extern void initgdbm();
157 extern void initzlib();
160 extern void initthread();
163 extern void initpyexpat();
166 extern void initgc();
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
},
185 #ifndef WITHOUT_COMPLEX
186 {"cmath", initcmath
},
188 {"parser", initparser
},
190 {"MacOS", initMacOS
},
191 {"regex", initregex
},
192 {"strop", initstrop
},
193 {"struct", initstruct
},
195 {"audioop", initaudioop
},
196 {"imageop", initimageop
},
197 {"rgbimg", initrgbimg
},
199 {"rotor", initrotor
},
201 {"gestalt", initgestalt
},
202 {"macfs", initmacfs
},
203 {"binascii", initbinascii
},
204 {"operator", initoperator
},
205 {"errno", initerrno
},
207 {"unicodedata", initunicodedata
},
208 {"_codecs", init_codecs
},
213 /* This could probably be made to work on other compilers... */
215 {"macspeech", initmacspeech
},
218 {"macdnr", initmacdnr
},
219 {"mactcp", initmactcp
},
222 {"icglue", initicglue
},
224 #ifdef USE_CORE_TOOLBOX
241 {"Qdoffs", initQdoffs
},
243 {"Sndihooks", initSndihooks
},
244 /* Carbon scrap manager is completely different */
245 {"Scrap", initScrap
},
247 {"ColorPicker", initColorPicker
},
248 #if !TARGET_API_MAC_CARBON
250 {"Printing", initPrinting
},
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
},
271 {"_tkinter", init_tkinter
},
274 {"_socket", init_socket
},
275 {"select", initselect
},
278 {"waste", initwaste
},
282 #endif /* USE_GDBM */
287 {"thread", initthread
},
290 {"pyexpat", initpyexpat
},
295 {"cPickle", initcPickle
},
296 {"cStringIO", initcStringIO
},
297 {"_locale", init_locale
},
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 */
308 /* These entries are here for sys.builtin_module_names */
310 {"__builtin__", NULL
},