*/
struct _is {
- struct _is *next;
+ PyInterpreterState *next;
struct pythreads {
uint64_t next_unique_id;
/* The linked list of threads, newest first. */
- struct _ts *head;
+ PyThreadState *head;
/* Used in Modules/_threadmodule.c. */
long count;
/* Support for runtime thread stack size tuning.
*/
/* the initial PyInterpreterState.threads.head */
- struct _ts _initial_thread;
+ PyThreadState _initial_thread;
};
struct _xidregitem *next;
};
-PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(int64_t);
+PyAPI_FUNC(PyInterpreterState*) _PyInterpreterState_LookUpID(int64_t);
-PyAPI_FUNC(int) _PyInterpreterState_IDInitref(struct _is *);
-PyAPI_FUNC(int) _PyInterpreterState_IDIncref(struct _is *);
-PyAPI_FUNC(void) _PyInterpreterState_IDDecref(struct _is *);
+PyAPI_FUNC(int) _PyInterpreterState_IDInitref(PyInterpreterState *);
+PyAPI_FUNC(int) _PyInterpreterState_IDIncref(PyInterpreterState *);
+PyAPI_FUNC(void) _PyInterpreterState_IDDecref(PyInterpreterState *);
#ifdef __cplusplus
}
#include "pycore_atomic.h" /* _Py_atomic_address */
#include "pycore_gil.h" // struct _gil_runtime_state
#include "pycore_global_objects.h" // struct _Py_global_objects
-#include "pycore_interp.h" // struct _is
+#include "pycore_interp.h" // PyInterpreterState
#include "pycore_unicodeobject.h" // struct _Py_unicode_runtime_ids
# 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):
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