Code Cleanup:
[blender-staging.git] / source / blender / bmesh / intern / bmesh_marking.c
index 11f2217c79e7e2b41d19ef1824984b68e78daad4..e6e6f244731c809606519f4a9c8d353a9ac03017 100644 (file)
@@ -58,7 +58,9 @@ static void recount_totsels(BMesh *bm)
 {
        BMIter iter;
        BMHeader *ele;
 {
        BMIter iter;
        BMHeader *ele;
-       const char itypes[3] = {BM_VERTS_OF_MESH, BM_EDGES_OF_MESH, BM_FACES_OF_MESH};
+       const char iter_types[3] = {BM_VERTS_OF_MESH,
+                                   BM_EDGES_OF_MESH,
+                                   BM_FACES_OF_MESH};
        int *tots[3];
        int i;
 
        int *tots[3];
        int i;
 
@@ -69,7 +71,7 @@ static void recount_totsels(BMesh *bm)
        tots[2] = &bm->totfacesel;
 
        for (i = 0; i < 3; i++) {
        tots[2] = &bm->totfacesel;
 
        for (i = 0; i < 3; i++) {
-               ele = BMIter_New(&iter, bm, itypes[i], NULL);
+               ele = BMIter_New(&iter, bm, iter_types[i], NULL);
                for ( ; ele; ele = BMIter_Step(&iter)) {
                        if (BM_TestHFlag(ele, BM_SELECT)) *tots[i] += 1;
                }
                for ( ; ele; ele = BMIter_Step(&iter)) {
                        if (BM_TestHFlag(ele, BM_SELECT)) *tots[i] += 1;
                }
@@ -647,7 +649,9 @@ void BM_validate_selections(BMesh *bm)
 
 void BM_clear_flag_all(BMesh *bm, const char hflag)
 {
 
 void BM_clear_flag_all(BMesh *bm, const char hflag)
 {
-       const char itypes[3] = {BM_VERTS_OF_MESH, BM_EDGES_OF_MESH, BM_FACES_OF_MESH};
+       const char iter_types[3] = {BM_VERTS_OF_MESH,
+                                   BM_EDGES_OF_MESH,
+                                   BM_FACES_OF_MESH};
        BMIter iter;
        BMHeader *ele;
        int i;
        BMIter iter;
        BMHeader *ele;
        int i;
@@ -657,7 +661,7 @@ void BM_clear_flag_all(BMesh *bm, const char hflag)
        }
 
        for (i = 0; i < 3; i++) {
        }
 
        for (i = 0; i < 3; i++) {
-               ele = BMIter_New(&iter, bm, itypes[i], NULL);
+               ele = BMIter_New(&iter, bm, iter_types[i], NULL);
                for ( ; ele; ele = BMIter_Step(&iter)) {
                        if (hflag & BM_SELECT) BM_Select(bm, ele, FALSE);
                        BM_ClearHFlag(ele, hflag);
                for ( ; ele; ele = BMIter_Step(&iter)) {
                        if (hflag & BM_SELECT) BM_Select(bm, ele, FALSE);
                        BM_ClearHFlag(ele, hflag);