summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-10-28 15:02:17 (GMT)
committerGitHub <noreply@github.com>2018-10-28 15:02:17 (GMT)
commit49c75a8086c3df9add0779d2479b8f09b95cdf3b (patch)
tree85cc8a1eb5d6a8140a69037cdf9ab11c3ecc601f /Objects/tupleobject.c
parent6015cc50bc38b9e920ce4986ee10658eaa14f561 (diff)
downloadcpython-49c75a8086c3df9add0779d2479b8f09b95cdf3b.zip
cpython-49c75a8086c3df9add0779d2479b8f09b95cdf3b.tar.gz
cpython-49c75a8086c3df9add0779d2479b8f09b95cdf3b.tar.bz2
bpo-35064 prefix smelly symbols that appear with COUNT_ALLOCS with _Py_ (GH-10152)
Configuring python with ./configure --with-pydebug CFLAGS="-D COUNT_ALLOCS -O0" makes "make smelly" fail as some symbols were being exported without the "Py_" or "_Py" prefixes.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 2e32406..288f134 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -28,8 +28,8 @@ static PyTupleObject *free_list[PyTuple_MAXSAVESIZE];
static int numfree[PyTuple_MAXSAVESIZE];
#endif
#ifdef COUNT_ALLOCS
-Py_ssize_t fast_tuple_allocs;
-Py_ssize_t tuple_zero_allocs;
+Py_ssize_t _Py_fast_tuple_allocs;
+Py_ssize_t _Py_tuple_zero_allocs;
#endif
/* Debug statistic to count GC tracking of tuples.
@@ -89,7 +89,7 @@ PyTuple_New(Py_ssize_t size)
op = free_list[0];
Py_INCREF(op);
#ifdef COUNT_ALLOCS
- tuple_zero_allocs++;
+ _Py_tuple_zero_allocs++;
#endif
return (PyObject *) op;
}
@@ -97,7 +97,7 @@ PyTuple_New(Py_ssize_t size)
free_list[size] = (PyTupleObject *) op->ob_item[0];
numfree[size]--;
#ifdef COUNT_ALLOCS
- fast_tuple_allocs++;
+ _Py_fast_tuple_allocs++;
#endif
/* Inline PyObject_InitVar */
#ifdef Py_TRACE_REFS