summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-12 21:31:32 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-12 21:31:32 (GMT)
commitd86b38003d881ac7955c2ab3ce0ed9bea4a541fc (patch)
tree2af10e193adee0e0811b6a60ee52b5c3effc4247 /Include
parentf67a57efc45404666a953461a124e66ad4e92850 (diff)
downloadcpython-d86b38003d881ac7955c2ab3ce0ed9bea4a541fc.zip
cpython-d86b38003d881ac7955c2ab3ce0ed9bea4a541fc.tar.gz
cpython-d86b38003d881ac7955c2ab3ce0ed9bea4a541fc.tar.bz2
Added extern declarations for reference count admin debug functions.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/Include/object.h b/Include/object.h
index 782b57c..dcb2383 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -292,15 +292,22 @@ environment the global variable trick is not safe.)
#endif
#endif
+#ifdef Py_TRACE_REFS
+extern void _Py_Dealloc Py_PROTO((PyObject *));
+extern void _Py_NewReference Py_PROTO((PyObject *));
+extern void _Py_ForgetReference Py_PROTO((PyObject *));
+extern void _Py_PrintReferences Py_PROTO((FILE *));
+#endif
+
#ifndef Py_TRACE_REFS
#ifdef COUNT_ALLOCS
#define _Py_Dealloc(op) ((op)->ob_type->tp_free++, (*(op)->ob_type->tp_dealloc)((PyObject *)(op)))
#define _Py_ForgetReference(op) ((op)->ob_type->tp_free++)
-#else
+#else /* !COUNT_ALLOCS */
#define _Py_Dealloc(op) (*(op)->ob_type->tp_dealloc)((PyObject *)(op))
#define _Py_ForgetReference(op) /*empty*/
-#endif
-#endif
+#endif /* !COUNT_ALLOCS */
+#endif /* !Py_TRACE_REFS */
#ifdef COUNT_ALLOCS
extern void inc_count Py_PROTO((PyTypeObject *));