diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:44:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-07 07:44:05 +0400 |
commit | 4f29aeeff2cfe1dbe0a12910932c48ee453a6de1 (patch) | |
tree | 90c7eb236f0610b8d172255581fd4ffd791d07e9 /source/blender/python | |
parent | f97a4bd25458fdc8da1a97f7b68a305c8ab35ff4 (diff) |
code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_ops.c | 4 | ||||
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_meshdata.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops.c b/source/blender/python/bmesh/bmesh_py_ops.c index 8826baf81b7..4fc0160bbd6 100644 --- a/source/blender/python/bmesh/bmesh_py_ops.c +++ b/source/blender/python/bmesh/bmesh_py_ops.c @@ -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 */ diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c index b8572baa7f9..06b11f02b2a 100644 --- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c @@ -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, diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 9f7c589630a..3cd030e9b08 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -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 */ |