summaryrefslogtreecommitdiff
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-19 02:45:37 +0000
committerChristian Heimes <christian@cheimes.de>2007-12-19 02:45:37 +0000
commit90aa7646affbaee9628ca6ea6a702aec17b3b550 (patch)
treee820962e9658a92c7147b686f8aa88c7658c5949 /Modules/_lsprof.c
parent99170a5dbf4cfee78b578672b6821e855f92594b (diff)
downloadcpython-git-90aa7646affbaee9628ca6ea6a702aec17b3b550.tar.gz
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 1707679e6e..e0446ecef9 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -120,7 +120,7 @@ typedef struct {
static PyTypeObject PyProfiler_Type;
#define PyProfiler_Check(op) PyObject_TypeCheck(op, &PyProfiler_Type)
-#define PyProfiler_CheckExact(op) (Py_Type(op) == &PyProfiler_Type)
+#define PyProfiler_CheckExact(op) (Py_TYPE(op) == &PyProfiler_Type)
/*** External Timers ***/
@@ -207,7 +207,7 @@ normalizeUserObj(PyObject *obj)
PyObject *self = fn->m_self;
PyObject *name = PyUnicode_FromString(fn->m_ml->ml_name);
if (name != NULL) {
- PyObject *mo = _PyType_Lookup(Py_Type(self), name);
+ PyObject *mo = _PyType_Lookup(Py_TYPE(self), name);
Py_XINCREF(mo);
Py_DECREF(name);
if (mo != NULL) {
@@ -756,7 +756,7 @@ profiler_dealloc(ProfilerObject *op)
flush_unmatched(op);
clearEntries(op);
Py_XDECREF(op->externalTimer);
- Py_Type(op)->tp_free(op);
+ Py_TYPE(op)->tp_free(op);
}
static int