@@ -25,7 +25,7 @@ extern "C" {
2525
2626 This function is signal safe. */
2727
28- PyAPI_FUNC ( void ) _Py_DumpTraceback (
28+ extern void _Py_DumpTraceback (
2929 int fd ,
3030 PyThreadState * tstate );
3131
@@ -52,7 +52,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
5252
5353 This function is signal safe. */
5454
55- PyAPI_FUNC ( const char * ) _Py_DumpTracebackThreads (
55+ extern const char * _Py_DumpTracebackThreads (
5656 int fd ,
5757 PyInterpreterState * interp ,
5858 PyThreadState * current_tstate );
@@ -64,23 +64,23 @@ PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
6464 string which is not ready (PyUnicode_WCHAR_KIND).
6565
6666 This function is signal safe. */
67- PyAPI_FUNC ( void ) _Py_DumpASCII (int fd , PyObject * text );
67+ extern void _Py_DumpASCII (int fd , PyObject * text );
6868
6969/* Format an integer as decimal into the file descriptor fd.
7070
7171 This function is signal safe. */
72- PyAPI_FUNC ( void ) _Py_DumpDecimal (
72+ extern void _Py_DumpDecimal (
7373 int fd ,
7474 size_t value );
7575
7676/* Format an integer as hexadecimal with width digits into fd file descriptor.
7777 The function is signal safe. */
78- PyAPI_FUNC ( void ) _Py_DumpHexadecimal (
78+ extern void _Py_DumpHexadecimal (
7979 int fd ,
8080 uintptr_t value ,
8181 Py_ssize_t width );
8282
83- PyAPI_FUNC ( PyObject * ) _PyTraceBack_FromFrame (
83+ extern PyObject * _PyTraceBack_FromFrame (
8484 PyObject * tb_next ,
8585 PyFrameObject * frame );
8686
@@ -89,11 +89,11 @@ PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(
8989
9090/* Write the traceback tb to file f. Prefix each line with
9191 indent spaces followed by the margin (if it is not NULL). */
92- PyAPI_FUNC ( int ) _PyTraceBack_Print_Indented (
92+ extern int _PyTraceBack_Print_Indented (
9393 PyObject * tb , int indent , const char * margin ,
9494 const char * header_margin , const char * header , PyObject * f );
95- PyAPI_FUNC ( int ) _Py_WriteIndentedMargin (int , const char * , PyObject * );
96- PyAPI_FUNC ( int ) _Py_WriteIndent (int , PyObject * );
95+ extern int _Py_WriteIndentedMargin (int , const char * , PyObject * );
96+ extern int _Py_WriteIndent (int , PyObject * );
9797
9898#ifdef __cplusplus
9999}
0 commit comments