Added ref to Misc/NEWS file; added hint to run regen script on Linux.
[python/dscho.git] / Mac / Modules / config.c
blob2dc4f50fa296085f18ea7c9fd68c63ed23973440
1 /* -*- C -*- ***********************************************
2 Copyright 1991-1995 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 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();
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 #ifdef THINK
82 extern void initmacconsole();
83 #endif
84 #ifdef USE_MACCTB
85 extern void initctb();
86 #endif
87 #ifdef USE_MACSPEECH
88 extern void initmacspeech();
89 #endif
90 #ifdef USE_MACTCP
91 extern void initmacdnr();
92 extern void initmactcp();
93 #endif
94 #ifdef USE_BGEN
95 extern void initAE();
96 extern void initCm();
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();
108 #endif
110 #ifdef USE_IMG
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();
121 #endif
122 #ifdef USE_TK
123 extern void init_tkinter();
124 #endif
125 #ifdef USE_GUSI
126 extern void initsocket();
127 extern void initselect();
128 #endif
129 /* -- ADDMODULE MARKER 1 -- */
131 extern void PyMarshal_Init();
132 extern void initimp();
134 struct {
135 char *name;
136 void (*initfunc)();
137 } inittab[] = {
139 {"array", initarray},
140 #ifndef SYMANTEC__CFM68K__
141 /* The math library seems mostly broken... */
142 {"math", initmath},
143 #endif
144 #ifndef WITHOUT_COMPLEX
145 {"cmath", initcmath},
146 #endif
147 {"parser", initparser},
148 {"mac", initmac},
149 {"MacOS", MacOS_Init},
150 {"regex", initregex},
151 {"strop", initstrop},
152 {"struct", initstruct},
153 {"time", inittime},
154 {"audioop", initaudioop},
155 {"imageop", initimageop},
156 {"rgbimg", initrgbimg},
157 #ifdef USE_STDWIN
158 {"stdwin", initstdwin},
159 #endif
160 {"md5", initmd5},
161 {"rotor", initrotor},
162 {"new", initnew},
163 {"gestalt", initgestalt},
164 {"macfs", initmacfs},
165 {"binascii", initbinascii},
166 #ifdef THINK_C
167 /* This is an interface to the Think runtime */
168 {"macconsole", initmacconsole},
169 #endif
170 #ifdef USE_MACCTB
171 {"ctb", initctb},
172 #endif
173 /* This could probably be made to work on other compilers... */
174 #ifdef USE_MACSPEECH
175 {"macspeech", initmacspeech},
176 #endif
177 #ifdef USE_MACTCP
178 {"macdnr", initmacdnr},
179 {"mactcp", initmactcp},
180 #endif
181 #ifdef USE_BGEN
182 {"AE", initAE},
183 {"Cm", initCm},
184 {"Ctl", initCtl},
185 {"Dlg", initDlg},
186 {"Evt", initEvt},
187 {"Fm", initFm},
188 {"Menu", initMenu},
189 {"List", initList},
190 {"Qd", initQd},
191 {"Qt", initQt},
192 {"Snd", initSnd},
193 {"Win", initWin},
194 {"Res", initRes},
195 #endif
196 #ifdef USE_IMG
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},
207 #endif
208 #ifdef USE_TK
209 {"_tkinter", init_tkinter},
210 #endif
211 #ifdef USE_GUSI
212 {"socket", initsocket},
213 {"select", initselect},
214 #endif
216 /* -- ADDMODULE MARKER 2 -- */
218 /* This module "lives in" with marshal.c */
219 {"marshal", PyMarshal_Init},
221 /* This module "lives in" with import.c */
222 {"imp", initimp},
224 /* These entries are here for sys.builtin_module_names */
225 {"__main__", NULL},
226 {"__builtin__", NULL},
227 {"sys", NULL},
229 /* Sentinel */
230 {0, 0}