diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_obj.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_obj.c | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_obj.c b/apps/plugins/pdbox/PDa/src/m_obj.c index 785fd240bf..fa17a9052b 100644 --- a/apps/plugins/pdbox/PDa/src/m_obj.c +++ b/apps/plugins/pdbox/PDa/src/m_obj.c | |||
@@ -53,9 +53,9 @@ t_inlet *inlet_new(t_object *owner, t_pd *dest, t_symbol *s1, t_symbol *s2) | |||
53 | else x->i_symto = s2; | 53 | else x->i_symto = s2; |
54 | x->i_symfrom = s1; | 54 | x->i_symfrom = s1; |
55 | x->i_next = 0; | 55 | x->i_next = 0; |
56 | if (y = owner->ob_inlet) | 56 | if((y = owner->ob_inlet)) |
57 | { | 57 | { |
58 | while (y2 = y->i_next) y = y2; | 58 | while((y2 = y->i_next)) y = y2; |
59 | y->i_next = x; | 59 | y->i_next = x; |
60 | } | 60 | } |
61 | else owner->ob_inlet = x; | 61 | else owner->ob_inlet = x; |
@@ -106,7 +106,9 @@ static void inlet_symbol(t_inlet *x, t_symbol *s) | |||
106 | 106 | ||
107 | static void inlet_list(t_inlet *x, t_symbol *s, int argc, t_atom *argv) | 107 | static void inlet_list(t_inlet *x, t_symbol *s, int argc, t_atom *argv) |
108 | { | 108 | { |
109 | #ifndef ROCKBOX | ||
109 | t_atom at; | 110 | t_atom at; |
111 | #endif | ||
110 | if (x->i_symfrom == &s_list || x->i_symfrom == &s_float | 112 | if (x->i_symfrom == &s_list || x->i_symfrom == &s_float |
111 | || x->i_symfrom == &s_symbol || x->i_symfrom == &s_pointer) | 113 | || x->i_symfrom == &s_symbol || x->i_symfrom == &s_pointer) |
112 | typedmess(x->i_dest, x->i_symto, argc, argv); | 114 | typedmess(x->i_dest, x->i_symto, argc, argv); |
@@ -154,9 +156,9 @@ t_inlet *pointerinlet_new(t_object *owner, t_gpointer *gp) | |||
154 | x->i_symfrom = &s_pointer; | 156 | x->i_symfrom = &s_pointer; |
155 | x->i_pointerslot = gp; | 157 | x->i_pointerslot = gp; |
156 | x->i_next = 0; | 158 | x->i_next = 0; |
157 | if (y = owner->ob_inlet) | 159 | if((y = owner->ob_inlet)) |
158 | { | 160 | { |
159 | while (y2 = y->i_next) y = y2; | 161 | while((y2 = y->i_next)) y = y2; |
160 | y->i_next = x; | 162 | y->i_next = x; |
161 | } | 163 | } |
162 | else owner->ob_inlet = x; | 164 | else owner->ob_inlet = x; |
@@ -176,9 +178,9 @@ t_inlet *floatinlet_new(t_object *owner, t_float *fp) | |||
176 | x->i_symfrom = &s_float; | 178 | x->i_symfrom = &s_float; |
177 | x->i_floatslot = fp; | 179 | x->i_floatslot = fp; |
178 | x->i_next = 0; | 180 | x->i_next = 0; |
179 | if (y = owner->ob_inlet) | 181 | if((y = owner->ob_inlet)) |
180 | { | 182 | { |
181 | while (y2 = y->i_next) y = y2; | 183 | while((y2 = y->i_next)) y = y2; |
182 | y->i_next = x; | 184 | y->i_next = x; |
183 | } | 185 | } |
184 | else owner->ob_inlet = x; | 186 | else owner->ob_inlet = x; |
@@ -198,9 +200,9 @@ t_inlet *symbolinlet_new(t_object *owner, t_symbol **sp) | |||
198 | x->i_symfrom = &s_symbol; | 200 | x->i_symfrom = &s_symbol; |
199 | x->i_symslot = sp; | 201 | x->i_symslot = sp; |
200 | x->i_next = 0; | 202 | x->i_next = 0; |
201 | if (y = owner->ob_inlet) | 203 | if((y = owner->ob_inlet)) |
202 | { | 204 | { |
203 | while (y2 = y->i_next) y = y2; | 205 | while((y2 = y->i_next)) y = y2; |
204 | y->i_next = x; | 206 | y->i_next = x; |
205 | } | 207 | } |
206 | else owner->ob_inlet = x; | 208 | else owner->ob_inlet = x; |
@@ -217,6 +219,11 @@ void obj_list(t_object *x, t_symbol *s, int argc, t_atom *argv) | |||
217 | t_atom *ap; | 219 | t_atom *ap; |
218 | int count; | 220 | int count; |
219 | t_inlet *ip = ((t_object *)x)->ob_inlet; | 221 | t_inlet *ip = ((t_object *)x)->ob_inlet; |
222 | |||
223 | #ifdef ROCKBOX | ||
224 | (void) s; | ||
225 | #endif | ||
226 | |||
220 | if (!argc) return; | 227 | if (!argc) return; |
221 | for (count = argc-1, ap = argv+1; ip && count--; ap++, ip = ip->i_next) | 228 | for (count = argc-1, ap = argv+1; ip && count--; ap++, ip = ip->i_next) |
222 | { | 229 | { |
@@ -296,9 +303,9 @@ t_outlet *outlet_new(t_object *owner, t_symbol *s) | |||
296 | t_outlet *x = (t_outlet *)getbytes(sizeof(*x)), *y, *y2; | 303 | t_outlet *x = (t_outlet *)getbytes(sizeof(*x)), *y, *y2; |
297 | x->o_owner = owner; | 304 | x->o_owner = owner; |
298 | x->o_next = 0; | 305 | x->o_next = 0; |
299 | if (y = owner->ob_outlet) | 306 | if((y = owner->ob_outlet)) |
300 | { | 307 | { |
301 | while (y2 = y->o_next) y = y2; | 308 | while((y2 = y->o_next)) y = y2; |
302 | y->o_next = x; | 309 | y->o_next = x; |
303 | } | 310 | } |
304 | else owner->ob_outlet = x; | 311 | else owner->ob_outlet = x; |
@@ -474,7 +481,7 @@ doit: | |||
474 | freebytes(oc, sizeof(*oc)); | 481 | freebytes(oc, sizeof(*oc)); |
475 | goto done; | 482 | goto done; |
476 | } | 483 | } |
477 | while (oc2 = oc->oc_next) | 484 | while((oc2 = oc->oc_next)) |
478 | { | 485 | { |
479 | if (oc2->oc_to == to) | 486 | if (oc2->oc_to == to) |
480 | { | 487 | { |