File tree Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,12 @@ struct atexit_state {
79
79
*/
80
80
struct _is {
81
81
82
- struct _is * next ;
82
+ PyInterpreterState * next ;
83
83
84
84
struct pythreads {
85
85
uint64_t next_unique_id ;
86
86
/* The linked list of threads, newest first. */
87
- struct _ts * head ;
87
+ PyThreadState * head ;
88
88
/* Used in Modules/_threadmodule.c. */
89
89
long count ;
90
90
/* Support for runtime thread stack size tuning.
@@ -190,7 +190,7 @@ struct _is {
190
190
*/
191
191
192
192
/* the initial PyInterpreterState.threads.head */
193
- struct _ts _initial_thread ;
193
+ PyThreadState _initial_thread ;
194
194
};
195
195
196
196
@@ -214,11 +214,11 @@ struct _xidregitem {
214
214
struct _xidregitem * next ;
215
215
};
216
216
217
- PyAPI_FUNC (struct _is * ) _PyInterpreterState_LookUpID (int64_t );
217
+ PyAPI_FUNC (PyInterpreterState * ) _PyInterpreterState_LookUpID (int64_t );
218
218
219
- PyAPI_FUNC (int ) _PyInterpreterState_IDInitref (struct _is * );
220
- PyAPI_FUNC (int ) _PyInterpreterState_IDIncref (struct _is * );
221
- PyAPI_FUNC (void ) _PyInterpreterState_IDDecref (struct _is * );
219
+ PyAPI_FUNC (int ) _PyInterpreterState_IDInitref (PyInterpreterState * );
220
+ PyAPI_FUNC (int ) _PyInterpreterState_IDIncref (PyInterpreterState * );
221
+ PyAPI_FUNC (void ) _PyInterpreterState_IDDecref (PyInterpreterState * );
222
222
223
223
#ifdef __cplusplus
224
224
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ extern "C" {
11
11
typedef struct {
12
12
PyObject_HEAD
13
13
PyObject * md_dict ;
14
- struct PyModuleDef * md_def ;
14
+ PyModuleDef * md_def ;
15
15
void * md_state ;
16
16
PyObject * md_weaklist ;
17
17
// for logging purposes after md_dict is cleared
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ extern void _PySignal_AfterFork(void);
172
172
PyAPI_FUNC (int ) _PyState_AddModule (
173
173
PyThreadState * tstate ,
174
174
PyObject * module ,
175
- struct PyModuleDef * def );
175
+ PyModuleDef * def );
176
176
177
177
178
178
PyAPI_FUNC (int ) _PyOS_InterruptOccurred (PyThreadState * tstate );
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ extern "C" {
11
11
#include "pycore_atomic.h" /* _Py_atomic_address */
12
12
#include "pycore_gil.h" // struct _gil_runtime_state
13
13
#include "pycore_global_objects.h" // struct _Py_global_objects
14
- #include "pycore_interp.h" // struct _is
14
+ #include "pycore_interp.h" // PyInterpreterState
15
15
#include "pycore_unicodeobject.h" // struct _Py_unicode_runtime_ids
16
16
17
17
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- /* Forward declaration */
12
- struct _is ;
13
-
14
11
/* Write the Python traceback into the file 'fd'. For example:
15
12
16
13
Traceback (most recent call first):
@@ -57,7 +54,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
57
54
58
55
PyAPI_FUNC (const char * ) _Py_DumpTracebackThreads (
59
56
int fd ,
60
- struct _is * interp ,
57
+ PyInterpreterState * interp ,
61
58
PyThreadState * current_tstate );
62
59
63
60
/* Write a Unicode object into the file descriptor fd. Encode the string to
You can’t perform that action at this time.
0 commit comments