blob: 3b4d037a4e4624ae01f313edf9a6e8508efb1ae9 [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.
16 See init_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
Guido van Rossum59e53a51991-02-19 12:22:24 +000020
Guido van Rossum3a40ae41992-09-25 21:54:05 +000021/* -- ADDMODULE MARKER 1 -- */
Guido van Rossum59e53a51991-02-19 12:22:24 +000022
Thomas Wouters53e7fd72000-07-23 00:02:15 +000023extern void PyMarshal_Init(void);
24extern void initimp(void);
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000025extern void initgc(void);
Guido van Rossumb6775db1994-08-01 11:34:53 +000026
Guido van Rossum87490eb1997-04-29 20:31:59 +000027struct _inittab _PyImport_Inittab[] = {
Guido van Rossum59e53a51991-02-19 12:22:24 +000028
Guido van Rossum3a40ae41992-09-25 21:54:05 +000029/* -- ADDMODULE MARKER 2 -- */
30
Andrew M. Kuchling469d5bb2000-11-30 01:57:18 +000031 /* This module lives in marshal.c */
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000032 {"marshal", PyMarshal_Init},
Guido van Rossumb6775db1994-08-01 11:34:53 +000033
Andrew M. Kuchling469d5bb2000-11-30 01:57:18 +000034 /* This lives in import.c */
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000035 {"imp", initimp},
36
Guido van Rossumb6775db1994-08-01 11:34:53 +000037 /* These entries are here for sys.builtin_module_names */
38 {"__main__", NULL},
39 {"__builtin__", NULL},
40 {"sys", NULL},
Tim Peters6d6c1a32001-08-02 04:15:00 +000041 {"exceptions", NULL},
Guido van Rossumb6775db1994-08-01 11:34:53 +000042
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000043 /* This lives in gcmodule.c */
44 {"gc", initgc},
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000045
Guido van Rossumb6775db1994-08-01 11:34:53 +000046 /* Sentinel */
47 {0, 0}
Guido van Rossum59e53a51991-02-19 12:22:24 +000048};