You've already forked gnatcoll-bindings
mirror of
https://github.com/AdaCore/gnatcoll-bindings.git
synced 2026-02-12 12:59:11 -08:00
Renames GetTypeObject into Py_TYPE.
This ensures function name maps to C API. Also renames Dummy type into PyObject_Opaque as the type will be used in other units. Part of S821-014 Change-Id: I14a2d05897480c4dbfb3f04a2fe45567d2385a7b
This commit is contained in:
@@ -335,6 +335,12 @@ ada_py_xdecref (PyObject* obj)
|
||||
Py_XDECREF (obj);
|
||||
}
|
||||
|
||||
PyTypeObject*
|
||||
__gnatcoll_py_type(PyObject *obj)
|
||||
{
|
||||
return (PyTypeObject*) (Py_TYPE (obj));
|
||||
}
|
||||
|
||||
int
|
||||
ada_pybasestring_check (PyObject* obj)
|
||||
{
|
||||
@@ -530,12 +536,6 @@ ada_pymethod_check (PyObject* obj)
|
||||
return PyMethod_Check (obj);
|
||||
}
|
||||
|
||||
PyTypeObject*
|
||||
ada_gettypeobject (PyObject* obj)
|
||||
{
|
||||
return (PyTypeObject*)(Py_TYPE(obj));
|
||||
}
|
||||
|
||||
char*
|
||||
ada_tp_name (PyTypeObject* obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user