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:
Nicolas Roche
2020-05-25 09:38:33 +00:00
parent 092c3262db
commit 74d32011ca
2 changed files with 12 additions and 13 deletions

View File

@@ -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)
{