From a78baca8eb70be1e0781f53cef102841599aa2cf Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 12 Jan 1995 11:45:45 +0000 Subject: The great renaming, phase two: all header files have been updated to use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h". --- Include/moduleobject.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Include/moduleobject.h') diff --git a/Include/moduleobject.h b/Include/moduleobject.h index c9dc96dc8b..277f95d321 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -30,13 +30,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Module object interface */ -extern DL_IMPORT typeobject Moduletype; +extern DL_IMPORT PyTypeObject PyModule_Type; -#define is_moduleobject(op) ((op)->ob_type == &Moduletype) +#define PyModule_Check(op) ((op)->ob_type == &PyModule_Type) -extern object *newmoduleobject PROTO((char *)); -extern object *getmoduledict PROTO((object *)); -extern char *getmodulename PROTO((object *)); +extern PyObject *PyModule_New Py_PROTO((char *)); +extern PyObject *PyModule_GetDict Py_PROTO((PyObject *)); +extern char *PyModule_GetName Py_PROTO((PyObject *)); #ifdef __cplusplus } -- cgit v1.2.1