blob: 494a2a227ee902b64813ed8bf0fe464ba08a81db [file] [log] [blame]
Guido van Rossumb6775db1994-08-01 11:34:53 +00001/* -*- C -*- ***********************************************
Guido van Rossume333d161995-03-14 15:04:19 +00002Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
Guido van Rossum524b5881995-01-04 19:10:35 +00003The Netherlands.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00004
5 All Rights Reserved
6
Guido van Rossum524b5881995-01-04 19:10:35 +00007Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
Guido van Rossumf70e43a1991-02-19 12:39:46 +00009provided that the above copyright notice appear in all copies and that
Guido van Rossum524b5881995-01-04 19:10:35 +000010both that copyright notice and this permission notice appear in
Guido van Rossumf70e43a1991-02-19 12:39:46 +000011supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI not be used in advertising or publicity pertaining to
13distribution of the software without specific, written prior permission.
14
15STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
23******************************************************************/
24
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000025/* Module configuration */
Guido van Rossumaec78551990-12-20 23:03:58 +000026
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000027/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
Guido van Rossum34679b71993-01-26 13:33:44 +000028
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000029/* This file contains the table of built-in modules.
30 See init_builtin() in import.c. */
Guido van Rossum9731d441994-08-23 13:48:30 +000031
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000032#include "Python.h"
Guido van Rossum97f02771992-09-03 20:49:55 +000033
Guido van Rossum59e53a51991-02-19 12:22:24 +000034
Guido van Rossum3a40ae41992-09-25 21:54:05 +000035/* -- ADDMODULE MARKER 1 -- */
Guido van Rossum59e53a51991-02-19 12:22:24 +000036
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000037extern void PyMarshal_Init();
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000038extern void initimp();
Guido van Rossumb6775db1994-08-01 11:34:53 +000039
Guido van Rossum2c26cfe1996-05-23 22:57:18 +000040struct _inittab inittab[] = {
Guido van Rossum59e53a51991-02-19 12:22:24 +000041
Guido van Rossum3a40ae41992-09-25 21:54:05 +000042/* -- ADDMODULE MARKER 2 -- */
43
Guido van Rossumb6775db1994-08-01 11:34:53 +000044 /* This module "lives in" with marshal.c */
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000045 {"marshal", PyMarshal_Init},
Guido van Rossumb6775db1994-08-01 11:34:53 +000046
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000047 /* This lives it with import.c */
48 {"imp", initimp},
49
Guido van Rossumb6775db1994-08-01 11:34:53 +000050 /* These entries are here for sys.builtin_module_names */
51 {"__main__", NULL},
52 {"__builtin__", NULL},
53 {"sys", NULL},
54
55 /* Sentinel */
56 {0, 0}
Guido van Rossum59e53a51991-02-19 12:22:24 +000057};