mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-101101: Unstable C API tier (PEP 689) (GH-101102)
This commit is contained in:
parent
c41af812c9
commit
6b2d7c0ddb
18 changed files with 358 additions and 29 deletions
|
@ -752,15 +752,15 @@ if check_impl_detail(cpython=True) and ctypes is not None:
|
|||
py = ctypes.pythonapi
|
||||
freefunc = ctypes.CFUNCTYPE(None,ctypes.c_voidp)
|
||||
|
||||
RequestCodeExtraIndex = py._PyEval_RequestCodeExtraIndex
|
||||
RequestCodeExtraIndex = py.PyUnstable_Eval_RequestCodeExtraIndex
|
||||
RequestCodeExtraIndex.argtypes = (freefunc,)
|
||||
RequestCodeExtraIndex.restype = ctypes.c_ssize_t
|
||||
|
||||
SetExtra = py._PyCode_SetExtra
|
||||
SetExtra = py.PyUnstable_Code_SetExtra
|
||||
SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp)
|
||||
SetExtra.restype = ctypes.c_int
|
||||
|
||||
GetExtra = py._PyCode_GetExtra
|
||||
GetExtra = py.PyUnstable_Code_GetExtra
|
||||
GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
|
||||
ctypes.POINTER(ctypes.c_voidp))
|
||||
GetExtra.restype = ctypes.c_int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue