Added 'list_only' option (and modified 'run()' to respect it).
[python/dscho.git] / PC / os2vacpp / config.c
blob11caad26a9423b7897593232c6fb97131a9e9bb4
1 /* -*- C -*- ***********************************************
2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3 The Netherlands.
5 All Rights Reserved
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
15 permission.
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
32 /* Module configuration */
34 /* This file contains the table of built-in modules.
35 See init_builtin() in import.c. */
37 #include "Python.h"
39 extern void initarray();
40 extern void initaudioop();
41 extern void initbinascii();
42 extern void initcmath();
43 extern void initerrno();
44 extern void initimageop();
45 extern void initmath();
46 extern void initmd5();
47 extern void initnew();
48 extern void initnt();
49 extern void initos2();
50 extern void initoperator();
51 extern void initposix();
52 extern void initregex();
53 extern void initrgbimg();
54 extern void initrotor();
55 extern void initsignal();
56 extern void initselect();
57 extern void init_socket();
58 extern void initsoundex();
59 extern void initstrop();
60 extern void initstruct();
61 extern void inittime();
62 extern void initthread();
63 extern void initcStringIO();
64 extern void initcPickle();
65 extern void initpcre();
66 #ifdef WIN32
67 extern void initmsvcrt();
68 #endif
70 /* -- ADDMODULE MARKER 1 -- */
72 extern void PyMarshal_Init();
73 extern void initimp();
75 struct _inittab _PyImport_Inittab[] = {
77 {"array", initarray},
78 #ifdef M_I386
79 {"audioop", initaudioop},
80 #endif
81 {"binascii", initbinascii},
82 {"cmath", initcmath},
83 {"errno", initerrno},
84 // {"imageop", initimageop},
85 {"math", initmath},
86 {"md5", initmd5},
87 {"new", initnew},
88 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
89 {"nt", initnt}, /* Use the NT os functions, not posix */
90 #else
91 #if defined(PYOS_OS2)
92 {"os2", initos2},
93 #else
94 {"posix", initposix},
95 #endif
96 #endif
97 {"operator", initoperator},
98 {"regex", initregex},
99 // {"rgbimg", initrgbimg},
100 // {"rotor", initrotor},
101 {"signal", initsignal},
102 #ifdef USE_SOCKET
103 {"_socket", init_socket},
104 {"select", initselect},
105 #endif
106 {"soundex", initsoundex},
107 {"strop", initstrop},
108 {"struct", initstruct},
109 {"time", inittime},
110 #ifdef WITH_THREAD
111 {"thread", initthread},
112 #endif
113 {"cStringIO", initcStringIO},
114 {"cPickle", initcPickle},
115 {"pcre", initpcre},
116 #ifdef WIN32
117 {"msvcrt", initmsvcrt},
118 #endif
120 /* -- ADDMODULE MARKER 2 -- */
122 /* This module "lives in" with marshal.c */
123 {"marshal", PyMarshal_Init},
125 /* This lives it with import.c */
126 {"imp", initimp},
128 /* These entries are here for sys.builtin_module_names */
129 {"__main__", NULL},
130 {"__builtin__", NULL},
131 {"sys", NULL},
133 /* Sentinel */
134 {0, 0}