diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2018-10-28 15:02:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 15:02:17 (GMT) |
commit | 49c75a8086c3df9add0779d2479b8f09b95cdf3b (patch) | |
tree | 85cc8a1eb5d6a8140a69037cdf9ab11c3ecc601f /Include/object.h | |
parent | 6015cc50bc38b9e920ce4986ee10658eaa14f561 (diff) | |
download | cpython-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 'Include/object.h')
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index 2809d3a..7b07d7d 100644 --- a/Include/object.h +++ b/Include/object.h @@ -752,10 +752,10 @@ PyAPI_FUNC(void) _PyDebug_PrintTotalRefs(void); #endif /* Py_REF_DEBUG */ #ifdef COUNT_ALLOCS -PyAPI_FUNC(void) inc_count(PyTypeObject *); -PyAPI_FUNC(void) dec_count(PyTypeObject *); -#define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP)) -#define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP)) +PyAPI_FUNC(void) _Py_inc_count(PyTypeObject *); +PyAPI_FUNC(void) _Py_dec_count(PyTypeObject *); +#define _Py_INC_TPALLOCS(OP) _Py_inc_count(Py_TYPE(OP)) +#define _Py_INC_TPFREES(OP) _Py_dec_count(Py_TYPE(OP)) #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees-- #define _Py_COUNT_ALLOCS_COMMA , #else |