Updated for 2.1a3
[python/dscho.git] / PC / os2vacpp / config.c
blob3d54e53b3c9169aceda2751d27b00e87c88112e5
1 /* -*- C -*- ***********************************************
2 Copyright (c) 2000, BeOpen.com.
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5 All rights reserved.
7 See the file "Misc/COPYRIGHT" for information on usage and
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 ******************************************************************/
11 /* Module configuration */
13 /* This file contains the table of built-in modules.
14 See init_builtin() in import.c. */
16 #include "Python.h"
18 extern void initarray(void);
19 extern void initaudioop(void);
20 extern void initbinascii(void);
21 extern void initcmath(void);
22 extern void initerrno(void);
23 extern void initimageop(void);
24 extern void initmath(void);
25 extern void initmd5(void);
26 extern void initnew(void);
27 extern void initnt(void);
28 extern void initos2(void);
29 extern void initoperator(void);
30 extern void initposix(void);
31 extern void initregex(void);
32 extern void initrgbimg(void);
33 extern void initrotor(void);
34 extern void initsignal(void);
35 extern void initselect(void);
36 extern void init_socket(void);
37 extern void initsoundex(void);
38 extern void initstrop(void);
39 extern void initstruct(void);
40 extern void inittime(void);
41 extern void initthread(void);
42 extern void initcStringIO(void);
43 extern void initcPickle(void);
44 extern void initpcre(void);
45 #ifdef WIN32
46 extern void initmsvcrt(void);
47 #endif
49 /* -- ADDMODULE MARKER 1 -- */
51 extern void PyMarshal_Init(void);
52 extern void initimp(void);
54 struct _inittab _PyImport_Inittab[] = {
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},
78 // {"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},
94 {"pcre", initpcre},
95 #ifdef WIN32
96 {"msvcrt", initmsvcrt},
97 #endif
99 /* -- ADDMODULE MARKER 2 -- */
101 /* This module "lives in" with marshal.c */
102 {"marshal", PyMarshal_Init},
104 /* This lives it with import.c */
105 {"imp", initimp},
107 /* These entries are here for sys.builtin_module_names */
108 {"__main__", NULL},
109 {"__builtin__", NULL},
110 {"sys", NULL},
112 /* Sentinel */
113 {0, 0}