diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 (GMT) |
commit | e93237dfcc4ee4feee62adafb4e7899487ca864b (patch) | |
tree | b78abc265e7fb10639492f62e4ffd0ce1bcc67af /Modules/_curses_panel.c | |
parent | d586559c31b77938b514cec99f2f8b431a34dff5 (diff) | |
download | cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.zip cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.gz cpython-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.bz2 |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Diffstat (limited to 'Modules/_curses_panel.c')
-rw-r--r-- | Modules/_curses_panel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c index 5eb4cf8..6831473 100644 --- a/Modules/_curses_panel.c +++ b/Modules/_curses_panel.c @@ -56,7 +56,7 @@ typedef struct { PyTypeObject PyCursesPanel_Type; -#define PyCursesPanel_Check(v) (Py_Type(v) == &PyCursesPanel_Type) +#define PyCursesPanel_Check(v) (Py_TYPE(v) == &PyCursesPanel_Type) /* Some helper functions. The problem is that there's always a window associated with a panel. To ensure that Python's GC doesn't pull @@ -457,7 +457,7 @@ init_curses_panel(void) PyObject *m, *d, *v; /* Initialize object type */ - Py_Type(&PyCursesPanel_Type) = &PyType_Type; + Py_TYPE(&PyCursesPanel_Type) = &PyType_Type; import_curses(); |