mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
This function is signal safe. */
|
||||
|
||||
PyAPI_FUNC(void) _Py_DumpTraceback(
|
||||
extern void _Py_DumpTraceback(
|
||||
int fd,
|
||||
PyThreadState *tstate);
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
|
|||
|
||||
This function is signal safe. */
|
||||
|
||||
PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
|
||||
extern const char* _Py_DumpTracebackThreads(
|
||||
int fd,
|
||||
PyInterpreterState *interp,
|
||||
PyThreadState *current_tstate);
|
||||
|
|
@ -64,23 +64,23 @@ PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
|
|||
string which is not ready (PyUnicode_WCHAR_KIND).
|
||||
|
||||
This function is signal safe. */
|
||||
PyAPI_FUNC(void) _Py_DumpASCII(int fd, PyObject *text);
|
||||
extern void _Py_DumpASCII(int fd, PyObject *text);
|
||||
|
||||
/* Format an integer as decimal into the file descriptor fd.
|
||||
|
||||
This function is signal safe. */
|
||||
PyAPI_FUNC(void) _Py_DumpDecimal(
|
||||
extern void _Py_DumpDecimal(
|
||||
int fd,
|
||||
size_t value);
|
||||
|
||||
/* Format an integer as hexadecimal with width digits into fd file descriptor.
|
||||
The function is signal safe. */
|
||||
PyAPI_FUNC(void) _Py_DumpHexadecimal(
|
||||
extern void _Py_DumpHexadecimal(
|
||||
int fd,
|
||||
uintptr_t value,
|
||||
Py_ssize_t width);
|
||||
|
||||
PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(
|
||||
extern PyObject* _PyTraceBack_FromFrame(
|
||||
PyObject *tb_next,
|
||||
PyFrameObject *frame);
|
||||
|
||||
|
|
@ -89,11 +89,11 @@ PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(
|
|||
|
||||
/* Write the traceback tb to file f. Prefix each line with
|
||||
indent spaces followed by the margin (if it is not NULL). */
|
||||
PyAPI_FUNC(int) _PyTraceBack_Print_Indented(
|
||||
extern int _PyTraceBack_Print_Indented(
|
||||
PyObject *tb, int indent, const char* margin,
|
||||
const char *header_margin, const char *header, PyObject *f);
|
||||
PyAPI_FUNC(int) _Py_WriteIndentedMargin(int, const char*, PyObject *);
|
||||
PyAPI_FUNC(int) _Py_WriteIndent(int, PyObject *);
|
||||
extern int _Py_WriteIndentedMargin(int, const char*, PyObject *);
|
||||
extern int _Py_WriteIndent(int, PyObject *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue