blob: e32e7a18f571339640706dfa54d3fb913929ad86 [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();
Guido van Rossum950a1261996-07-30 17:38:17 +000037extern void initerrno();
Guido van Rossum87d5e701996-05-28 22:50:17 +000038extern void initimageop();
39extern void initmath();
40extern void initmd5();
41extern void initnew();
42extern void initnt();
Guido van Rossum950a1261996-07-30 17:38:17 +000043extern void initoperator();
Guido van Rossum87d5e701996-05-28 22:50:17 +000044extern void initregex();
45extern void initrgbimg();
46extern void initrotor();
47extern void initsignal();
Guido van Rossum1bc716f1996-06-28 19:12:06 +000048extern void initselect();
Guido van Rossumf2e98b41996-06-26 19:53:41 +000049extern void init_socket();
Guido van Rossum87d5e701996-05-28 22:50:17 +000050extern void initsoundex();
51extern void initstrop();
52extern void initstruct();
53extern void inittime();
54
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 Rossum87d5e701996-05-28 22:50:17 +000068 {"environment", initenvironment},
Guido van Rossum950a1261996-07-30 17:38:17 +000069 {"errno", initerrno},
Guido van Rossum87d5e701996-05-28 22:50:17 +000070 {"imageop", initimageop},
71 {"math", initmath},
72 {"md5", initmd5},
73 {"new", initnew},
74 {"nt", initnt}, /* Use the NT os functions, not posix */
Guido van Rossum950a1261996-07-30 17:38:17 +000075 {"operator", initoperator},
Guido van Rossum87d5e701996-05-28 22:50:17 +000076 {"regex", initregex},
77 {"rgbimg", initrgbimg},
78 {"rotor", initrotor},
79 {"signal", initsignal},
80#ifdef USE_SOCKET
Guido van Rossumf2e98b41996-06-26 19:53:41 +000081 {"_socket", init_socket},
Guido van Rossum1bc716f1996-06-28 19:12:06 +000082 {"select", initselect},
Guido van Rossum87d5e701996-05-28 22:50:17 +000083#endif
84 {"soundex", initsoundex},
85 {"strop", initstrop},
86 {"struct", initstruct},
87 {"time", inittime},
88
89/* -- ADDMODULE MARKER 2 -- */
90
91 /* This module "lives in" with marshal.c */
92 {"marshal", PyMarshal_Init},
93
94 /* This lives it with import.c */
95 {"imp", initimp},
96
97 /* These entries are here for sys.builtin_module_names */
98 {"__main__", NULL},
99 {"__builtin__", NULL},
100 {"sys", NULL},
101
102 /* Sentinel */
103 {0, 0}
104};