mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +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
|
@ -1716,11 +1716,14 @@ _Py_GetObjects(PyObject *self, PyObject *args)
|
|||
|
||||
#endif
|
||||
|
||||
|
||||
/* Hack to force loading of cobject.o */
|
||||
PyTypeObject *_Py_cobject_hack = &PyCObject_Type;
|
||||
|
||||
|
||||
/* Hack to force loading of pycapsule.o */
|
||||
PyTypeObject *_PyCapsule_hack = &PyCapsule_Type;
|
||||
|
||||
|
||||
/* Hack to force loading of abstract.o */
|
||||
Py_ssize_t (*_Py_abstract_hack)(PyObject *) = PyObject_Size;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue