File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 10
10
#define PY_SSIZE_T_CLEAN
11
11
#include "Python.h"
12
12
#include "_iomodule.h"
13
- #include "pycore_moduleobject.h" // _PyModule_GetState()
14
13
#include "pycore_pystate.h" // _PyInterpreterState_GET()
15
14
16
15
#ifdef HAVE_SYS_TYPES_H
@@ -559,14 +558,6 @@ PyNumber_AsOff_t(PyObject *item, PyObject *err)
559
558
return result ;
560
559
}
561
560
562
- static inline _PyIO_State *
563
- get_io_state (PyObject * module )
564
- {
565
- void * state = _PyModule_GetState (module );
566
- assert (state != NULL );
567
- return (_PyIO_State * )state ;
568
- }
569
-
570
561
_PyIO_State *
571
562
_PyIO_get_module_state (void )
572
563
{
Original file line number Diff line number Diff line change 4
4
5
5
#include "exports.h"
6
6
7
+ #include "pycore_moduleobject.h" // _PyModule_GetState()
7
8
#include "structmember.h"
8
9
9
10
/* ABCs */
@@ -153,6 +154,14 @@ typedef struct {
153
154
#define IO_MOD_STATE (mod ) ((_PyIO_State *)PyModule_GetState(mod))
154
155
#define IO_STATE () _PyIO_get_module_state()
155
156
157
+ static inline _PyIO_State *
158
+ get_io_state (PyObject * module )
159
+ {
160
+ void * state = _PyModule_GetState (module );
161
+ assert (state != NULL );
162
+ return (_PyIO_State * )state ;
163
+ }
164
+
156
165
extern _PyIO_State * _PyIO_get_module_state (void );
157
166
158
167
#ifdef MS_WINDOWS
You can’t perform that action at this time.
0 commit comments