summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c2
-rw-r--r--Objects/setobject.c10
2 files changed, 3 insertions, 9 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 81d6d4b838..0561e09f86 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -22,7 +22,7 @@ _Py_GetRefTotal(void)
o = _PyDict_Dummy();
if (o != NULL)
total -= o->ob_refcnt;
- o = _PySet_Dummy();
+ o = _PySet_Dummy;
if (o != NULL)
total -= o->ob_refcnt;
return total;
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 8a855a3bd9..1ad78c4deb 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -29,18 +29,12 @@ set_key_error(PyObject *arg)
#define PERTURB_SHIFT 5
/* Object used as dummy key to fill deleted entries */
-
static PyObject _dummy_struct;
#define dummy (&_dummy_struct)
-#ifdef Py_REF_DEBUG
-PyObject *
-_PySet_Dummy(void)
-{
- return dummy;
-}
-#endif
+/* Exported for the gdb plugin's benefit. */
+PyObject *_PySet_Dummy = dummy;
#define INIT_NONZERO_SET_SLOTS(so) do { \
(so)->table = (so)->smalltable; \