| 1 | /* Generated automatically from ./Modules/config.c.in by makesetup. */ |
| 2 | /* -*- C -*- *********************************************** |
| 3 | Copyright (c) 2000, BeOpen.com. |
| 4 | Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
| 5 | Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
| 6 | All rights reserved. |
| 7 | |
| 8 | See the file "Misc/COPYRIGHT" for information on usage and |
| 9 | redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 10 | ******************************************************************/ |
| 11 | |
| 12 | /* Module configuration */ |
| 13 | |
| 14 | /* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */ |
| 15 | |
| 16 | /* This file contains the table of built-in modules. |
| 17 | See init_builtin() in import.c. */ |
| 18 | |
| 19 | #include "Python.h" |
| 20 | |
| 21 | |
| 22 | extern void initthread(void); |
| 23 | extern void initsignal(void); |
| 24 | extern void initposix(void); |
| 25 | extern void initerrno(void); |
| 26 | extern void init_sre(void); |
| 27 | extern void init_codecs(void); |
| 28 | extern void initzipimport(void); |
| 29 | extern void init_symtable(void); |
| 30 | extern void initxxsubtype(void); |
| 31 | extern void initreadline(void); |
| 32 | extern void initpyexpat(void); |
| 33 | extern void init_tkinter(void); |
| 34 | |
| 35 | /* -- ADDMODULE MARKER 1 -- */ |
| 36 | |
| 37 | extern void PyMarshal_Init(void); |
| 38 | extern void initimp(void); |
| 39 | extern void initgc(void); |
| 40 | |
| 41 | struct _inittab _PyImport_Inittab[] = { |
| 42 | |
| 43 | {"thread", initthread}, |
| 44 | {"signal", initsignal}, |
| 45 | {"posix", initposix}, |
| 46 | {"errno", initerrno}, |
| 47 | {"_sre", init_sre}, |
| 48 | {"_codecs", init_codecs}, |
| 49 | {"zipimport", initzipimport}, |
| 50 | {"_symtable", init_symtable}, |
| 51 | {"xxsubtype", initxxsubtype}, |
| 52 | {"readline", initreadline}, |
| 53 | {"pyexpat", initpyexpat}, |
| 54 | {"_tkinter", init_tkinter}, |
| 55 | |
| 56 | /* -- ADDMODULE MARKER 2 -- */ |
| 57 | |
| 58 | /* This module lives in marshal.c */ |
| 59 | {"marshal", PyMarshal_Init}, |
| 60 | |
| 61 | /* This lives in import.c */ |
| 62 | {"imp", initimp}, |
| 63 | |
| 64 | /* These entries are here for sys.builtin_module_names */ |
| 65 | {"__main__", NULL}, |
| 66 | {"__builtin__", NULL}, |
| 67 | {"sys", NULL}, |
| 68 | {"exceptions", NULL}, |
| 69 | |
| 70 | /* This lives in gcmodule.c */ |
| 71 | {"gc", initgc}, |
| 72 | |
| 73 | /* Sentinel */ |
| 74 | {0, 0} |
| 75 | }; |