blob: f8f0cb514d1643dc066b180170f489f092803dcb [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 Rossum87d5e701996-05-28 22:50:17 +000036extern void initenvironment();
37extern void initimageop();
38extern void initmath();
39extern void initmd5();
40extern void initnew();
41extern void initnt();
42extern void initregex();
43extern void initrgbimg();
44extern void initrotor();
45extern void initsignal();
Guido van Rossum1bc716f1996-06-28 19:12:06 +000046extern void initselect();
Guido van Rossumf2e98b41996-06-26 19:53:41 +000047extern void init_socket();
Guido van Rossum87d5e701996-05-28 22:50:17 +000048extern void initsoundex();
49extern void initstrop();
50extern void initstruct();
51extern void inittime();
52
53/* -- ADDMODULE MARKER 1 -- */
54
55extern void PyMarshal_Init();
56extern void initimp();
57
Guido van Rossum1bc716f1996-06-28 19:12:06 +000058struct _inittab inittab[] = {
Guido van Rossum87d5e701996-05-28 22:50:17 +000059
60 {"array", initarray},
61#ifdef M_I386
62 {"audioop", initaudioop},
63#endif
64 {"binascii", initbinascii},
Guido van Rossum1bc716f1996-06-28 19:12:06 +000065 {"cmath", initcmath},
Guido van Rossum87d5e701996-05-28 22:50:17 +000066 {"environment", initenvironment},
67 {"imageop", initimageop},
68 {"math", initmath},
69 {"md5", initmd5},
70 {"new", initnew},
71 {"nt", initnt}, /* Use the NT os functions, not posix */
72 {"regex", initregex},
73 {"rgbimg", initrgbimg},
74 {"rotor", initrotor},
75 {"signal", initsignal},
76#ifdef USE_SOCKET
Guido van Rossumf2e98b41996-06-26 19:53:41 +000077 {"_socket", init_socket},
Guido van Rossum1bc716f1996-06-28 19:12:06 +000078 {"select", initselect},
Guido van Rossum87d5e701996-05-28 22:50:17 +000079#endif
80 {"soundex", initsoundex},
81 {"strop", initstrop},
82 {"struct", initstruct},
83 {"time", inittime},
84
85/* -- ADDMODULE MARKER 2 -- */
86
87 /* This module "lives in" with marshal.c */
88 {"marshal", PyMarshal_Init},
89
90 /* This lives it with import.c */
91 {"imp", initimp},
92
93 /* These entries are here for sys.builtin_module_names */
94 {"__main__", NULL},
95 {"__builtin__", NULL},
96 {"sys", NULL},
97
98 /* Sentinel */
99 {0, 0}
100};