diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_pd.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_pd.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_pd.c b/apps/plugins/pdbox/PDa/src/m_pd.c index e686c2cb52..25f5f2d212 100644 --- a/apps/plugins/pdbox/PDa/src/m_pd.c +++ b/apps/plugins/pdbox/PDa/src/m_pd.c | |||
@@ -2,10 +2,15 @@ | |||
2 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL | 2 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL |
3 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ | 3 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ |
4 | 4 | ||
5 | #include <stdlib.h> | ||
6 | #include "m_pd.h" | 5 | #include "m_pd.h" |
7 | #include "m_imp.h" | 6 | #include "m_imp.h" |
8 | 7 | ||
8 | #ifdef ROCKBOX | ||
9 | void pd_checkgui(t_pd *x, t_symbol *s); | ||
10 | #else /* ROCKBOX */ | ||
11 | #include <stdlib.h> | ||
12 | #endif /* ROCKBOX */ | ||
13 | |||
9 | /* FIXME no out-of-memory testing yet! */ | 14 | /* FIXME no out-of-memory testing yet! */ |
10 | 15 | ||
11 | t_pd *pd_new(t_class *c) | 16 | t_pd *pd_new(t_class *c) |
@@ -166,7 +171,7 @@ void pd_unbind(t_pd *x, t_symbol *s) | |||
166 | b->b_list = e->e_next; | 171 | b->b_list = e->e_next; |
167 | freebytes(e, sizeof(t_bindelem)); | 172 | freebytes(e, sizeof(t_bindelem)); |
168 | } | 173 | } |
169 | else for (e = b->b_list; e2 = e->e_next; e = e2) | 174 | else for (e = b->b_list; (e2 = e->e_next); e = e2) |
170 | if (e2->e_who == x) | 175 | if (e2->e_who == x) |
171 | { | 176 | { |
172 | e->e_next = e2->e_next; | 177 | e->e_next = e2->e_next; |
@@ -194,8 +199,13 @@ t_pd *pd_findbyclass(t_symbol *s, t_class *c) | |||
194 | if (*s->s_thing == bindlist_class) | 199 | if (*s->s_thing == bindlist_class) |
195 | { | 200 | { |
196 | t_bindlist *b = (t_bindlist *)s->s_thing; | 201 | t_bindlist *b = (t_bindlist *)s->s_thing; |
202 | #ifdef ROCKBOX | ||
203 | t_bindelem *e; | ||
204 | #else /* ROCKBOX */ | ||
197 | t_bindelem *e, *e2; | 205 | t_bindelem *e, *e2; |
206 | #endif /* ROCKBOX */ | ||
198 | int warned = 0; | 207 | int warned = 0; |
208 | |||
199 | for (e = b->b_list; e; e = e->e_next) | 209 | for (e = b->b_list; e; e = e->e_next) |
200 | if (*e->e_who == c) | 210 | if (*e->e_who == c) |
201 | { | 211 | { |
@@ -288,6 +298,9 @@ void pd_symbol(t_pd *x, t_symbol *s) | |||
288 | 298 | ||
289 | void pd_list(t_pd *x, t_symbol *s, int argc, t_atom *argv) | 299 | void pd_list(t_pd *x, t_symbol *s, int argc, t_atom *argv) |
290 | { | 300 | { |
301 | #ifdef ROCKBOX | ||
302 | (void) s; | ||
303 | #endif | ||
291 | (*(*x)->c_listmethod)(x, &s_list, argc, argv); | 304 | (*(*x)->c_listmethod)(x, &s_list, argc, argv); |
292 | } | 305 | } |
293 | 306 | ||