summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-22 19:34:09 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-22 19:34:09 (GMT)
commitd7c3652aa73fefcb60c46b855244d81d4f684f19 (patch)
treefd1664a6d9e7c05cfa983d448f793e34ee37cefb /Python/traceback.c
parentcb7a6b5bf7eb25def865586544cc852e44b39339 (diff)
downloadcpython-d7c3652aa73fefcb60c46b855244d81d4f684f19.zip
cpython-d7c3652aa73fefcb60c46b855244d81d4f684f19.tar.gz
cpython-d7c3652aa73fefcb60c46b855244d81d4f684f19.tar.bz2
Removed two pointless and obfuscating macros.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index c17dbe2..539483d 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -42,10 +42,7 @@ tb_dealloc(tracebackobject *tb)
Py_TRASHCAN_SAFE_END(tb)
}
-#define Tracebacktype PyTraceBack_Type
-#define is_tracebackobject PyTraceBack_Check
-
-PyTypeObject Tracebacktype = {
+PyTypeObject PyTraceBack_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0,
"traceback",
@@ -67,12 +64,12 @@ newtracebackobject(tracebackobject *next, PyFrameObject *frame, int lasti,
int lineno)
{
tracebackobject *tb;
- if ((next != NULL && !is_tracebackobject(next)) ||
+ if ((next != NULL && !PyTraceBack_Check(next)) ||
frame == NULL || !PyFrame_Check(frame)) {
PyErr_BadInternalCall();
return NULL;
}
- tb = PyObject_NEW(tracebackobject, &Tracebacktype);
+ tb = PyObject_NEW(tracebackobject, &PyTraceBack_Type);
if (tb != NULL) {
Py_XINCREF(next);
tb->tb_next = next;
@@ -223,7 +220,7 @@ PyTraceBack_Print(PyObject *v, PyObject *f)
int limit = 1000;
if (v == NULL)
return 0;
- if (!is_tracebackobject(v)) {
+ if (!PyTraceBack_Check(v)) {
PyErr_BadInternalCall();
return -1;
}