blob: a0d870868e420b6bec62457f2c37ca178140f226 [file] [log] [blame]
Guido van Rossum50d4cc21997-11-22 21:59:45 +00001/* -*- C -*- ***********************************************
2Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007Copyright (c) 2000, BeOpen.com.
8Copyright (c) 1995-2000, Corporation for National Research Initiatives.
9Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
10All rights reserved.
Guido van Rossum50d4cc21997-11-22 21:59:45 +000011
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000012See the file "Misc/COPYRIGHT" for information on usage and
13redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossum50d4cc21997-11-22 21:59:45 +000014
15******************************************************************/
16
17/* Module configuration */
18
19/* This file contains the table of built-in modules.
20 See init_builtin() in import.c. */
21
22#include "Python.h"
23
24extern void initarray();
25extern void initaudioop();
26extern void initbinascii();
27extern void initcmath();
28extern void initerrno();
29extern void initimageop();
30extern void initmath();
31extern void initmd5();
32extern void initnew();
33extern void initnt();
34extern void initos2();
35extern void initoperator();
36extern void initposix();
37extern void initregex();
Guido van Rossum50d4cc21997-11-22 21:59:45 +000038extern void initrgbimg();
39extern void initrotor();
40extern void initsignal();
41extern void initselect();
42extern void init_socket();
43extern void initsoundex();
44extern void initstrop();
45extern void initstruct();
46extern void inittime();
47extern void initthread();
48extern void initcStringIO();
49extern void initcPickle();
Guido van Rossuma34c3131997-12-05 22:07:14 +000050extern void initpcre();
Guido van Rossum50d4cc21997-11-22 21:59:45 +000051#ifdef WIN32
52extern void initmsvcrt();
53#endif
54
55/* -- ADDMODULE MARKER 1 -- */
56
57extern void PyMarshal_Init();
58extern void initimp();
59
60struct _inittab _PyImport_Inittab[] = {
61
62 {"array", initarray},
63#ifdef M_I386
64 {"audioop", initaudioop},
65#endif
66 {"binascii", initbinascii},
67 {"cmath", initcmath},
68 {"errno", initerrno},
69// {"imageop", initimageop},
70 {"math", initmath},
71 {"md5", initmd5},
72 {"new", initnew},
73#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
74 {"nt", initnt}, /* Use the NT os functions, not posix */
75#else
76#if defined(PYOS_OS2)
77 {"os2", initos2},
78#else
79 {"posix", initposix},
80#endif
81#endif
82 {"operator", initoperator},
83 {"regex", initregex},
Guido van Rossum50d4cc21997-11-22 21:59:45 +000084// {"rgbimg", initrgbimg},
85// {"rotor", initrotor},
86 {"signal", initsignal},
87#ifdef USE_SOCKET
88 {"_socket", init_socket},
89 {"select", initselect},
90#endif
91 {"soundex", initsoundex},
92 {"strop", initstrop},
93 {"struct", initstruct},
94 {"time", inittime},
95#ifdef WITH_THREAD
96 {"thread", initthread},
97#endif
98 {"cStringIO", initcStringIO},
99 {"cPickle", initcPickle},
Guido van Rossuma34c3131997-12-05 22:07:14 +0000100 {"pcre", initpcre},
Guido van Rossum50d4cc21997-11-22 21:59:45 +0000101#ifdef WIN32
102 {"msvcrt", initmsvcrt},
103#endif
104
105/* -- ADDMODULE MARKER 2 -- */
106
107 /* This module "lives in" with marshal.c */
108 {"marshal", PyMarshal_Init},
109
110 /* This lives it with import.c */
111 {"imp", initimp},
112
113 /* These entries are here for sys.builtin_module_names */
114 {"__main__", NULL},
115 {"__builtin__", NULL},
116 {"sys", NULL},
117
118 /* Sentinel */
119 {0, 0}
120};