diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
commit | 0d4560cb0305029fa5f0739670286176ab47cb65 (patch) | |
tree | 9899f4324664a77e6a5884fdd1541818a28a2172 /apps/plugins/pdbox/PDa/src/m_pd.c | |
parent | eabeb928ddfdbe5fc6379efb87d9522803310649 (diff) | |
download | rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.tar.gz rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.zip |
Accept FS #10244 by Wincent Balin: more pdbox work done for GSoC; also some keyword and line-ending fixes by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21626 a1c6a512-1295-4272-9138-f99709370657
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 | ||