code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
|
||||
/* bmesh operator 'bmesh.ops.*' callable types
|
||||
* ******************************************* */
|
||||
PyTypeObject bmesh_op_Type;
|
||||
static PyTypeObject bmesh_op_Type;
|
||||
|
||||
static PyObject *bpy_bmesh_op_CreatePyObject(const char *opname)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ static PyGetSetDef bpy_bmesh_op_getseters[] = {
|
||||
/* Types
|
||||
* ===== */
|
||||
|
||||
PyTypeObject bmesh_op_Type = {
|
||||
static PyTypeObject bmesh_op_Type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"BMeshOpFunc", /* tp_name */
|
||||
sizeof(BPy_BMeshOpFunc), /* tp_basicsize */
|
||||
|
||||
@@ -310,7 +310,7 @@ static int mathutils_bmloopcol_set_index(BaseMathObject *bmo, int subtype, int i
|
||||
return mathutils_bmloopcol_set(bmo, subtype);
|
||||
}
|
||||
|
||||
Mathutils_Callback mathutils_bmloopcol_cb = {
|
||||
static Mathutils_Callback mathutils_bmloopcol_cb = {
|
||||
mathutils_bmloopcol_check,
|
||||
mathutils_bmloopcol_get,
|
||||
mathutils_bmloopcol_set,
|
||||
|
||||
@@ -5948,7 +5948,7 @@ PyTypeObject pyrna_func_Type = {
|
||||
static void pyrna_prop_collection_iter_dealloc(BPy_PropertyCollectionIterRNA *self);
|
||||
static PyObject *pyrna_prop_collection_iter_next(BPy_PropertyCollectionIterRNA *self);
|
||||
|
||||
PyTypeObject pyrna_prop_collection_iter_Type = {
|
||||
static PyTypeObject pyrna_prop_collection_iter_Type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"bpy_prop_collection_iter", /* tp_name */
|
||||
sizeof(BPy_PropertyCollectionIterRNA), /* tp_basicsize */
|
||||
|
||||
Reference in New Issue
Block a user