mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
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.
This commit is contained in:
parent
6015cc50bc
commit
49c75a8086
7 changed files with 31 additions and 31 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue