blob: 7b77199c2e93ca18cce1d58ea51140d3391c932f [file] [log] [blame]
Guido van Rossumb6775db1994-08-01 11:34:53 +00001/* -*- C -*- ***********************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00009******************************************************************/
10
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000011/* Module configuration */
Guido van Rossumaec78551990-12-20 23:03:58 +000012
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000013/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
Guido van Rossum34679b71993-01-26 13:33:44 +000014
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000015/* This file contains the table of built-in modules.
Nick Coghland5cacbb2015-05-23 22:24:10 +100016 See create_builtin() in import.c. */
Guido van Rossum9731d441994-08-23 13:48:30 +000017
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000018#include "Python.h"
Guido van Rossum97f02771992-09-03 20:49:55 +000019
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000020#ifdef __cplusplus
21extern "C" {
22#endif
23
Guido van Rossum59e53a51991-02-19 12:22:24 +000024
Guido van Rossum3a40ae41992-09-25 21:54:05 +000025/* -- ADDMODULE MARKER 1 -- */
Guido van Rossum59e53a51991-02-19 12:22:24 +000026
Martin v. Löwis1a214512008-06-11 05:26:20 +000027extern PyObject* PyMarshal_Init(void);
28extern PyObject* PyInit_imp(void);
29extern PyObject* PyInit_gc(void);
30extern PyObject* PyInit__ast(void);
31extern PyObject* _PyWarnings_Init(void);
Georg Brandl66c221e2010-10-14 07:04:07 +000032extern PyObject* PyInit__string(void);
Guido van Rossumb6775db1994-08-01 11:34:53 +000033
Guido van Rossum87490eb1997-04-29 20:31:59 +000034struct _inittab _PyImport_Inittab[] = {
Guido van Rossum59e53a51991-02-19 12:22:24 +000035
Guido van Rossum3a40ae41992-09-25 21:54:05 +000036/* -- ADDMODULE MARKER 2 -- */
37
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000038 /* This module lives in marshal.c */
39 {"marshal", PyMarshal_Init},
Guido van Rossumb6775db1994-08-01 11:34:53 +000040
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000041 /* This lives in import.c */
Brett Cannon6f44d662012-04-15 16:08:47 -040042 {"_imp", PyInit_imp},
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000043
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000044 /* This lives in Python/Python-ast.c */
45 {"_ast", PyInit__ast},
Martin v. Löwis577b5b92006-02-27 15:23:19 +000046
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000047 /* These entries are here for sys.builtin_module_names */
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000048 {"builtins", NULL},
49 {"sys", NULL},
Guido van Rossumb6775db1994-08-01 11:34:53 +000050
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000051 /* This lives in gcmodule.c */
52 {"gc", PyInit_gc},
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000053
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000054 /* This lives in _warnings.c */
55 {"_warnings", _PyWarnings_Init},
Christian Heimes33fe8092008-04-13 13:53:33 +000056
Georg Brandl66c221e2010-10-14 07:04:07 +000057 /* This lives in Objects/unicodeobject.c */
58 {"_string", PyInit__string},
59
Mark Dickinson57bd2ba2010-05-29 21:05:27 +000060 /* Sentinel */
61 {0, 0}
Guido van Rossum59e53a51991-02-19 12:22:24 +000062};
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000063
64
65#ifdef __cplusplus
66}
67#endif