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 /Python/pylifecycle.c | |
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 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index ec39500..f1579c7 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -929,7 +929,7 @@ Py_Initialize(void) #ifdef COUNT_ALLOCS -extern void dump_counts(FILE*); +extern void _Py_dump_counts(FILE*); #endif /* Flush stdout and stderr */ @@ -1112,7 +1112,7 @@ Py_FinalizeEx(void) /* Debugging stuff */ #ifdef COUNT_ALLOCS - dump_counts(stderr); + _Py_dump_counts(stderr); #endif /* dump hash stats */ _PyHash_Fini(); |