config.c.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.
  5. All rights reserved.
  6. See the file "Misc/COPYRIGHT" for information on usage and
  7. redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  8. ******************************************************************/
  9. /* Module configuration */
  10. /* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
  11. /* This file contains the table of built-in modules.
  12. See create_builtin() in import.c. */
  13. #include "Python.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* -- ADDMODULE MARKER 1 -- */
  18. extern PyObject* PyMarshal_Init(void);
  19. extern PyObject* PyInit__imp(void);
  20. extern PyObject* PyInit_gc(void);
  21. extern PyObject* PyInit__ast(void);
  22. extern PyObject* _PyWarnings_Init(void);
  23. extern PyObject* PyInit__string(void);
  24. struct _inittab _PyImport_Inittab[] = {
  25. /* -- ADDMODULE MARKER 2 -- */
  26. /* This module lives in marshal.c */
  27. {"marshal", PyMarshal_Init},
  28. /* This lives in import.c */
  29. {"_imp", PyInit__imp},
  30. /* This lives in Python/Python-ast.c */
  31. {"_ast", PyInit__ast},
  32. /* These entries are here for sys.builtin_module_names */
  33. {"builtins", NULL},
  34. {"sys", NULL},
  35. /* This lives in gcmodule.c */
  36. {"gc", PyInit_gc},
  37. /* This lives in _warnings.c */
  38. {"_warnings", _PyWarnings_Init},
  39. /* This lives in Objects/unicodeobject.c */
  40. {"_string", PyInit__string},
  41. /* Sentinel */
  42. {0, 0}
  43. };
  44. #ifdef __cplusplus
  45. }
  46. #endif