summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_traceback.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-10-04 00:21:05 (GMT)
committerGitHub <noreply@github.com>2019-10-04 00:21:05 (GMT)
commite982d8b64f5d358c578bfca5cdfe4524dbc74000 (patch)
treeda1c2c20db424c1b89595655b396a0bd000090bd /Include/internal/pycore_traceback.h
parentc515b573af1189fc46ddcd3323c53ed073b84848 (diff)
downloadcpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.zip
cpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.tar.gz
cpython-e982d8b64f5d358c578bfca5cdfe4524dbc74000.tar.bz2
bpo-38353: Fix compiler warning in internal headers (GH-16573)
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
Diffstat (limited to 'Include/internal/pycore_traceback.h')
-rw-r--r--Include/internal/pycore_traceback.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index 8e58184..99443d7 100644
--- a/Include/internal/pycore_traceback.h
+++ b/Include/internal/pycore_traceback.h
@@ -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