blob: 5e37a354aa41587951bb39e8a5d1c2223c10487a [file] [log] [blame]
Guido van Rossum87d5e701996-05-28 22:50:17 +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 not be used in advertising or publicity pertaining to
13distribution of the software without specific, written prior permission.
14
15STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
23******************************************************************/
24
25/* Module configuration */
26
27/* This file contains the table of built-in modules.
28 See init_builtin() in import.c. */
29
30#include "Python.h"
31
32extern void initarray();
33extern void initaudioop();
34extern void initbinascii();
Guido van Rossum1bc716f1996-06-28 19:12:06 +000035extern void initcmath();
Guido van Rossum950a1261996-07-30 17:38:17 +000036extern void initerrno();
Guido van Rossum87d5e701996-05-28 22:50:17 +000037extern void initimageop();
38extern void initmath();
39extern void initmd5();
40extern void initnew();
41extern void initnt();
Guido van Rossum950a1261996-07-30 17:38:17 +000042extern void initoperator();
Guido van Rossum87d5e701996-05-28 22:50:17 +000043extern void initregex();
44extern void initrgbimg();
45extern void initrotor();
46extern void initsignal();
Guido van Rossum1bc716f1996-06-28 19:12:06 +000047extern void initselect();
Guido van Rossumf2e98b41996-06-26 19:53:41 +000048extern void init_socket();
Guido van Rossum87d5e701996-05-28 22:50:17 +000049extern void initsoundex();
50extern void initstrop();
51extern void initstruct();
52extern void inittime();
Guido van Rossumbf57ed51996-08-22 00:43:42 +000053extern void initthread();
Guido van Rossum87d5e701996-05-28 22:50:17 +000054
55/* -- ADDMODULE MARKER 1 -- */
56
57extern void PyMarshal_Init();
58extern void initimp();
59
Guido van Rossum1bc716f1996-06-28 19:12:06 +000060struct _inittab inittab[] = {
Guido van Rossum87d5e701996-05-28 22:50:17 +000061
62 {"array", initarray},
63#ifdef M_I386
64 {"audioop", initaudioop},
65#endif
66 {"binascii", initbinascii},
Guido van Rossum1bc716f1996-06-28 19:12:06 +000067 {"cmath", initcmath},
Guido van Rossum950a1261996-07-30 17:38:17 +000068 {"errno", initerrno},
Guido van Rossum87d5e701996-05-28 22:50:17 +000069 {"imageop", initimageop},
70 {"math", initmath},
71 {"md5", initmd5},
72 {"new", initnew},
73 {"nt", initnt}, /* Use the NT os functions, not posix */
Guido van Rossum950a1261996-07-30 17:38:17 +000074 {"operator", initoperator},
Guido van Rossum87d5e701996-05-28 22:50:17 +000075 {"regex", initregex},
76 {"rgbimg", initrgbimg},
77 {"rotor", initrotor},
78 {"signal", initsignal},
79#ifdef USE_SOCKET
Guido van Rossumf2e98b41996-06-26 19:53:41 +000080 {"_socket", init_socket},
Guido van Rossum1bc716f1996-06-28 19:12:06 +000081 {"select", initselect},
Guido van Rossum87d5e701996-05-28 22:50:17 +000082#endif
83 {"soundex", initsoundex},
84 {"strop", initstrop},
85 {"struct", initstruct},
86 {"time", inittime},
Guido van Rossumbf57ed51996-08-22 00:43:42 +000087#ifdef WITH_THREAD
88 {"thread", initthread},
89#endif
Guido van Rossum87d5e701996-05-28 22:50:17 +000090
91/* -- ADDMODULE MARKER 2 -- */
92
93 /* This module "lives in" with marshal.c */
94 {"marshal", PyMarshal_Init},
95
96 /* This lives it with import.c */
97 {"imp", initimp},
98
99 /* These entries are here for sys.builtin_module_names */
100 {"__main__", NULL},
101 {"__builtin__", NULL},
102 {"sys", NULL},
103
104 /* Sentinel */
105 {0, 0}
106};