moduleobject.h 2.07 KB
Newer Older
1 2 3 4 5 6
#ifndef Py_MODULEOBJECT_H
#define Py_MODULEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

7
/***********************************************************
Guido van Rossum's avatar
Guido van Rossum committed
8 9
Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
The Netherlands.
10 11 12

                        All Rights Reserved

13 14
Permission to use, copy, modify, and distribute this software and its
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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Centrum or CWI or Corporation for National Research Initiatives or
CNRI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

While CWI is the initial source for this software, a modified version
is made available by the Corporation for National Research Initiatives
(CNRI) at the Internet address ftp://ftp.python.org.

STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
35 36 37

******************************************************************/

Guido van Rossum's avatar
Guido van Rossum committed
38 39
/* Module object interface */

40
extern DL_IMPORT(PyTypeObject) PyModule_Type;
Guido van Rossum's avatar
Guido van Rossum committed
41

42
#define PyModule_Check(op) ((op)->ob_type == &PyModule_Type)
Guido van Rossum's avatar
Guido van Rossum committed
43

44 45 46
extern DL_IMPORT(PyObject *) PyModule_New Py_PROTO((char *));
extern DL_IMPORT(PyObject *) PyModule_GetDict Py_PROTO((PyObject *));
extern DL_IMPORT(char *) PyModule_GetName Py_PROTO((PyObject *));
47
extern DL_IMPORT(char *) PyModule_GetFilename Py_PROTO((PyObject *));
48
extern DL_IMPORT(void) _PyModule_Clear Py_PROTO((PyObject *));
49 50 51 52 53

#ifdef __cplusplus
}
#endif
#endif /* !Py_MODULEOBJECT_H */