config.c.in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 init_builtin() in import.c. */
  13. #include "Python.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* -- ADDMODULE MARKER 1 -- */
  18. extern void PyMarshal_Init(void);
  19. extern void initimp(void);
  20. extern void initgc(void);
  21. extern void init_ast(void);
  22. extern void _PyWarnings_Init(void);
  23. struct _inittab _PyImport_Inittab[] = {
  24. /* -- ADDMODULE MARKER 2 -- */
  25. /* This module lives in marshal.c */
  26. {"marshal", PyMarshal_Init},
  27. /* This lives in import.c */
  28. {"imp", initimp},
  29. /* This lives in Python/Python-ast.c */
  30. {"_ast", init_ast},
  31. /* These entries are here for sys.builtin_module_names */
  32. {"__main__", NULL},
  33. {"__builtin__", NULL},
  34. {"sys", NULL},
  35. {"exceptions", NULL},
  36. /* This lives in gcmodule.c */
  37. {"gc", initgc},
  38. /* This lives in _warnings.c */
  39. {"_warnings", _PyWarnings_Init},
  40. /* Sentinel */
  41. {0, 0}
  42. };
  43. #ifdef __cplusplus
  44. }
  45. #endif