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