blob: 8c25eea2e94a17bf0b3415942e2728c365fd4589 [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
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
Thomas Wouters53e7fd72000-07-23 00:02:15 +000027extern void PyMarshal_Init(void);
28extern void initimp(void);
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000029extern void initgc(void);
Martin v. Löwis577b5b92006-02-27 15:23:19 +000030extern void init_ast(void);
Thomas Wouters0e3f5912006-08-11 14:57:12 +000031extern void init_types(void);
Guido van Rossumb6775db1994-08-01 11:34:53 +000032
Guido van Rossum87490eb1997-04-29 20:31:59 +000033struct _inittab _PyImport_Inittab[] = {
Guido van Rossum59e53a51991-02-19 12:22:24 +000034
Guido van Rossum3a40ae41992-09-25 21:54:05 +000035/* -- ADDMODULE MARKER 2 -- */
36
Andrew M. Kuchling469d5bb2000-11-30 01:57:18 +000037 /* This module lives in marshal.c */
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000038 {"marshal", PyMarshal_Init},
Guido van Rossumb6775db1994-08-01 11:34:53 +000039
Andrew M. Kuchling469d5bb2000-11-30 01:57:18 +000040 /* This lives in import.c */
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000041 {"imp", initimp},
42
Martin v. Löwis577b5b92006-02-27 15:23:19 +000043 /* This lives in Python/Python-ast.c */
44 {"_ast", init_ast},
45
Thomas Wouters0e3f5912006-08-11 14:57:12 +000046 /* This lives in Python/_types.c */
47 {"_types", init_types},
48
Guido van Rossumb6775db1994-08-01 11:34:53 +000049 /* These entries are here for sys.builtin_module_names */
50 {"__main__", NULL},
51 {"__builtin__", NULL},
52 {"sys", NULL},
Tim Peters6d6c1a32001-08-02 04:15:00 +000053 {"exceptions", NULL},
Guido van Rossumb6775db1994-08-01 11:34:53 +000054
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000055 /* This lives in gcmodule.c */
56 {"gc", initgc},
Neil Schemenauer7d0e19e2001-08-30 00:12:32 +000057
Guido van Rossumb6775db1994-08-01 11:34:53 +000058 /* Sentinel */
59 {0, 0}
Guido van Rossum59e53a51991-02-19 12:22:24 +000060};
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000061
62
63#ifdef __cplusplus
64}
65#endif
66