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.
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. */
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 initnt(void);
27 extern void initos2(void);
28 extern void initoperator(void);
29 extern void initposix(void);
30 extern void initrgbimg(void);
31 extern void initsignal(void);
32 extern void initselect(void);
33 extern void init_socket(void);
34 extern void initstrop(void);
35 extern void initstruct(void);
36 extern void inittime(void);
37 extern void initthread(void);
38 extern void initcStringIO(void);
39 extern void initcPickle(void);
40 extern void initpcre(void);
42 extern void initmsvcrt(void);
45 /* -- ADDMODULE MARKER 1 -- */
47 extern void PyMarshal_Init(void);
48 extern void initimp(void);
50 struct _inittab _PyImport_Inittab
[] = {
54 {"audioop", initaudioop
},
56 {"binascii", initbinascii
},
59 // {"imageop", initimageop},
62 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
63 {"nt", initnt
}, /* Use the NT os functions, not posix */
71 {"operator", initoperator
},
72 // {"rgbimg", initrgbimg},
73 {"signal", initsignal
},
75 {"_socket", init_socket
},
76 {"select", initselect
},
79 {"struct", initstruct
},
82 {"thread", initthread
},
84 {"cStringIO", initcStringIO
},
85 {"cPickle", initcPickle
},
88 {"msvcrt", initmsvcrt
},
91 /* -- ADDMODULE MARKER 2 -- */
93 /* This module "lives in" with marshal.c */
94 {"marshal", PyMarshal_Init
},
96 /* This lives it with import.c */
99 /* These entries are here for sys.builtin_module_names */
101 {"__builtin__", NULL
},