diff Python/traceback.c @ 20618:57b51966a4f1 legacy-trunk

Removed two pointless and obfuscating macros.
author Tim Peters <tim.peters@gmail.com>
date Mon, 22 Oct 2001 19:34:09 +0000
parents 6f6f965c5e2d
children 4fb7727e4f47
line wrap: on
line diff
--- a/Python/traceback.c	Mon Oct 22 18:41:51 2001 +0000
+++ b/Python/traceback.c	Mon Oct 22 19:34:09 2001 +0000
@@ -42,10 +42,7 @@
 	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 @@
 		   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 @@
 	int limit = 1000;
 	if (v == NULL)
 		return 0;
-	if (!is_tracebackobject(v)) {
+	if (!PyTraceBack_Check(v)) {
 		PyErr_BadInternalCall();
 		return -1;
 	}