Cleanup: remove redundant struct qualifiers

This commit is contained in:
Campbell Barton
2023-06-03 08:36:28 +10:00
parent b347346ca7
commit 74dd0ed09e
669 changed files with 3176 additions and 3528 deletions

View File

@@ -528,7 +528,7 @@ int EXPP_VectorsAreEqual(const float *vecA, const float *vecB, int size, int flo
}
#ifndef MATH_STANDALONE
PyObject *mathutils_dynstr_to_py(struct DynStr *ds)
PyObject *mathutils_dynstr_to_py(DynStr *ds)
{
const int ds_len = BLI_dynstr_get_len(ds); /* space for \0 */
char *ds_buf = PyMem_Malloc(ds_len + 1);
@@ -767,11 +767,11 @@ PyObject *_BaseMathObject_new_impl(PyTypeObject *root_type, PyTypeObject *base_t
}
/*----------------------------MODULE INIT-------------------------*/
static struct PyMethodDef M_Mathutils_methods[] = {
static PyMethodDef M_Mathutils_methods[] = {
{NULL, NULL, 0, NULL},
};
static struct PyModuleDef M_Mathutils_module_def = {
static PyModuleDef M_Mathutils_module_def = {
PyModuleDef_HEAD_INIT,
/*m_name*/ "mathutils",
/*m_doc*/ M_Mathutils_doc,

View File

@@ -1053,7 +1053,7 @@ static PyGetSetDef Color_getseters[] = {
/** \name Color Type: Method Definitions
* \{ */
static struct PyMethodDef Color_methods[] = {
static PyMethodDef Color_methods[] = {
{"copy", (PyCFunction)Color_copy, METH_NOARGS, Color_copy_doc},
{"__copy__", (PyCFunction)Color_copy, METH_NOARGS, Color_copy_doc},
{"__deepcopy__", (PyCFunction)Color_deepcopy, METH_VARARGS, Color_copy_doc},

View File

@@ -749,7 +749,7 @@ static PyGetSetDef Euler_getseters[] = {
/** \name Euler Type: Method Definitions
* \{ */
static struct PyMethodDef Euler_methods[] = {
static PyMethodDef Euler_methods[] = {
{"zero", (PyCFunction)Euler_zero, METH_NOARGS, Euler_zero_doc},
{"to_matrix", (PyCFunction)Euler_to_matrix, METH_NOARGS, Euler_to_matrix_doc},
{"to_quaternion", (PyCFunction)Euler_to_quaternion, METH_NOARGS, Euler_to_quaternion_doc},

View File

@@ -3254,7 +3254,7 @@ static PyGetSetDef Matrix_getseters[] = {
/** \name Matrix Type: Method Definitions
* \{ */
static struct PyMethodDef Matrix_methods[] = {
static PyMethodDef Matrix_methods[] = {
/* Derived values. */
{"determinant", (PyCFunction)Matrix_determinant, METH_NOARGS, Matrix_determinant_doc},
{"decompose", (PyCFunction)Matrix_decompose, METH_NOARGS, Matrix_decompose_doc},

View File

@@ -1605,7 +1605,7 @@ static PyGetSetDef Quaternion_getseters[] = {
/** \name Quaternion Type: Method Definitions
* \{ */
static struct PyMethodDef Quaternion_methods[] = {
static PyMethodDef Quaternion_methods[] = {
/* In place only. */
{"identity", (PyCFunction)Quaternion_identity, METH_NOARGS, Quaternion_identity_doc},
{"negate", (PyCFunction)Quaternion_negate, METH_NOARGS, Quaternion_negate_doc},

View File

@@ -3135,7 +3135,7 @@ static PyGetSetDef Vector_getseters[] = {
/** \name Vector Type: Method Definitions
* \{ */
static struct PyMethodDef Vector_methods[] = {
static PyMethodDef Vector_methods[] = {
/* Class Methods */
{"Fill", (PyCFunction)C_Vector_Fill, METH_VARARGS | METH_CLASS, C_Vector_Fill_doc},
{"Range", (PyCFunction)C_Vector_Range, METH_VARARGS | METH_CLASS, C_Vector_Range_doc},

View File

@@ -754,7 +754,7 @@ static PyObject *C_BVHTree_FromPolygons(PyObject * /*cls*/, PyObject *args, PyOb
/* ngon support (much more involved) */
const uint polys_len = uint(PySequence_Fast_GET_SIZE(py_tris_fast));
struct PolyLink {
struct PolyLink *next;
PolyLink *next;
uint len;
uint poly[0];
} *plink_first = nullptr, **p_plink_prev = &plink_first, *plink = nullptr;

View File

@@ -1827,7 +1827,7 @@ static PyMethodDef M_Geometry_methods[] = {
{NULL, NULL, 0, NULL},
};
static struct PyModuleDef M_Geometry_module_def = {
static PyModuleDef M_Geometry_module_def = {
PyModuleDef_HEAD_INIT,
/*m_name*/ "mathutils.geometry",
/*m_doc*/ M_Geometry_doc,

View File

@@ -90,7 +90,7 @@ static PyMethodDef M_Interpolate_methods[] = {
{NULL, NULL, 0, NULL},
};
static struct PyModuleDef M_Interpolate_module_def = {
static PyModuleDef M_Interpolate_module_def = {
PyModuleDef_HEAD_INIT,
/*m_name*/ "mathutils.interpolate",
/*m_doc*/ M_Interpolate_doc,

View File

@@ -404,7 +404,7 @@ PyTypeObject PyKDTree_Type = {
/*tp_weaklistoffset*/ 0,
/*tp_iter*/ NULL,
/*tp_iternext*/ NULL,
/*tp_methods*/ (struct PyMethodDef *)PyKDTree_methods,
/*tp_methods*/ (PyMethodDef *)PyKDTree_methods,
/*tp_members*/ NULL,
/*tp_getset*/ NULL,
/*tp_base*/ NULL,
@@ -429,7 +429,7 @@ PyTypeObject PyKDTree_Type = {
};
PyDoc_STRVAR(py_kdtree_doc, "Generic 3-dimensional kd-tree to perform spatial searches.");
static struct PyModuleDef kdtree_moduledef = {
static PyModuleDef kdtree_moduledef = {
PyModuleDef_HEAD_INIT,
/*m_name*/ "mathutils.kdtree",
/*m_doc*/ py_kdtree_doc,

View File

@@ -1098,7 +1098,7 @@ static PyMethodDef M_Noise_methods[] = {
{NULL, NULL, 0, NULL},
};
static struct PyModuleDef M_Noise_module_def = {
static PyModuleDef M_Noise_module_def = {
PyModuleDef_HEAD_INIT,
/*m_name*/ "mathutils.noise",
/*m_doc*/ M_Noise_doc,