blob: 88cf3f86b0912d561afbe34d2855dffe17af3903 [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
Guido van Rossumd266eb41996-10-25 14:44:06 +000012Centrum or CWI or Corporation for National Research Initiatives or
13CNRI not be used in advertising or publicity pertaining to
14distribution of the software without specific, written prior
15permission.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000016
Guido van Rossumd266eb41996-10-25 14:44:06 +000017While CWI is the initial source for this software, a modified version
18is made available by the Corporation for National Research Initiatives
19(CNRI) at the Internet address ftp://ftp.python.org.
20
21STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000029
30******************************************************************/
31
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000032/* Module configuration */
Guido van Rossumaec78551990-12-20 23:03:58 +000033
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000034/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
Guido van Rossum34679b71993-01-26 13:33:44 +000035
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000036/* This file contains the table of built-in modules.
37 See init_builtin() in import.c. */
Guido van Rossum9731d441994-08-23 13:48:30 +000038
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000039#include "Python.h"
Guido van Rossum97f02771992-09-03 20:49:55 +000040
Guido van Rossum59e53a51991-02-19 12:22:24 +000041
Guido van Rossum3a40ae41992-09-25 21:54:05 +000042/* -- ADDMODULE MARKER 1 -- */
Guido van Rossum59e53a51991-02-19 12:22:24 +000043
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000044extern void PyMarshal_Init();
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000045extern void initimp();
Guido van Rossumb6775db1994-08-01 11:34:53 +000046
Guido van Rossum87490eb1997-04-29 20:31:59 +000047struct _inittab _PyImport_Inittab[] = {
Guido van Rossum59e53a51991-02-19 12:22:24 +000048
Guido van Rossum3a40ae41992-09-25 21:54:05 +000049/* -- ADDMODULE MARKER 2 -- */
50
Guido van Rossumb6775db1994-08-01 11:34:53 +000051 /* This module "lives in" with marshal.c */
Guido van Rossum37ba0bc1995-08-04 04:20:45 +000052 {"marshal", PyMarshal_Init},
Guido van Rossumb6775db1994-08-01 11:34:53 +000053
Guido van Rossum3bbc62e1995-01-02 19:30:30 +000054 /* This lives it with import.c */
55 {"imp", initimp},
56
Guido van Rossumb6775db1994-08-01 11:34:53 +000057 /* These entries are here for sys.builtin_module_names */
58 {"__main__", NULL},
59 {"__builtin__", NULL},
60 {"sys", NULL},
61
62 /* Sentinel */
63 {0, 0}
Guido van Rossum59e53a51991-02-19 12:22:24 +000064};