8000 gh-117142: ctypes: Migrate global vars to module state by neonene · Pull Request #117189 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117142: ctypes: Migrate global vars to module state #117189

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 12 commits into from
Mar 29, 2024
Prev Previous commit
Next Next commit
fix blank
  • Loading branch information
neonene committed Mar 25, 2024
commit 5767fc78927ada1e6b96f672989875a774521a52
4 changes: 2 additions & 2 deletions Modules/_ctypes/callproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ call_function(PyObject *self, PyObject *args)
}

ctypes_state *st = GLOBAL_STATE();
result = _ctypes_callproc(st,
result = _ctypes_callproc(st,
(PPROC)func,
arguments,
#ifdef MS_WIN32
Expand Down Expand Up @@ -1684,7 +1684,7 @@ call_cdeclfunction(PyObject *self, PyObject *args)
}

ctypes_state *st = GLOBAL_STATE();
result = _ctypes_callproc(st,
result = _ctypes_callproc(st,
(PPROC)func,
arguments,
#ifdef MS_WIN32
Expand Down
0