config.c.in 1.19 KB
Newer Older
1
/* -*- C -*- ***********************************************
2 3 4 5 6 7 8
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
All rights reserved.

See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 10
******************************************************************/

11
/* Module configuration */
Guido van Rossum's avatar
Guido van Rossum committed
12

13
/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
14

15 16
/* This file contains the table of built-in modules.
   See init_builtin() in import.c. */
17

18
#include "Python.h"
19

20

21
/* -- ADDMODULE MARKER 1 -- */
22

23 24
extern void PyMarshal_Init(void);
extern void initimp(void);
25
extern void initgc(void);
26

Guido van Rossum's avatar
Guido van Rossum committed
27
struct _inittab _PyImport_Inittab[] = {
28

29
/* -- ADDMODULE MARKER 2 -- */
30

31
	/* This module lives in marshal.c */
32
	{"marshal", PyMarshal_Init},
33

34
	/* This lives in import.c */
35 36
	{"imp", initimp},

37 38 39 40
	/* These entries are here for sys.builtin_module_names */
	{"__main__", NULL},
	{"__builtin__", NULL},
	{"sys", NULL},
41
	{"exceptions", NULL},
42

43 44 45 46 47
#ifdef WITH_CYCLE_GC
	/* This lives in gcmodule.c */
	{"gc", initgc},
#endif

48 49
	/* Sentinel */
	{0, 0}
50
};