2021-09-15 14:11:12 -03:00
|
|
|
/* Module configuration */
|
|
|
|
|
|
|
|
/* This file contains the table of built-in modules.
|
|
|
|
See create_builtin() in import.c. */
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
2023-03-09 17:09:12 -04:00
|
|
|
#ifdef Py_ENABLE_SHARED
|
2021-12-02 20:08:42 -04:00
|
|
|
/* Define extern variables omitted from minimal builds */
|
|
|
|
void *PyWin_DLLhModule = NULL;
|
2023-03-09 17:09:12 -04:00
|
|
|
#endif
|
2021-12-02 20:08:42 -04:00
|
|
|
|
|
|
|
|
2021-09-15 14:11:12 -03:00
|
|
|
extern PyObject* PyInit_faulthandler(void);
|
|
|
|
extern PyObject* PyInit__tracemalloc(void);
|
|
|
|
extern PyObject* PyInit_gc(void);
|
|
|
|
extern PyObject* PyInit_nt(void);
|
|
|
|
extern PyObject* PyInit__signal(void);
|
2023-03-09 17:09:12 -04:00
|
|
|
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) || defined(MS_WINDOWS_GAMES)
|
2021-09-15 14:11:12 -03:00
|
|
|
extern PyObject* PyInit_winreg(void);
|
2023-03-09 17:09:12 -04:00
|
|
|
#endif
|
2021-09-15 14:11:12 -03:00
|
|
|
|
|
|
|
extern PyObject* PyInit__ast(void);
|
|
|
|
extern PyObject* PyInit__io(void);
|
|
|
|
extern PyObject* PyInit_atexit(void);
|
|
|
|
extern PyObject* _PyWarnings_Init(void);
|
|
|
|
extern PyObject* PyInit__string(void);
|
|
|
|
extern PyObject* PyInit__tokenize(void);
|
|
|
|
|
|
|
|
extern PyObject* PyMarshal_Init(void);
|
|
|
|
extern PyObject* PyInit__imp(void);
|
|
|
|
|
|
|
|
struct _inittab _PyImport_Inittab[] = {
|
|
|
|
{"_ast", PyInit__ast},
|
|
|
|
{"faulthandler", PyInit_faulthandler},
|
|
|
|
{"gc", PyInit_gc},
|
|
|
|
{"nt", PyInit_nt}, /* Use the NT os functions, not posix */
|
|
|
|
{"_signal", PyInit__signal},
|
|
|
|
{"_tokenize", PyInit__tokenize},
|
|
|
|
{"_tracemalloc", PyInit__tracemalloc},
|
|
|
|
|
2023-03-09 17:09:12 -04:00
|
|
|
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM) || defined(MS_WINDOWS_GAMES)
|
2021-09-15 14:11:12 -03:00
|
|
|
{"winreg", PyInit_winreg},
|
2023-03-09 17:09:12 -04:00
|
|
|
#endif
|
2021-09-15 14:11:12 -03:00
|
|
|
|
|
|
|
/* This module "lives in" with marshal.c */
|
|
|
|
{"marshal", PyMarshal_Init},
|
|
|
|
|
|
|
|
/* This lives it with import.c */
|
|
|
|
{"_imp", PyInit__imp},
|
|
|
|
|
|
|
|
/* These entries are here for sys.builtin_module_names */
|
|
|
|
{"builtins", NULL},
|
|
|
|
{"sys", NULL},
|
|
|
|
{"_warnings", _PyWarnings_Init},
|
|
|
|
{"_string", PyInit__string},
|
|
|
|
|
|
|
|
{"_io", PyInit__io},
|
|
|
|
{"atexit", PyInit_atexit},
|
|
|
|
|
|
|
|
/* Sentinel */
|
|
|
|
{0, 0}
|
|
|
|
};
|