8000 gh-103092: Ensure `_ctypes.c` static types are accessed via global state by neonene · Pull Request #113857 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103092: Ensure _ctypes.c static types are accessed via global state #113857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 22, 2024
Merged
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
move PyComError_Type to bottom
  • Loading branch information
neonene authored Jan 19, 2024
commit 93aa06012da371ce836dcc5318106f9a810eb56b
6 changes: 3 additions & 3 deletions Modules/_ctypes/ctypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ typedef struct {
PyTypeObject *PyCField_Type;
PyTypeObject *PyCThunk_Type;
PyTypeObject *PyCStgDict_Type;
#ifdef MS_WIN32
PyTypeObject *PyComError_Type;
#endif
PyTypeObject *StructParam_Type;
PyTypeObject *PyCStructType_Type;
PyTypeObject *UnionType_Type;
Expand All @@ -55,6 +52,9 @@ typedef struct {
PyTypeObject *Simple_Type;
PyTypeObject *PyCPointer_Type;
PyTypeObject *PyCFuncPtr_Type;
#ifdef MS_WIN32
PyTypeObject *PyComError_Type;
#endif
} ctypes_state;

extern ctypes_state global_state;
Expand Down
0