diff --git a/externals/ggee/control/serial_bird.c b/externals/ggee/control/serial_bird.c index 6423dc714a3ed29e939fa4e654ea535bb61f6c08..24ff5da1714e255cce6757e78a8f21f7f5a11832 100644 --- a/externals/ggee/control/serial_bird.c +++ b/externals/ggee/control/serial_bird.c @@ -128,8 +128,8 @@ static void serial_bird_float( t_serial_bird* x,t_floatarg f) /* post("posx %d, posy %d",x->x_posx,x->x_posy);*/ outlet_list(x->x_obj.ob_outlet,&s_list, ac, at); } - - x->x_count = (++x->x_count)%(x->x_maxcount); + x->x_count++; + x->x_count = x->x_count % x->x_maxcount; } static void serial_bird_poll( t_serial_bird* x) diff --git a/externals/ggee/control/serial_ms.c b/externals/ggee/control/serial_ms.c index b012fdf636bb6d6867ca89522589aa92edd408df..e06ce341ae90910fc33cd48bd45c9942242cde25 100644 --- a/externals/ggee/control/serial_ms.c +++ b/externals/ggee/control/serial_ms.c @@ -69,7 +69,8 @@ static void serial_ms_float( t_serial_ms* x,t_floatarg f) x->x_c[x->x_count] = (char) f; - x->x_count = (++x->x_count)%3; + x->x_count++; + x->x_count = x->x_count % 3; if (x->x_count==2) { dx= (signed char)(((x->x_c[0] & 0x03) << 6) | diff --git a/externals/ggee/control/serial_mt.c b/externals/ggee/control/serial_mt.c index 02a1aac63864706376f85b1bd70d83ca72701429..2b4e24a1ec77a65157310a44865a0b93d6d0912b 100644 --- a/externals/ggee/control/serial_mt.c +++ b/externals/ggee/control/serial_mt.c @@ -31,7 +31,8 @@ static void serial_mt_float( t_serial_mt* x,t_floatarg f) x->x_c[x->x_count] = (char) f; - x->x_count = (++x->x_count)%3; + x->x_count++; + x->x_count = x->x_count % 3; if (x->x_count==2) { dx= (signed char)(((x->x_c[0] & 0x03) << 6) | diff --git a/externals/jasch_lib/detox/detox.c b/externals/jasch_lib/detox/detox.c index 1558ba077b02a3ef29da1a02f5b166551b7c0d69..5a393e5d5d3ac82707265bd55df3d720ffd759c5 100644 --- a/externals/jasch_lib/detox/detox.c +++ b/externals/jasch_lib/detox/detox.c @@ -229,7 +229,7 @@ void detox_reset(t_detox *x) { short i; x->t_treecount = 0; - for(i=0;i<256; i++) x->t_tree[i].a_w.w_symbol = ps_nothing; + for (i = 0; i < 256; i++) x->t_tree[i].a_w.w_symbol = ps_nothing; } void detox_debug(t_detox *x, float f) @@ -302,7 +302,7 @@ void detox_action(t_detox *x) if ((local[0] != '<') || (local[j-1] != '>')) { tagtype = 0; // not a well formed tag - if(x->t_debug) post("tagtype 0"); + if (x->t_debug) post("tagtype 0"); goto content; } if ((local[1] == '?') || (local[1] == '!')) @@ -536,7 +536,8 @@ attributes: if (x->t_debug) post("first quotetype found is %c", quotetype[0]); // copy end pointer to pos of startpointer + 1, // right after the quote - ptr2 = ++ptr1; + ptr1++; + ptr2 = ptr1; while (ptr2 != NULL) { // looking for next quote of stored type if (ptr2[0] == quotetype[0]) @@ -665,7 +666,8 @@ attributes: post("first quotetype found is %c", quotetype[0]); // copy end pointer to pos of startpointer + 1, // right after the quote - ptr2 = ++ptr1; + ptr1++; + ptr2 = ptr1; while (ptr2 != NULL) { // looking for next quote of stored type if (ptr2[0] == quotetype[0]) @@ -720,7 +722,8 @@ attributes: outlet_anything(x->s_outlet, x->t_attrpair[0].a_w.w_symbol, 1, &x->t_attrpair[1]); - ptr1 = ++ptr2; // move start pointer to end of atrr-content + ptr2++; + ptr1 = ptr2; // move start pointer to end of attr-content while (ptr1 != NULL) { // find next non-whitespace char if (ptr1[0] != ' ') diff --git a/externals/moonlib/tabsort.c b/externals/moonlib/tabsort.c index 1658426837893156ade7035670e3d78de11a4934..2e3e3a719c5693f9ebe3abca19a2d0e9b199ca6d 100644 --- a/externals/moonlib/tabsort.c +++ b/externals/moonlib/tabsort.c @@ -89,7 +89,10 @@ static void tabsort_float(t_tabsort *x, t_floatarg n) if(n>n2) n=n2; - for(i=0; i<n; vec2[i]=i++); + for(i = 0; i < n; i++) + { + vec2[i] = i; + } for(i=0; i<n-1; i++) for(j=n-1; j>i; j--) diff --git a/externals/moonlib/tabsort2.c b/externals/moonlib/tabsort2.c index 67232de253d5465e952f13bde32aa56c7518ec6b..7f19a3e0c9de5f98c162b503ce2797bf8806d41a 100644 --- a/externals/moonlib/tabsort2.c +++ b/externals/moonlib/tabsort2.c @@ -111,7 +111,10 @@ static void tabsort2_float(t_tabsort2 *x, t_floatarg n) if(n>n2) n=n2; if(n>n3) n=n3; - for(i=0; i<n; vec3[i]=i++); + for(i = 0; i < n; i++) + { + vec3[i] = i; + } for(i=0; i<n-1; i++) for(j=n-1; j>i; j--)