summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/menu/_Menumodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/menu/_Menumodule.c')
-rw-r--r--Mac/Modules/menu/_Menumodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c
index 3e0dfd8..85dde5a 100644
--- a/Mac/Modules/menu/_Menumodule.c
+++ b/Mac/Modules/menu/_Menumodule.c
@@ -57,7 +57,7 @@ static PyObject *Menu_Error;
PyTypeObject Menu_Type;
-#define MenuObj_Check(x) (Py_Type(x) == &Menu_Type || PyObject_TypeCheck((x), &Menu_Type))
+#define MenuObj_Check(x) (Py_TYPE(x) == &Menu_Type || PyObject_TypeCheck((x), &Menu_Type))
typedef struct MenuObject {
PyObject_HEAD
@@ -87,7 +87,7 @@ int MenuObj_Convert(PyObject *v, MenuHandle *p_itself)
static void MenuObj_dealloc(MenuObject *self)
{
/* Cleanup of self->ob_itself goes here */
- Py_Type(self)->tp_free((PyObject *)self);
+ Py_TYPE(self)->tp_free((PyObject *)self);
}
static PyObject *MenuObj_DisposeMenu(MenuObject *_self, PyObject *_args)
@@ -3455,7 +3455,7 @@ void init_Menu(void)
if (Menu_Error == NULL ||
PyDict_SetItemString(d, "Error", Menu_Error) != 0)
return;
- Py_Type(&Menu_Type) = &PyType_Type;
+ Py_TYPE(&Menu_Type) = &PyType_Type;
if (PyType_Ready(&Menu_Type) < 0) return;
Py_INCREF(&Menu_Type);
PyModule_AddObject(m, "Menu", (PyObject *)&Menu_Type);