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. |
| 16 | See init_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 | |
Anthony Baxter | 1ad9ec2 | 2006-04-13 04:49:25 +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 | |
Thomas Wouters | 53e7fd7 | 2000-07-23 00:02:15 +0000 | [diff] [blame] | 27 | extern void PyMarshal_Init(void); |
| 28 | extern void initimp(void); |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 29 | extern void initgc(void); |
Martin v. Löwis | 577b5b9 | 2006-02-27 15:23:19 +0000 | [diff] [blame] | 30 | extern void init_ast(void); |
Brett Cannon | e974689 | 2008-04-12 23:44:07 +0000 | [diff] [blame] | 31 | extern void _PyWarnings_Init(void); |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 32 | |
Guido van Rossum | 87490eb | 1997-04-29 20:31:59 +0000 | [diff] [blame] | 33 | struct _inittab _PyImport_Inittab[] = { |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 34 | |
Guido van Rossum | 3a40ae4 | 1992-09-25 21:54:05 +0000 | [diff] [blame] | 35 | /* -- ADDMODULE MARKER 2 -- */ |
| 36 | |
Andrew M. Kuchling | 469d5bb | 2000-11-30 01:57:18 +0000 | [diff] [blame] | 37 | /* This module lives in marshal.c */ |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 38 | {"marshal", PyMarshal_Init}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 39 | |
Andrew M. Kuchling | 469d5bb | 2000-11-30 01:57:18 +0000 | [diff] [blame] | 40 | /* This lives in import.c */ |
Guido van Rossum | 3bbc62e | 1995-01-02 19:30:30 +0000 | [diff] [blame] | 41 | {"imp", initimp}, |
| 42 | |
Martin v. Löwis | 577b5b9 | 2006-02-27 15:23:19 +0000 | [diff] [blame] | 43 | /* This lives in Python/Python-ast.c */ |
| 44 | {"_ast", init_ast}, |
| 45 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 46 | /* These entries are here for sys.builtin_module_names */ |
| 47 | {"__main__", NULL}, |
| 48 | {"__builtin__", NULL}, |
| 49 | {"sys", NULL}, |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 50 | {"exceptions", NULL}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 51 | |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 52 | /* This lives in gcmodule.c */ |
| 53 | {"gc", initgc}, |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 54 | |
Benjamin Peterson | fbb388b | 2008-09-18 23:20:28 +0000 | [diff] [blame] | 55 | /* This lives in _warnings.c */ |
| 56 | {"_warnings", _PyWarnings_Init}, |
Brett Cannon | e974689 | 2008-04-12 23:44:07 +0000 | [diff] [blame] | 57 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 58 | /* Sentinel */ |
| 59 | {0, 0} |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 60 | }; |
Anthony Baxter | 1ad9ec2 | 2006-04-13 04:49:25 +0000 | [diff] [blame] | 61 | |
| 62 | |
| 63 | #ifdef __cplusplus |
| 64 | } |
| 65 | #endif |
| 66 | |