Cleanup: use C++ compatible struct declarations for Python API

Also add m_base & ob_base comments.
This commit is contained in:
Campbell Barton
2023-07-16 17:43:31 +10:00
parent ee5501750c
commit d594954bf2
207 changed files with 1116 additions and 388 deletions

View File

@@ -445,7 +445,8 @@ static PyGetSetDef BPy_SVertex_getseters[] = {
/*-----------------------BPy_SVertex type definition ------------------------------*/
PyTypeObject SVertex_Type = {
/*tp_name*/ PyVarObject_HEAD_INIT(nullptr, 0) "SVertex",
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
/*tp_name*/ "SVertex",
/*tp_basicsize*/ sizeof(BPy_SVertex),
/*tp_itemsize*/ 0,
/*tp_dealloc*/ nullptr,
@@ -481,7 +482,7 @@ PyTypeObject SVertex_Type = {
/*tp_dictoffset*/ 0,
/*tp_init*/ (initproc)SVertex_init,
/*tp_alloc*/ nullptr,
nullptr, /*tp_new*/
/*tp_new*/ nullptr,
};
///////////////////////////////////////////////////////////////////////////////////////////