Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 1 | /* -*- C -*- *********************************************** |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 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. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 7 | See the file "Misc/COPYRIGHT" for information on usage and |
| 8 | redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 9 | ******************************************************************/ |
| 10 | |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 11 | /* Module configuration */ |
Guido van Rossum | aec7855 | 1990-12-20 23:03:58 +0000 | [diff] [blame] | 12 | |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 13 | /* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */ |
Guido van Rossum | 34679b7 | 1993-01-26 13:33:44 +0000 | [diff] [blame] | 14 | |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 15 | /* This file contains the table of built-in modules. |
Nick Coghlan | d5cacbb | 2015-05-23 22:24:10 +1000 | [diff] [blame] | 16 | See create_builtin() in import.c. */ |
Guido van Rossum | 9731d44 | 1994-08-23 13:48:30 +0000 | [diff] [blame] | 17 | |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 18 | #include "Python.h" |
Guido van Rossum | 97f0277 | 1992-09-03 20:49:55 +0000 | [diff] [blame] | 19 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 20 | #ifdef __cplusplus |
| 21 | extern "C" { |
| 22 | #endif |
| 23 | |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 24 | |
Guido van Rossum | 3a40ae4 | 1992-09-25 21:54:05 +0000 | [diff] [blame] | 25 | /* -- ADDMODULE MARKER 1 -- */ |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 26 | |
Martin v. Löwis | 1a21451 | 2008-06-11 05:26:20 +0000 | [diff] [blame] | 27 | extern PyObject* PyMarshal_Init(void); |
| 28 | extern PyObject* PyInit_imp(void); |
| 29 | extern PyObject* PyInit_gc(void); |
| 30 | extern PyObject* PyInit__ast(void); |
| 31 | extern PyObject* _PyWarnings_Init(void); |
Georg Brandl | 66c221e | 2010-10-14 07:04:07 +0000 | [diff] [blame] | 32 | extern PyObject* PyInit__string(void); |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 33 | |
Guido van Rossum | 87490eb | 1997-04-29 20:31:59 +0000 | [diff] [blame] | 34 | struct _inittab _PyImport_Inittab[] = { |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 35 | |
Guido van Rossum | 3a40ae4 | 1992-09-25 21:54:05 +0000 | [diff] [blame] | 36 | /* -- ADDMODULE MARKER 2 -- */ |
| 37 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 38 | /* This module lives in marshal.c */ |
| 39 | {"marshal", PyMarshal_Init}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 40 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 41 | /* This lives in import.c */ |
Brett Cannon | 6f44d66 | 2012-04-15 16:08:47 -0400 | [diff] [blame] | 42 | {"_imp", PyInit_imp}, |
Guido van Rossum | 3bbc62e | 1995-01-02 19:30:30 +0000 | [diff] [blame] | 43 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 44 | /* This lives in Python/Python-ast.c */ |
| 45 | {"_ast", PyInit__ast}, |
Martin v. Löwis | 577b5b9 | 2006-02-27 15:23:19 +0000 | [diff] [blame] | 46 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 47 | /* These entries are here for sys.builtin_module_names */ |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 48 | {"builtins", NULL}, |
| 49 | {"sys", NULL}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 50 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 51 | /* This lives in gcmodule.c */ |
| 52 | {"gc", PyInit_gc}, |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 53 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 54 | /* This lives in _warnings.c */ |
| 55 | {"_warnings", _PyWarnings_Init}, |
Christian Heimes | 33fe809 | 2008-04-13 13:53:33 +0000 | [diff] [blame] | 56 | |
Georg Brandl | 66c221e | 2010-10-14 07:04:07 +0000 | [diff] [blame] | 57 | /* This lives in Objects/unicodeobject.c */ |
| 58 | {"_string", PyInit__string}, |
| 59 | |
Mark Dickinson | 57bd2ba | 2010-05-29 21:05:27 +0000 | [diff] [blame] | 60 | /* Sentinel */ |
| 61 | {0, 0} |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 62 | }; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 63 | |
| 64 | |
| 65 | #ifdef __cplusplus |
| 66 | } |
| 67 | #endif |