Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
| }; | ||
|
|
||
| PyAPI_FUNC(_PyCrossInterpreterData *) _PyCrossInterpreterData_New(void); | ||
| PyAPI_FUNC(void) _PyCrossInterpreterData_Free(_PyCrossInterpreterData *data); |
There was a problem hiding this comment.
If you don't need one of these functions in shared libraries (stdlib extensions), you can replace PyAPI_FUNC() with extern.
Sorry, something went wrong.
There was a problem hiding this comment.
They're basically all used in _xxsubinterpretersmodule.c and _xxinterpchannelsmodule.c.
Sorry, something went wrong.
This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c.
This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h). @vstinner did this previously and I undid it. Now I'm re-doing it. :/
(This PR essentially only moves existing code between files.)