summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-10-28 15:02:17 +0000
committerGitHub <noreply@github.com>2018-10-28 15:02:17 +0000
commit49c75a8086c3df9add0779d2479b8f09b95cdf3b (patch)
tree85cc8a1eb5d6a8140a69037cdf9ab11c3ecc601f /Objects/longobject.c
parent6015cc50bc38b9e920ce4986ee10658eaa14f561 (diff)
downloadcpython-git-49c75a8086c3df9add0779d2479b8f09b95cdf3b.tar.gz
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/longobject.c')
-rw-r--r--Objects/longobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index ab5ac3456b..26d6c53fa9 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -42,7 +42,7 @@ PyObject *_PyLong_One = NULL;
*/
static PyLongObject small_ints[NSMALLNEGINTS + NSMALLPOSINTS];
#ifdef COUNT_ALLOCS
-Py_ssize_t quick_int_allocs, quick_neg_int_allocs;
+Py_ssize_t _Py_quick_int_allocs, _Py_quick_neg_int_allocs;
#endif
static PyObject *
@@ -54,9 +54,9 @@ get_small_int(sdigit ival)
Py_INCREF(v);
#ifdef COUNT_ALLOCS
if (ival >= 0)
- quick_int_allocs++;
+ _Py_quick_int_allocs++;
else
- quick_neg_int_allocs++;
+ _Py_quick_neg_int_allocs++;
#endif
return v;
}