From 84a9032cd3779e240f78ccf95b31822c4e7d0046 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 22 May 1996 16:34:47 +0000 Subject: [PATCH] TRACE_REFS -> Py_TRACE_REFS. Added disgusting hack to force loading of abstract.o. --- Objects/object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Objects/object.c b/Objects/object.c index fa35b80849a..747657cd22c 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -473,7 +473,7 @@ object NoObject = { }; -#ifdef TRACE_REFS +#ifdef Py_TRACE_REFS static object refchain = {&refchain, &refchain}; @@ -576,3 +576,7 @@ getobjects(self, args) /* Hack to force loading of cobject.o */ static PyTypeObject *cobject_hack = &PyCObject_Type; + + +/* Hack to force loading of abstract.o */ +static int (*abstract_hack) FPROTO((PyObject *)) = &PyObject_Length;