mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-107211: No longer export internal functions (3) (#107215)
No longer export these 14 internal C API functions: * _PySys_Audit() * _PySys_SetAttr() * _PyTraceBack_FromFrame() * _PyTraceBack_Print_Indented() * _PyUnicode_FormatAdvancedWriter() * _PyUnicode_ScanIdentifier() * _PyWarnings_Init() * _Py_DumpASCII() * _Py_DumpDecimal() * _Py_DumpHexadecimal() * _Py_DumpTraceback() * _Py_DumpTracebackThreads() * _Py_WriteIndent() * _Py_WriteIndentedMargin()
This commit is contained in:
parent
5a61692c6c
commit
0d0520af83
7 changed files with 30 additions and 23 deletions
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
PyAPI_FUNC(int) _PySys_Audit(
|
||||
extern int _PySys_Audit(
|
||||
PyThreadState *tstate,
|
||||
const char *event,
|
||||
const char *argFormat,
|
||||
|
|
@ -18,7 +18,7 @@ PyAPI_FUNC(int) _PySys_Audit(
|
|||
PyAPI_FUNC() to not export the symbol. */
|
||||
extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
|
||||
|
||||
PyAPI_FUNC(int) _PySys_SetAttr(PyObject *, PyObject *);
|
||||
extern int _PySys_SetAttr(PyObject *, PyObject *);
|
||||
|
||||
extern int _PySys_ClearAttrString(PyInterpreterState *interp,
|
||||
const char *name, int verbose);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue