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 MacOS_Init();
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 initreop();
85 extern void initpcre();
87 extern void initmacconsole();
90 extern void initctb();
93 extern void initmacspeech();
96 extern void initmacdnr();
97 extern void initmactcp();
100 extern void initAE();
101 extern void initCtl();
102 extern void initDlg();
103 extern void initEvt();
104 extern void initFm();
105 extern void initHelp();
106 extern void initList();
107 extern void initMenu();
108 extern void initQd();
109 extern void initRes();
110 extern void initSnd();
111 extern void initScrap();
112 extern void initTE();
113 extern void initWin();
116 extern void initCm();
117 extern void initQt();
121 extern void initimgcolormap();
122 extern void initimgformat();
123 extern void initimggif();
124 extern void initimgjpeg();
125 extern void initimgpbm();
126 extern void initimgppm();
127 extern void initimgpgm();
128 extern void initimgtiff();
129 extern void initimgsgi();
130 extern void initimgpng();
131 extern void initimgop();
134 extern void init_tkinter();
137 extern void initsocket();
138 extern void initselect();
141 extern void initwaste();
144 extern void initgdbm();
147 extern void initzlib();
151 extern void initcPickle();
152 extern void initcStringIO();
153 /* -- ADDMODULE MARKER 1 -- */
155 extern void PyMarshal_Init();
156 extern void initimp();
158 struct _inittab _PyImport_Inittab
[] = {
160 {"array", initarray
},
161 #ifndef SYMANTEC__CFM68K__
162 /* The math library seems mostly broken... */
165 #ifndef WITHOUT_COMPLEX
166 {"cmath", initcmath
},
168 {"parser", initparser
},
170 {"MacOS", MacOS_Init
},
171 {"regex", initregex
},
172 {"strop", initstrop
},
173 {"struct", initstruct
},
175 {"audioop", initaudioop
},
176 {"imageop", initimageop
},
177 {"rgbimg", initrgbimg
},
179 {"stdwin", initstdwin
},
182 {"rotor", initrotor
},
184 {"gestalt", initgestalt
},
185 {"macfs", initmacfs
},
186 {"binascii", initbinascii
},
187 {"soundex", initsoundex
},
188 {"operator", initoperator
},
189 {"errno", initerrno
},
193 /* This is an interface to the Think runtime */
194 {"macconsole", initmacconsole
},
199 /* This could probably be made to work on other compilers... */
201 {"macspeech", initmacspeech
},
204 {"macdnr", initmacdnr
},
205 {"mactcp", initmactcp
},
218 {"Scrap", initScrap
},
228 {"imgcolormap", initimgcolormap
},
229 {"imgformat", initimgformat
},
230 {"imggif", initimggif
},
231 {"imgjpeg", initimgjpeg
},
232 {"imgpbm", initimgpbm
},
233 {"imgppm", initimgppm
},
234 {"imgpgm", initimgpgm
},
235 {"imgtiff", initimgtiff
},
236 {"imgsgi", initimgsgi
},
237 {"imgpng", initimgpng
},
238 {"imgop", initimgop
},
241 {"_tkinter", init_tkinter
},
244 {"socket", initsocket
},
245 {"select", initselect
},
248 {"waste", initwaste
},
252 #endif /* USE_GDBM */
257 {"cPickle", initcPickle
},
258 {"cStringIO", initcStringIO
},
260 /* -- ADDMODULE MARKER 2 -- */
262 /* This module "lives in" with marshal.c */
263 {"marshal", PyMarshal_Init
},
265 /* This module "lives in" with import.c */
268 /* These entries are here for sys.builtin_module_names */
270 {"__builtin__", NULL
},