7 /***********************************************************
8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and that
16 both that copyright notice and this permission notice appear in
17 supporting documentation, and that the names of Stichting Mathematisch
18 Centrum or CWI or Corporation for National Research Initiatives or
19 CNRI not be used in advertising or publicity pertaining to
20 distribution of the software without specific, written prior
23 While CWI is the initial source for this software, a modified version
24 is made available by the Corporation for National Research Initiatives
25 (CNRI) at the Internet address ftp://ftp.python.org.
27 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
28 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
29 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
30 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
31 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
32 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
33 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34 PERFORMANCE OF THIS SOFTWARE.
36 ******************************************************************/
38 /* Module definition and import interface */
40 long PyImport_GetMagicNumber
Py_PROTO((void));
41 PyObject
*PyImport_ExecCodeModule
Py_PROTO((char *name
, PyObject
*co
));
42 PyObject
*PyImport_ExecCodeModuleEx
Py_PROTO((
43 char *name
, PyObject
*co
, char *pathname
));
44 PyObject
*PyImport_GetModuleDict
Py_PROTO((void));
45 PyObject
*PyImport_AddModule
Py_PROTO((char *name
));
46 PyObject
*PyImport_ImportModule
Py_PROTO((char *name
));
47 PyObject
*PyImport_ImportModuleEx
Py_PROTO((
48 char *name
, PyObject
*globals
, PyObject
*locals
, PyObject
*fromlist
));
49 PyObject
*PyImport_Import
Py_PROTO((PyObject
*name
));
50 PyObject
*PyImport_ReloadModule
Py_PROTO((PyObject
*m
));
51 void PyImport_Cleanup
Py_PROTO((void));
52 int PyImport_ImportFrozenModule
Py_PROTO((char *));
54 extern PyObject
*_PyImport_FindExtension
Py_PROTO((char *, char *));
55 extern PyObject
*_PyImport_FixupExtension
Py_PROTO((char *, char *));
58 #include <kernel/image.h>
59 extern image_id
PyImport_BeImageID( char *name
);
67 extern DL_IMPORT(struct _inittab
*) PyImport_Inittab
;
69 extern int PyImport_AppendInittab
Py_PROTO((char *name
, void (*initfunc
)()));
70 extern int PyImport_ExtendInittab
Py_PROTO((struct _inittab
*newtab
));
78 /* Embedding apps may change this pointer to point to their favorite
79 collection of frozen modules: */
81 extern DL_IMPORT(struct _frozen
*) PyImport_FrozenModules
;
86 #endif /* !Py_IMPORT_H */