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 | |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 20 | |
Guido van Rossum | 3a40ae4 | 1992-09-25 21:54:05 +0000 | [diff] [blame] | 21 | /* -- ADDMODULE MARKER 1 -- */ |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 22 | |
Thomas Wouters | 53e7fd7 | 2000-07-23 00:02:15 +0000 | [diff] [blame] | 23 | extern void PyMarshal_Init(void); |
| 24 | extern void initimp(void); |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 25 | extern void initgc(void); |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 26 | |
Guido van Rossum | 87490eb | 1997-04-29 20:31:59 +0000 | [diff] [blame] | 27 | struct _inittab _PyImport_Inittab[] = { |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 28 | |
Guido van Rossum | 3a40ae4 | 1992-09-25 21:54:05 +0000 | [diff] [blame] | 29 | /* -- ADDMODULE MARKER 2 -- */ |
| 30 | |
Andrew M. Kuchling | 469d5bb | 2000-11-30 01:57:18 +0000 | [diff] [blame] | 31 | /* This module lives in marshal.c */ |
Guido van Rossum | 37ba0bc | 1995-08-04 04:20:45 +0000 | [diff] [blame] | 32 | {"marshal", PyMarshal_Init}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 33 | |
Andrew M. Kuchling | 469d5bb | 2000-11-30 01:57:18 +0000 | [diff] [blame] | 34 | /* This lives in import.c */ |
Guido van Rossum | 3bbc62e | 1995-01-02 19:30:30 +0000 | [diff] [blame] | 35 | {"imp", initimp}, |
| 36 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 37 | /* These entries are here for sys.builtin_module_names */ |
| 38 | {"__main__", NULL}, |
| 39 | {"__builtin__", NULL}, |
| 40 | {"sys", NULL}, |
Tim Peters | 6d6c1a3 | 2001-08-02 04:15:00 +0000 | [diff] [blame] | 41 | {"exceptions", NULL}, |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 42 | |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 43 | /* This lives in gcmodule.c */ |
| 44 | {"gc", initgc}, |
Neil Schemenauer | 7d0e19e | 2001-08-30 00:12:32 +0000 | [diff] [blame] | 45 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 46 | /* Sentinel */ |
| 47 | {0, 0} |
Guido van Rossum | 59e53a5 | 1991-02-19 12:22:24 +0000 | [diff] [blame] | 48 | }; |