mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
add a replacement API for PyCObject, PyCapsule #5630
All stdlib modules with C-APIs now use this. Patch by Larry Hastings
This commit is contained in:
parent
c679fd8efc
commit
b173f7853e
37 changed files with 943 additions and 149 deletions
|
|
@ -209,6 +209,19 @@ EXPORTS
|
|||
"PyInstance_Type"
|
||||
"PyMethod_Type"
|
||||
|
||||
; From python26_s.lib(capsule)
|
||||
"PyCapsule_GetContext"
|
||||
"PyCapsule_GetDestructor"
|
||||
"PyCapsule_GetName"
|
||||
"PyCapsule_GetPointer"
|
||||
"PyCapsule_Import"
|
||||
"PyCapsule_IsValid"
|
||||
"PyCapsule_New"
|
||||
"PyCapsule_SetContext"
|
||||
"PyCapsule_SetDestructor"
|
||||
"PyCapsule_SetName"
|
||||
"PyCapsule_SetPointer"
|
||||
|
||||
; From python26_s.lib(cobject)
|
||||
"PyCObject_FromVoidPtr"
|
||||
"PyCObject_FromVoidPtrAndDesc"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ DATA MULTIPLE NONSHARED
|
|||
EXPORTS
|
||||
; Data
|
||||
PyCFunction_Type
|
||||
PyCapsule_Type
|
||||
PyCObject_Type
|
||||
PyClass_Type
|
||||
PyCode_Type
|
||||
|
|
@ -73,7 +74,7 @@ EXPORTS
|
|||
_Py_TrueStruct
|
||||
_Py_ZeroStruct
|
||||
_Py_abstract_hack
|
||||
_Py_cobject_hack
|
||||
_Py_capsule_hack
|
||||
_Py_re_syntax
|
||||
_Py_re_syntax_table
|
||||
|
||||
|
|
@ -87,6 +88,17 @@ EXPORTS
|
|||
PyCFunction_GetFunction
|
||||
PyCFunction_GetSelf
|
||||
PyCFunction_New
|
||||
PyCapsule_GetContext
|
||||
PyCapsule_GetDestructor
|
||||
PyCapsule_GetName
|
||||
PyCapsule_GetPointer
|
||||
PyCapsule_Import
|
||||
PyCapsule_IsValid
|
||||
PyCapsule_New
|
||||
PyCapsule_SetContext
|
||||
PyCapsule_SetDestructor
|
||||
PyCapsule_SetName
|
||||
PyCapsule_SetPointer
|
||||
PyCObject_AsVoidPtr
|
||||
PyCObject_FromVoidPtrAndDesc
|
||||
PyCObject_FromVoidPtr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue