diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2018-10-28 15:02:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 15:02:17 +0000 |
commit | 49c75a8086c3df9add0779d2479b8f09b95cdf3b (patch) | |
tree | 85cc8a1eb5d6a8140a69037cdf9ab11c3ecc601f /Python | |
parent | 6015cc50bc38b9e920ce4986ee10658eaa14f561 (diff) | |
download | cpython-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 'Python')
-rw-r--r-- | Python/pylifecycle.c | 4 | ||||
-rw-r--r-- | Python/sysmodule.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index ec39500d4c..f1579c781d 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(); diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 58ea60595c..f88b273e26 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1340,9 +1340,9 @@ size." static PyObject * sys_getcounts(PyObject *self) { - extern PyObject *get_counts(void); + extern PyObject *_Py_get_counts(void); - return get_counts(); + return _Py_get_counts(); } #endif |