diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-19 05:21:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-19 05:58:35 +0300 |
commit | 8a61ea7296f17428f062a840c560e08a5a2f72ea (patch) | |
tree | ae91204131c79d7c3aa9e951b3eb5d7a6968d5b8 /source/blender/python | |
parent | c59370bf643f6e85473c560c8f5edcf73cc36e8e (diff) |
Cleanup: add trailing commas
Prevents clang-format merging into a single line.
Diffstat (limited to 'source/blender/python')
22 files changed, 44 insertions, 44 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops.c b/source/blender/python/bmesh/bmesh_py_ops.c index 49e71da3bc3..3a4437b2be6 100644 --- a/source/blender/python/bmesh/bmesh_py_ops.c +++ b/source/blender/python/bmesh/bmesh_py_ops.c @@ -232,7 +232,7 @@ static PyTypeObject bmesh_op_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; @@ -350,7 +350,7 @@ static PyTypeObject bmesh_ops_fakemod_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyObject *BPyInit_bmesh_ops(void) diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c index 2a0f3817f35..45092e854ed 100644 --- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c @@ -334,7 +334,7 @@ static Mathutils_Callback mathutils_bmloopcol_cb = { mathutils_bmloopcol_get, mathutils_bmloopcol_set, mathutils_bmloopcol_get_index, - mathutils_bmloopcol_set_index + mathutils_bmloopcol_set_index, }; static void bm_init_types_bmloopcol(void) @@ -523,7 +523,7 @@ static PySequenceMethods bpy_bmdeformvert_as_sequence = { static PyMappingMethods bpy_bmdeformvert_as_mapping = { (lenfunc)bpy_bmdeformvert_len, (binaryfunc)bpy_bmdeformvert_subscript, - (objobjargproc)bpy_bmdeformvert_ass_subscript + (objobjargproc)bpy_bmdeformvert_ass_subscript, }; /* Methods diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 07c0f81b7ca..ad30b5ceb2a 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -533,7 +533,7 @@ static PySequenceMethods Buffer_SeqMethods = { static PyMappingMethods Buffer_AsMapping = { (lenfunc)Buffer_len, (binaryfunc)Buffer_subscript, - (objobjargproc)Buffer_ass_subscript + (objobjargproc)Buffer_ass_subscript, }; static void Buffer_dealloc(Buffer *self); diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 072c11b14e5..d6e4a3ac291 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -1520,7 +1520,7 @@ static int BPy_IDArray_ass_subscript(BPy_IDArray *self, PyObject *item, PyObject static PyMappingMethods BPy_IDArray_AsMapping = { (lenfunc)BPy_IDArray_Len, (binaryfunc)BPy_IDArray_subscript, - (objobjargproc)BPy_IDArray_ass_subscript + (objobjargproc)BPy_IDArray_ass_subscript, }; static int itemsize_by_idarray_type(int array_type) @@ -1640,7 +1640,7 @@ PyTypeObject BPy_IDArray_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; /*********** ID Property Group iterator ********/ diff --git a/source/blender/python/intern/bpy_app_icons.c b/source/blender/python/intern/bpy_app_icons.c index 12315a6e112..075e2f57ec4 100644 --- a/source/blender/python/intern/bpy_app_icons.c +++ b/source/blender/python/intern/bpy_app_icons.c @@ -160,7 +160,7 @@ static struct PyMethodDef M_AppIcons_methods[] = { METH_VARARGS | METH_KEYWORDS, bpy_app_icons_new_triangles_from_file_doc}, {"release", (PyCFunction)bpy_app_icons_release, METH_VARARGS | METH_KEYWORDS, bpy_app_icons_release_doc}, - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; static struct PyModuleDef M_AppIcons_module_def = { diff --git a/source/blender/python/intern/bpy_app_ocio.c b/source/blender/python/intern/bpy_app_ocio.c index 9997e6b87f1..546261f82fa 100644 --- a/source/blender/python/intern/bpy_app_ocio.c +++ b/source/blender/python/intern/bpy_app_ocio.c @@ -41,7 +41,7 @@ static PyStructSequence_Field app_ocio_info_fields[] = { {(char *)"supported", (char *)("Boolean, True when Blender is built with OpenColorIO support")}, {(char *)("version"), (char *)("The OpenColorIO version as a tuple of 3 numbers")}, {(char *)("version_string"), (char *)("The OpenColorIO version formatted as a string")}, - {NULL} + {NULL}, }; static PyStructSequence_Desc app_ocio_info_desc = { diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c index 2a5efc15b87..acb44f86f75 100644 --- a/source/blender/python/intern/bpy_app_translations.c +++ b/source/blender/python/intern/bpy_app_translations.c @@ -782,7 +782,7 @@ static PyTypeObject BlenderAppTranslationsType = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyObject *BPY_app_translations_struct(void) diff --git a/source/blender/python/intern/bpy_library_load.c b/source/blender/python/intern/bpy_library_load.c index 5c64a65fb58..b44e269e2c3 100644 --- a/source/blender/python/intern/bpy_library_load.c +++ b/source/blender/python/intern/bpy_library_load.c @@ -167,7 +167,7 @@ static PyTypeObject bpy_lib_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyDoc_STRVAR(bpy_lib_load_doc, diff --git a/source/blender/python/intern/bpy_msgbus.c b/source/blender/python/intern/bpy_msgbus.c index 101cc8b41a3..a1713bd7aae 100644 --- a/source/blender/python/intern/bpy_msgbus.c +++ b/source/blender/python/intern/bpy_msgbus.c @@ -377,7 +377,7 @@ static struct PyMethodDef BPy_msgbus_methods[] = { {"subscribe_rna", (PyCFunction)bpy_msgbus_subscribe_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_subscribe_rna_doc}, {"publish_rna", (PyCFunction)bpy_msgbus_publish_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_publish_rna_doc}, {"clear_by_owner", (PyCFunction)bpy_msgbus_clear_by_owner, METH_O, bpy_msgbus_clear_by_owner_doc}, - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; static struct PyModuleDef _bpy_msgbus_def = { diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index d3abaf43aef..56db0a604aa 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -438,7 +438,7 @@ static struct PyModuleDef bpy_ops_module = { NULL, -1, /* multiple "initialization" just copies the module dict. */ bpy_ops_methods, - NULL, NULL, NULL, NULL + NULL, NULL, NULL, NULL, }; PyObject *BPY_operator_module(void) diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index b7242680dca..206929a4271 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -3193,7 +3193,7 @@ static struct PyModuleDef props_module = { ".. note:: All parameters to these functions must be passed as keywords.\n", -1, /* multiple "initialization" just copies the module dict. */ props_methods, - NULL, NULL, NULL, NULL + NULL, NULL, NULL, NULL, }; PyObject *BPY_rna_props(void) diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index f25f007033f..0b89a6eaa55 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -513,7 +513,7 @@ static Mathutils_Callback mathutils_rna_array_cb = { (BaseMathGetFunc) mathutils_rna_vector_get, (BaseMathSetFunc) mathutils_rna_vector_set, (BaseMathGetIndexFunc) mathutils_rna_vector_get_index, - (BaseMathSetIndexFunc) mathutils_rna_vector_set_index + (BaseMathSetIndexFunc) mathutils_rna_vector_set_index, }; @@ -569,7 +569,7 @@ static Mathutils_Callback mathutils_rna_matrix_cb = { mathutils_rna_matrix_get, mathutils_rna_matrix_set, NULL, - NULL + NULL, }; static short pyrna_rotation_euler_order_get( @@ -5277,7 +5277,7 @@ static struct PyMethodDef pyrna_prop_methods[] = { }; static struct PyMethodDef pyrna_prop_array_methods[] = { - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; static struct PyMethodDef pyrna_prop_collection_methods[] = { @@ -5977,7 +5977,7 @@ PyTypeObject pyrna_struct_meta_idprop_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; @@ -6067,7 +6067,7 @@ PyTypeObject pyrna_struct_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; /*-----------------------BPy_PropertyRNA method def------------------------------*/ @@ -6152,7 +6152,7 @@ PyTypeObject pyrna_prop_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyTypeObject pyrna_prop_array_Type = { @@ -6235,7 +6235,7 @@ PyTypeObject pyrna_prop_array_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyTypeObject pyrna_prop_collection_Type = { @@ -6319,7 +6319,7 @@ PyTypeObject pyrna_prop_collection_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; /* only for add/remove/move methods */ @@ -6404,7 +6404,7 @@ static PyTypeObject pyrna_prop_collection_idprop_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; /*-----------------------BPy_PropertyRNA method def------------------------------*/ @@ -6489,7 +6489,7 @@ PyTypeObject pyrna_func_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; #ifdef USE_PYRNA_ITER @@ -6592,7 +6592,7 @@ static PyTypeObject pyrna_prop_collection_iter_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; static PyObject *pyrna_prop_collection_iter_CreatePyObject(PointerRNA *ptr, PropertyRNA *prop) @@ -8312,7 +8312,7 @@ PyDoc_STRVAR(pyrna_unregister_class_doc, " before unregistering.\n" ); PyMethodDef meth_bpy_unregister_class = { - "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc + "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc, }; static PyObject *pyrna_unregister_class(PyObject *UNUSED(self), PyObject *py_class) { diff --git a/source/blender/python/intern/bpy_utils_previews.c b/source/blender/python/intern/bpy_utils_previews.c index fed7c7210de..4734da4b1be 100644 --- a/source/blender/python/intern/bpy_utils_previews.c +++ b/source/blender/python/intern/bpy_utils_previews.c @@ -174,7 +174,7 @@ static struct PyModuleDef bpy_utils_previews_module = { bpy_utils_previews_doc, 0, bpy_utils_previews_methods, - NULL, NULL, NULL, NULL + NULL, NULL, NULL, NULL, }; diff --git a/source/blender/python/intern/bpy_utils_units.c b/source/blender/python/intern/bpy_utils_units.c index 1d1108e1af0..5a8b8606f74 100644 --- a/source/blender/python/intern/bpy_utils_units.c +++ b/source/blender/python/intern/bpy_utils_units.c @@ -301,7 +301,7 @@ static PyObject *bpyunits_to_string(PyObject *UNUSED(self), PyObject *args, PyOb static PyMethodDef bpyunits_methods[] = { {"to_value", (PyCFunction)bpyunits_to_value, METH_VARARGS | METH_KEYWORDS, bpyunits_to_value_doc}, {"to_string", (PyCFunction)bpyunits_to_string, METH_VARARGS | METH_KEYWORDS, bpyunits_to_string_doc}, - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; PyDoc_STRVAR(bpyunits_doc, @@ -314,7 +314,7 @@ static struct PyModuleDef bpyunits_module = { bpyunits_doc, -1, /* multiple "initialization" just copies the module dict. */ bpyunits_methods, - NULL, NULL, NULL, NULL + NULL, NULL, NULL, NULL, }; PyObject *BPY_utils_units(void) diff --git a/source/blender/python/mathutils/mathutils_Color.c b/source/blender/python/mathutils/mathutils_Color.c index e97ed095b24..be7889da0bd 100644 --- a/source/blender/python/mathutils/mathutils_Color.c +++ b/source/blender/python/mathutils/mathutils_Color.c @@ -403,7 +403,7 @@ static PySequenceMethods Color_SeqMethods = { static PyMappingMethods Color_AsMapping = { (lenfunc)Color_len, (binaryfunc)Color_subscript, - (objobjargproc)Color_ass_subscript + (objobjargproc)Color_ass_subscript, }; /* numeric */ diff --git a/source/blender/python/mathutils/mathutils_Euler.c b/source/blender/python/mathutils/mathutils_Euler.c index 9046bdc1aa4..991314c23a4 100644 --- a/source/blender/python/mathutils/mathutils_Euler.c +++ b/source/blender/python/mathutils/mathutils_Euler.c @@ -602,7 +602,7 @@ static PySequenceMethods Euler_SeqMethods = { static PyMappingMethods Euler_AsMapping = { (lenfunc)Euler_len, (binaryfunc)Euler_subscript, - (objobjargproc)Euler_ass_subscript + (objobjargproc)Euler_ass_subscript, }; /* euler axis, euler.x/y/z */ diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index c033a990901..04d4fb53895 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -158,7 +158,7 @@ Mathutils_Callback mathutils_matrix_row_cb = { mathutils_matrix_row_get, mathutils_matrix_row_set, mathutils_matrix_row_get_index, - mathutils_matrix_row_set_index + mathutils_matrix_row_set_index, }; @@ -250,7 +250,7 @@ Mathutils_Callback mathutils_matrix_col_cb = { mathutils_matrix_col_get, mathutils_matrix_col_set, mathutils_matrix_col_get_index, - mathutils_matrix_col_set_index + mathutils_matrix_col_set_index, }; @@ -327,7 +327,7 @@ Mathutils_Callback mathutils_matrix_translation_cb = { mathutils_matrix_translation_get, mathutils_matrix_translation_set, mathutils_matrix_translation_get_index, - mathutils_matrix_translation_set_index + mathutils_matrix_translation_set_index, }; @@ -2652,7 +2652,7 @@ static int Matrix_ass_subscript(MatrixObject *self, PyObject *item, PyObject *va static PyMappingMethods Matrix_AsMapping = { (lenfunc)Matrix_len, (binaryfunc)Matrix_subscript, - (objobjargproc)Matrix_ass_subscript + (objobjargproc)Matrix_ass_subscript, }; @@ -3314,7 +3314,7 @@ static PyObject *MatrixAccess_iter(MatrixAccessObject *self) static PyMappingMethods MatrixAccess_AsMapping = { (lenfunc)MatrixAccess_len, (binaryfunc)MatrixAccess_subscript, - (objobjargproc) MatrixAccess_ass_subscript + (objobjargproc) MatrixAccess_ass_subscript, }; PyTypeObject matrix_access_Type = { diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c index a2b4480584a..c892dce39e1 100644 --- a/source/blender/python/mathutils/mathutils_Quaternion.c +++ b/source/blender/python/mathutils/mathutils_Quaternion.c @@ -1036,7 +1036,7 @@ static PySequenceMethods Quaternion_SeqMethods = { static PyMappingMethods Quaternion_AsMapping = { (lenfunc)Quaternion_len, (binaryfunc)Quaternion_subscript, - (objobjargproc)Quaternion_ass_subscript + (objobjargproc)Quaternion_ass_subscript, }; static PyNumberMethods Quaternion_NumMethods = { diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c index 16a242fc718..77686f99042 100644 --- a/source/blender/python/mathutils/mathutils_Vector.c +++ b/source/blender/python/mathutils/mathutils_Vector.c @@ -2170,7 +2170,7 @@ static int Vector_ass_subscript(VectorObject *self, PyObject *item, PyObject *va static PyMappingMethods Vector_AsMapping = { (lenfunc)Vector_len, (binaryfunc)Vector_subscript, - (objobjargproc)Vector_ass_subscript + (objobjargproc)Vector_ass_subscript, }; @@ -3064,7 +3064,7 @@ PyTypeObject vector_Type = { NULL, /* PyObject *tp_cache; */ NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ - NULL + NULL, }; PyObject *Vector_CreatePyObject( diff --git a/source/blender/python/mathutils/mathutils_interpolate.c b/source/blender/python/mathutils/mathutils_interpolate.c index 720fac7c276..d2a09aaccb2 100644 --- a/source/blender/python/mathutils/mathutils_interpolate.c +++ b/source/blender/python/mathutils/mathutils_interpolate.c @@ -115,7 +115,7 @@ static PyMethodDef M_Interpolate_methods[] = { #ifndef MATH_STANDALONE {"poly_3d_calc", (PyCFunction) M_Interpolate_poly_3d_calc, METH_VARARGS, M_Interpolate_poly_3d_calc_doc}, #endif - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; static struct PyModuleDef M_Interpolate_module_def = { diff --git a/source/blender/python/mathutils/mathutils_kdtree.c b/source/blender/python/mathutils/mathutils_kdtree.c index ca66c1906b4..6405aee0496 100644 --- a/source/blender/python/mathutils/mathutils_kdtree.c +++ b/source/blender/python/mathutils/mathutils_kdtree.c @@ -398,7 +398,7 @@ static PyMethodDef PyKDTree_methods[] = { {"find", (PyCFunction)py_kdtree_find, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_doc}, {"find_n", (PyCFunction)py_kdtree_find_n, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_n_doc}, {"find_range", (PyCFunction)py_kdtree_find_range, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_range_doc}, - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; PyDoc_STRVAR(py_KDtree_doc, diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c index 5e3e86c8ddf..fd41ff360cb 100644 --- a/source/blender/python/mathutils/mathutils_noise.c +++ b/source/blender/python/mathutils/mathutils_noise.c @@ -216,7 +216,7 @@ static PyC_FlagSet bpy_noise_types[] = { {TEX_VORONOI_F2F1, "VORONOI_F2F1"}, {TEX_VORONOI_CRACKLE, "VORONOI_CRACKLE"}, {TEX_CELLNOISE, "CELLNOISE"}, - {0, NULL} + {0, NULL}, }; /* Metric basis enum */ @@ -230,7 +230,7 @@ static PyC_FlagSet bpy_noise_metrics[] = { {TEX_MINKOVSKY, "MINKOVSKY"}, {TEX_MINKOVSKY_HALF, "MINKOVSKY_HALF"}, {TEX_MINKOVSKY_FOUR, "MINKOVSKY_FOUR"}, - {0, NULL} + {0, NULL}, }; /* Fills an array of length size with random numbers in the range (-1, 1)*/ @@ -1044,7 +1044,7 @@ static PyMethodDef M_Noise_methods[] = { {"voronoi", (PyCFunction) M_Noise_voronoi, METH_VARARGS | METH_KEYWORDS, M_Noise_voronoi_doc}, {"cell", (PyCFunction) M_Noise_cell, METH_VARARGS, M_Noise_cell_doc}, {"cell_vector", (PyCFunction) M_Noise_cell_vector, METH_VARARGS, M_Noise_cell_vector_doc}, - {NULL, NULL, 0, NULL} + {NULL, NULL, 0, NULL}, }; static struct PyModuleDef M_Noise_module_def = { |