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 initsocket();
53 extern void initaudioop();
54 extern void initimageop();
55 extern void initrgbimg();
57 extern void initstdwin();
59 extern void initmd5();
60 extern void initmpz();
61 extern void initrotor();
67 extern void initimgfile();
68 extern void initimgformat();
69 extern void initsgi();
72 extern void initthread();
73 extern void inittiming();
74 extern void initsignal();
75 extern void initnew();
77 extern void initsyslog();
78 extern void initgestalt();
79 extern void initmacfs();
80 extern void initbinascii();
81 extern void initsoundex();
82 extern void initoperator();
83 extern void initerrno();
84 extern void initpcre();
86 extern void initmacconsole();
89 extern void initctb();
92 extern void initmacspeech();
95 extern void initmacdnr();
96 extern void initmactcp();
99 #ifndef USE_CORE_TOOLBOX
100 #define USE_CORE_TOOLBOX
102 extern void initAE();
103 extern void initApp();
104 extern void initEvt();
105 extern void initFm();
106 extern void initHelp();
107 extern void initIcn();
108 extern void initList();
109 extern void initSnd();
110 extern void initSndihooks();
111 extern void initScrap();
112 extern void initTE();
113 extern void initColorPicker();
114 extern void initPrinting();
115 extern void initDrag();
116 extern void initNav();
118 #ifdef USE_CORE_TOOLBOX
119 extern void initCtl();
120 extern void initDlg();
121 extern void initMenu();
122 extern void initQd();
123 extern void initRes();
124 extern void initWin();
127 extern void initCm();
128 extern void initQt();
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();
145 extern void init_tkinter();
148 extern void initsocket();
149 extern void initselect();
152 extern void initwaste();
155 extern void initgdbm();
158 extern void initzlib();
162 extern void initcPickle();
163 extern void initcStringIO();
164 /* -- ADDMODULE MARKER 1 -- */
166 extern void PyMarshal_Init();
167 extern void initimp();
169 struct _inittab _PyImport_Inittab
[] = {
171 {"array", initarray
},
172 #ifndef SYMANTEC__CFM68K__
173 /* The math library seems mostly broken... */
176 #ifndef WITHOUT_COMPLEX
177 {"cmath", initcmath
},
179 {"parser", initparser
},
181 {"MacOS", initMacOS
},
182 {"regex", initregex
},
183 {"strop", initstrop
},
184 {"struct", initstruct
},
186 {"audioop", initaudioop
},
187 {"imageop", initimageop
},
188 {"rgbimg", initrgbimg
},
190 {"stdwin", initstdwin
},
193 {"rotor", initrotor
},
195 {"gestalt", initgestalt
},
196 {"macfs", initmacfs
},
197 {"binascii", initbinascii
},
198 {"soundex", initsoundex
},
199 {"operator", initoperator
},
200 {"errno", initerrno
},
203 /* This is an interface to the Think runtime */
204 {"macconsole", initmacconsole
},
209 /* This could probably be made to work on other compilers... */
211 {"macspeech", initmacspeech
},
214 {"macdnr", initmacdnr
},
215 {"mactcp", initmactcp
},
217 #ifdef USE_CORE_TOOLBOX
234 {"Sndihooks", initSndihooks
},
235 {"Scrap", initScrap
},
237 {"ColorPicker", initColorPicker
},
238 {"Printing", initPrinting
},
247 {"imgcolormap", initimgcolormap
},
248 {"imgformat", initimgformat
},
249 {"imggif", initimggif
},
250 {"imgjpeg", initimgjpeg
},
251 {"imgpbm", initimgpbm
},
252 {"imgppm", initimgppm
},
253 {"imgpgm", initimgpgm
},
254 {"imgtiff", initimgtiff
},
255 {"imgsgi", initimgsgi
},
256 {"imgpng", initimgpng
},
257 {"imgop", initimgop
},
260 {"_tkinter", init_tkinter
},
263 {"socket", initsocket
},
264 {"select", initselect
},
267 {"waste", initwaste
},
271 #endif /* USE_GDBM */
276 {"cPickle", initcPickle
},
277 {"cStringIO", initcStringIO
},
279 /* -- ADDMODULE MARKER 2 -- */
281 /* This module "lives in" with marshal.c */
282 {"marshal", PyMarshal_Init
},
284 /* This module "lives in" with import.c */
287 /* These entries are here for sys.builtin_module_names */
289 {"__builtin__", NULL
},