blob: 91f855e672989b2b871385006266f291de476ddc [file] [log] [blame]
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00001/* -*- C -*- ***********************************************
2Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI or Corporation for National Research Initiatives or
13CNRI not be used in advertising or publicity pertaining to
14distribution of the software without specific, written prior
15permission.
16
17While CWI is the initial source for this software, a modified version
18is made available by the Corporation for National Research Initiatives
19(CNRI) at the Internet address ftp://ftp.python.org.
20
21STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
29
30******************************************************************/
31
32/* Module configuration */
33
34/* This file contains the table of built-in modules.
35 See init_builtin() in import.c. */
36
37#include "Python.h"
38
39extern void init_codecs();
40extern void init_curses();
41extern void init_curses_panel();
42extern void init_hotshot();
43extern void init_locale();
44extern void init_socket();
45extern void init_sre();
46extern void init_testcapi();
47extern void init_weakref();
48extern void initarray();
49extern void initbinascii();
50extern void initbsddb();
51extern void initcPickle();
52extern void initcStringIO();
53extern void initcmath();
54extern void initdl();
55extern void initerrno();
56extern void initfcntl();
57extern void initfpectl();
58extern void initfpetest();
59extern void initgc();
60extern void initimageop();
61extern void initmath();
62extern void initmd5();
63extern void initnew();
64extern void initos2();
65extern void initoperator();
66extern void initparser();
67extern void initpcre();
68extern void initpwd();
69extern void initregex();
70extern void initrgbimg();
71extern void initrotor();
72extern void initselect();
73extern void initsha();
74extern void initsignal();
75extern void initstrop();
76extern void initstruct();
77extern void inittermios();
78extern void initthread();
79extern void inittime();
80extern void inittiming();
81extern void initunicodedata();
82extern void initxreadlines();
Andrew MacIntyre4a79e362002-06-10 08:04:29 +000083extern void initxxsubtype();
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000084extern void initzlib();
85
86/* -- ADDMODULE MARKER 1 -- */
87
88extern void PyMarshal_Init();
89extern void initimp();
90
91struct _inittab _PyImport_Inittab[] = {
92
93 {"gc", initgc},
94 {"os2", initos2},
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000095 {"signal", initsignal},
96#ifdef WITH_THREAD
97 {"thread", initthread},
98#endif
99#if !HAVE_DYNAMIC_LOADING
100 {"_codecs", init_codecs},
101 {"_curses", init_curses},
102 {"_curses_panel", init_curses_panel},
103 {"_hotshot", init_hotshot},
104 {"_locale", init_locale},
Andrew MacIntyre4a79e362002-06-10 08:04:29 +0000105 {"_sre", init_sre},
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000106 {"_testcapi", init_testcapi},
107 {"_weakref", init_weakref},
108 {"array", initarray},
109 {"binascii", initbinascii},
110 {"bsddb", initbsddb},
111 {"cPickle", initcPickle},
112 {"cStringIO", initcStringIO},
113 {"cmath", initcmath},
114 {"dl", initdl},
115 {"errno", initerrno},
116 {"fcntl", initfcntl},
117 {"fpectl", initfpectl},
118 {"fpetest", initfpetest},
119 {"imageop", initimageop},
120 {"math", initmath},
121 {"md5", initmd5},
122 {"new", initnew},
123 {"operator", initoperator},
124 {"parser", initparser},
125 {"pcre", initpcre},
126 {"pwd", initpwd},
127 {"regex", initregex},
128 {"rgbimg", initrgbimg},
129 {"rotor", initrotor},
130 {"sha", initsha},
131 {"strop", initstrop},
132 {"struct", initstruct},
133 {"termios", inittermios},
134 {"time", inittime},
135 {"timing", inittiming},
136 {"unicodedata", initunicodedata},
137 {"xreadlines", initxreadlines},
Andrew MacIntyre4a79e362002-06-10 08:04:29 +0000138 {"xxsubtype", initxxsubtype},
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000139 {"zlib", initzlib},
140#ifdef USE_SOCKET
141 {"_socket", init_socket},
142 {"select", initselect},
143#endif
144#endif
145
146/* -- ADDMODULE MARKER 2 -- */
147
148 /* This module "lives in" with marshal.c */
149 {"marshal", PyMarshal_Init},
150
151 /* This lives it with import.c */
152 {"imp", initimp},
153
154 /* These entries are here for sys.builtin_module_names */
155 {"__main__", NULL},
156 {"__builtin__", NULL},
157 {"sys", NULL},
158 {"exceptions", NULL},
159
160 /* Sentinel */
161 {0, 0}
162};