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 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);
46 extern void initmsvcrt(void);
49 /* -- ADDMODULE MARKER 1 -- */
51 extern void PyMarshal_Init(void);
52 extern void initimp(void);
54 struct _inittab _PyImport_Inittab
[] = {
58 {"audioop", initaudioop
},
60 {"binascii", initbinascii
},
63 // {"imageop", initimageop},
67 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
68 {"nt", initnt
}, /* Use the NT os functions, not posix */
76 {"operator", initoperator
},
78 // {"rgbimg", initrgbimg},
79 // {"rotor", initrotor},
80 {"signal", initsignal
},
82 {"_socket", init_socket
},
83 {"select", initselect
},
85 {"soundex", initsoundex
},
87 {"struct", initstruct
},
90 {"thread", initthread
},
92 {"cStringIO", initcStringIO
},
93 {"cPickle", initcPickle
},
96 {"msvcrt", initmsvcrt
},
99 /* -- ADDMODULE MARKER 2 -- */
101 /* This module "lives in" with marshal.c */
102 {"marshal", PyMarshal_Init
},
104 /* This lives it with import.c */
107 /* These entries are here for sys.builtin_module_names */
109 {"__builtin__", NULL
},