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/bmesh | |
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/bmesh')
-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 |
2 files changed, 3 insertions, 3 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, |