bpo-45459: Use type names in the internal C API (GH-31669)

Replace "struct xxx" with "xxx" types in the internal C API.
This commit is contained in:
Victor Stinner 2022-03-03 23:08:07 +01:00 committed by GitHub
parent 0b63215bb1
commit 32f0c82717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 14 deletions

View file

@ -8,9 +8,6 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
/* Forward declaration */
struct _is;
/* Write the Python traceback into the file 'fd'. For example:
Traceback (most recent call first):
@ -57,7 +54,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
int fd,
struct _is *interp,
PyInterpreterState *interp,
PyThreadState *current_tstate);
/* Write a Unicode object into the file descriptor fd. Encode the string to