Quick update to the README file. For intros and books we now point to
[python/dscho.git] / Mac / Modules / macconfig.c
blobf73e8d99de5a00d2186a532d8176a76ab1f186fd
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 initsocket();
53 extern void initaudioop();
54 extern void initimageop();
55 extern void initrgbimg();
56 #ifdef USE_STDWIN
57 extern void initstdwin();
58 #endif
59 extern void initmd5();
60 extern void initmpz();
61 extern void initrotor();
62 extern void inital();
63 extern void initcd();
64 extern void initcl();
65 extern void initfm();
66 extern void initgl();
67 extern void initimgfile();
68 extern void initimgformat();
69 extern void initsgi();
70 extern void initsv();
71 extern void initfl();
72 extern void initthread();
73 extern void inittiming();
74 extern void initsignal();
75 extern void initnew();
76 extern void initdl();
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();
85 #ifdef THINK
86 extern void initmacconsole();
87 #endif
88 #ifdef USE_MACCTB
89 extern void initctb();
90 #endif
91 #ifdef USE_MACSPEECH
92 extern void initmacspeech();
93 #endif
94 #ifdef USE_MACTCP
95 extern void initmacdnr();
96 extern void initmactcp();
97 #endif
98 #ifdef USE_TOOLBOX
99 #ifndef USE_CORE_TOOLBOX
100 #define USE_CORE_TOOLBOX
101 #endif
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();
117 #endif
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();
125 #endif
126 #ifdef USE_QT
127 extern void initCm();
128 extern void initQt();
129 #endif
131 #ifdef USE_IMG
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();
143 #endif
144 #ifdef USE_TK
145 extern void init_tkinter();
146 #endif
147 #ifdef USE_GUSI
148 extern void initsocket();
149 extern void initselect();
150 #endif
151 #ifdef USE_WASTE
152 extern void initwaste();
153 #endif
154 #ifdef USE_GDBM
155 extern void initgdbm();
156 #endif
157 #ifdef USE_ZLIB
158 extern void initzlib();
159 #endif
161 /* Testing: */
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... */
174 {"math", initmath},
175 #endif
176 #ifndef WITHOUT_COMPLEX
177 {"cmath", initcmath},
178 #endif
179 {"parser", initparser},
180 {"mac", initmac},
181 {"MacOS", initMacOS},
182 {"regex", initregex},
183 {"strop", initstrop},
184 {"struct", initstruct},
185 {"time", inittime},
186 {"audioop", initaudioop},
187 {"imageop", initimageop},
188 {"rgbimg", initrgbimg},
189 #ifdef USE_STDWIN
190 {"stdwin", initstdwin},
191 #endif
192 {"md5", initmd5},
193 {"rotor", initrotor},
194 {"new", initnew},
195 {"gestalt", initgestalt},
196 {"macfs", initmacfs},
197 {"binascii", initbinascii},
198 {"soundex", initsoundex},
199 {"operator", initoperator},
200 {"errno", initerrno},
201 {"pcre", initpcre},
202 #ifdef THINK_C
203 /* This is an interface to the Think runtime */
204 {"macconsole", initmacconsole},
205 #endif
206 #ifdef USE_MACCTB
207 {"ctb", initctb},
208 #endif
209 /* This could probably be made to work on other compilers... */
210 #ifdef USE_MACSPEECH
211 {"macspeech", initmacspeech},
212 #endif
213 #ifdef USE_MACTCP
214 {"macdnr", initmacdnr},
215 {"mactcp", initmactcp},
216 #endif
217 #ifdef USE_CORE_TOOLBOX
218 {"Ctl", initCtl},
219 {"Dlg", initDlg},
220 {"Menu", initMenu},
221 {"Qd", initQd},
222 {"Win", initWin},
223 {"Res", initRes},
224 #endif
225 #ifdef USE_TOOLBOX
226 {"AE", initAE},
227 {"App", initApp},
228 {"Evt", initEvt},
229 {"Fm", initFm},
230 {"Help", initHelp},
231 {"Icn", initIcn},
232 {"List", initList},
233 {"Snd", initSnd},
234 {"Sndihooks", initSndihooks},
235 {"Scrap", initScrap},
236 {"TE", initTE},
237 {"ColorPicker", initColorPicker},
238 {"Printing", initPrinting},
239 {"Drag", initDrag},
240 {"Nav", initNav},
241 #endif
242 #ifdef USE_QT
243 {"Cm", initCm},
244 {"Qt", initQt},
245 #endif
246 #ifdef USE_IMG
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},
258 #endif
259 #ifdef USE_TK
260 {"_tkinter", init_tkinter},
261 #endif
262 #ifdef USE_GUSI
263 {"socket", initsocket},
264 {"select", initselect},
265 #endif
266 #ifdef USE_WASTE
267 {"waste", initwaste},
268 #endif
269 #ifdef USE_GDBM
270 {"gdbm", initgdbm},
271 #endif /* USE_GDBM */
272 #ifdef USE_ZLIB
273 {"zlib", initzlib},
274 #endif
275 /* Testing: */
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 */
285 {"imp", initimp},
287 /* These entries are here for sys.builtin_module_names */
288 {"__main__", NULL},
289 {"__builtin__", NULL},
290 {"sys", NULL},
292 /* Sentinel */
293 {0, 0}