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 or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
32 /* Module configuration */
34 /* This file contains the table of built-in modules.
35 See init_builtin() in import.c. */
39 extern void initos2();
40 extern void initsignal();
42 extern void initthread();
44 extern void init_codecs();
45 extern void init_csv();
46 extern void init_locale();
47 extern void init_random();
48 extern void init_sre();
49 extern void init_symtable();
50 extern void init_weakref();
51 extern void initarray();
52 extern void initbinascii();
53 extern void initcPickle();
54 extern void initcStringIO();
55 extern void initcollections();
56 extern void initcmath();
57 extern void initdatetime();
59 extern void initerrno();
60 extern void initfcntl();
61 extern void init_functools();
62 extern void init_heapq();
63 extern void initimageop();
64 extern void inititertools();
65 extern void initmath();
66 extern void init_md5();
67 extern void initoperator();
68 extern void initrgbimg();
69 extern void init_sha();
70 extern void init_sha256();
71 extern void init_sha512();
72 extern void initstrop();
73 extern void init_struct();
74 extern void inittermios();
75 extern void inittime();
76 extern void inittiming();
77 extern void initxxsubtype();
78 extern void initzipimport();
79 #if !HAVE_DYNAMIC_LOADING
80 extern void init_curses();
81 extern void init_curses_panel();
82 extern void init_hotshot();
83 extern void init_testcapi();
84 extern void initbsddb185();
85 extern void initbz2();
86 extern void initfpectl();
87 extern void initfpetest();
88 extern void initparser();
89 extern void initpwd();
90 extern void initunicodedata();
91 extern void initzlib();
93 extern void init_socket();
94 extern void initselect();
97 /* -- ADDMODULE MARKER 1 -- */
99 extern void PyMarshal_Init();
100 extern void initimp();
101 extern void initgc();
103 struct _inittab _PyImport_Inittab
[] = {
106 {"signal", initsignal
},
108 {"thread", initthread
},
110 {"_codecs", init_codecs
},
112 {"_locale", init_locale
},
113 {"_random", init_random
},
115 {"_symtable", init_symtable
},
116 {"_weakref", init_weakref
},
117 {"array", initarray
},
118 {"binascii", initbinascii
},
119 {"cPickle", initcPickle
},
120 {"cStringIO", initcStringIO
},
121 {"collections", initcollections
},
122 {"cmath", initcmath
},
123 {"datetime", initdatetime
},
125 {"errno", initerrno
},
126 {"fcntl", initfcntl
},
127 {"_functools", init_functools
},
128 {"_heapq", init_heapq
},
129 {"imageop", initimageop
},
130 {"itertools", inititertools
},
133 {"operator", initoperator
},
134 {"rgbimg", initrgbimg
},
136 {"_sha256", init_sha256
},
137 {"_sha512", init_sha512
},
138 {"strop", initstrop
},
139 {"_struct", init_struct
},
140 {"termios", inittermios
},
142 {"timing", inittiming
},
143 {"xxsubtype", initxxsubtype
},
144 {"zipimport", initzipimport
},
145 #if !HAVE_DYNAMIC_LOADING
146 {"_curses", init_curses
},
147 {"_curses_panel", init_curses_panel
},
148 {"_hotshot", init_hotshot
},
149 {"_testcapi", init_testcapi
},
150 {"bsddb185", initbsddb185
},
152 {"fpectl", initfpectl
},
153 {"fpetest", initfpetest
},
154 {"parser", initparser
},
156 {"unicodedata", initunicodedata
},
159 {"_socket", init_socket
},
160 {"select", initselect
},
163 /* -- ADDMODULE MARKER 2 -- */
165 /* This module "lives in" with marshal.c */
166 {"marshal", PyMarshal_Init
},
168 /* This lives it with import.c */
171 /* These entries are here for sys.builtin_module_names */
173 {"__builtin__", NULL
},
175 {"exceptions", NULL
},
177 /* This lives in gcmodule.c */