1 /* -*- C -*- ***********************************************
2 Copyright 1991-1995 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();
82 extern void initmacconsole();
85 extern void initctb();
88 extern void initmacspeech();
91 extern void initmacdnr();
92 extern void initmactcp();
97 extern void initCtl();
98 extern void initDlg();
99 extern void initEvt();
100 extern void initFm();
101 extern void initList();
102 extern void initMenu();
103 extern void initQd();
104 extern void initQt();
105 extern void initRes();
106 extern void initSnd();
107 extern void initWin();
111 extern void initimgcolormap();
112 extern void initimgformat();
113 extern void initimggif();
114 extern void initimgjpeg();
115 extern void initimgpbm();
116 extern void initimgppm();
117 extern void initimgpgm();
118 extern void initimgtiff();
119 extern void initimgsgi();
120 extern void initimgop();
123 extern void init_tkinter();
126 extern void initsocket();
127 extern void initselect();
129 /* -- ADDMODULE MARKER 1 -- */
131 extern void PyMarshal_Init();
132 extern void initimp();
139 {"array", initarray
},
140 #ifndef SYMANTEC__CFM68K__
141 /* The math library seems mostly broken... */
144 #ifndef WITHOUT_COMPLEX
145 {"cmath", initcmath
},
147 {"parser", initparser
},
149 {"MacOS", MacOS_Init
},
150 {"regex", initregex
},
151 {"strop", initstrop
},
152 {"struct", initstruct
},
154 {"audioop", initaudioop
},
155 {"imageop", initimageop
},
156 {"rgbimg", initrgbimg
},
158 {"stdwin", initstdwin
},
161 {"rotor", initrotor
},
163 {"gestalt", initgestalt
},
164 {"macfs", initmacfs
},
165 {"binascii", initbinascii
},
167 /* This is an interface to the Think runtime */
168 {"macconsole", initmacconsole
},
173 /* This could probably be made to work on other compilers... */
175 {"macspeech", initmacspeech
},
178 {"macdnr", initmacdnr
},
179 {"mactcp", initmactcp
},
197 {"imgcolormap", initimgcolormap
},
198 {"imgformat", initimgformat
},
199 {"imggif", initimggif
},
200 {"imgjpeg", initimgjpeg
},
201 {"imgpbm", initimgpbm
},
202 {"imgppm", initimgppm
},
203 {"imgpgm", initimgpgm
},
204 {"imgtiff", initimgtiff
},
205 {"imgsgi", initimgsgi
},
206 {"imgop", initimgop
},
209 {"_tkinter", init_tkinter
},
212 {"socket", initsocket
},
213 {"select", initselect
},
216 /* -- ADDMODULE MARKER 2 -- */
218 /* This module "lives in" with marshal.c */
219 {"marshal", PyMarshal_Init
},
221 /* This module "lives in" with import.c */
224 /* These entries are here for sys.builtin_module_names */
226 {"__builtin__", NULL
},