aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/config.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in23
1 files changed, 13 insertions, 10 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index faa427ace25..34d44d5a880 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -24,11 +24,12 @@ extern "C" {
/* -- ADDMODULE MARKER 1 -- */
-extern void PyMarshal_Init(void);
-extern void initimp(void);
-extern void initgc(void);
-extern void init_ast(void);
-extern void _PyWarnings_Init(void);
+extern PyObject* PyMarshal_Init(void);
+extern PyObject* PyInit_imp(void);
+extern PyObject* PyInit_gc(void);
+extern PyObject* PyInit__ast(void);
+extern PyObject* _PyWarnings_Init(void);
+extern PyObject* PyInit__string(void);
struct _inittab _PyImport_Inittab[] = {
@@ -38,23 +39,25 @@ struct _inittab _PyImport_Inittab[] = {
{"marshal", PyMarshal_Init},
/* This lives in import.c */
- {"imp", initimp},
+ {"imp", PyInit_imp},
/* This lives in Python/Python-ast.c */
- {"_ast", init_ast},
+ {"_ast", PyInit__ast},
/* These entries are here for sys.builtin_module_names */
{"__main__", NULL},
- {"__builtin__", NULL},
+ {"builtins", NULL},
{"sys", NULL},
- {"exceptions", NULL},
/* This lives in gcmodule.c */
- {"gc", initgc},
+ {"gc", PyInit_gc},
/* This lives in _warnings.c */
{"_warnings", _PyWarnings_Init},
+ /* This lives in Objects/unicodeobject.c */
+ {"_string", PyInit__string},
+
/* Sentinel */
{0, 0}
};