Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
struct _xi_state -> _PyXI_state_t
  • Loading branch information
ericsnowcurrently committed Nov 11, 2024
commit 8f29d80a94515f598ab4d6f9e90917ebf0995d23
4 changes: 2 additions & 2 deletions Include/internal/pycore_crossinterp.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ typedef struct {
_PyXIData_lookup_t data_lookup;
} _PyXI_global_state_t;

struct _xi_state {
typedef struct {
// heap types
_PyXIData_lookup_t data_lookup;

Expand All @@ -171,7 +171,7 @@ struct _xi_state {
// heap types
PyObject *PyExc_NotShareableError;
} exceptions;
};
} _PyXI_state_t;

extern PyStatus _PyXI_Init(PyInterpreterState *interp);
extern void _PyXI_Fini(PyInterpreterState *interp);
Expand Down
4 changes: 2 additions & 2 deletions Include/internal/pycore_interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {
#include "pycore_code.h" // struct callable_cache
#include "pycore_codecs.h" // struct codecs_state
#include "pycore_context.h" // struct _Py_context_state
#include "pycore_crossinterp.h" // struct _xi_state
#include "pycore_crossinterp.h" // _PyXI_state_t
#include "pycore_dict_state.h" // struct _Py_dict_state
#include "pycore_dtoa.h" // struct _dtoa_state
#include "pycore_exceptions.h" // struct _Py_exc_state
Expand Down Expand Up @@ -205,7 +205,7 @@ struct _is {
freefunc co_extra_freefuncs[MAX_CO_EXTRA_USERS];

/* cross-interpreter data and utils */
struct _xi_state xi;
_PyXI_state_t xi;

#ifdef HAVE_FORK
PyObject *before_forkers;
Expand Down