bpo-38353: Fix compiler warning in internal headers (GH-16573)

Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid
a warning on typedef re-definition.
This commit is contained in:
Victor Stinner 2019-10-04 02:21:05 +02:00 committed by GitHub
parent c515b573af
commit e982d8b64f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions

View file

@ -9,7 +9,7 @@ extern "C" {
#endif
/* Forward declaration */
typedef struct _is PyInterpreterState;
struct _is;
/* Write the Python traceback into the file 'fd'. For example:
@ -57,7 +57,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
int fd,
PyInterpreterState *interp,
struct _is *interp,
PyThreadState *current_tstate);
/* Write a Unicode object into the file descriptor fd. Encode the string to