summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_traceback.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-25 02:25:45 (GMT)
committerGitHub <noreply@github.com>2023-07-25 02:25:45 (GMT)
commit0d0520af834dc92035d54d302e67f50f86353d41 (patch)
tree27598cee9e498b9c604e1f45286bcfdc4a3129ea /Include/internal/pycore_traceback.h
parent5a61692c6c334c017248bf3d8bb6422ff7b958e8 (diff)
downloadcpython-0d0520af834dc92035d54d302e67f50f86353d41.zip
cpython-0d0520af834dc92035d54d302e67f50f86353d41.tar.gz
cpython-0d0520af834dc92035d54d302e67f50f86353d41.tar.bz2
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()
Diffstat (limited to 'Include/internal/pycore_traceback.h')
-rw-r--r--Include/internal/pycore_traceback.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index c393b2c..21fb4a2 100644
--- a/Include/internal/pycore_traceback.h
+++ b/Include/internal/pycore_traceback.h
@@ -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
}