summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/x_qlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/x_qlist.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/x_qlist.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/x_qlist.c b/apps/plugins/pdbox/PDa/src/x_qlist.c
index 7dbec5e7b4..fc7866ff41 100644
--- a/apps/plugins/pdbox/PDa/src/x_qlist.c
+++ b/apps/plugins/pdbox/PDa/src/x_qlist.c
@@ -2,7 +2,14 @@
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#ifdef ROCKBOX
6#include "plugin.h"
7#include "pdbox.h"
8#endif
9
5#include "m_pd.h" 10#include "m_pd.h"
11
12#ifndef ROCKBOX
6#include <string.h> 13#include <string.h>
7#ifdef UNIX 14#ifdef UNIX
8#include <unistd.h> 15#include <unistd.h>
@@ -10,6 +17,7 @@
10#ifdef MSW 17#ifdef MSW
11#include <io.h> 18#include <io.h>
12#endif 19#endif
20#endif /* ROCKBOX */
13 21
14typedef struct _qlist 22typedef struct _qlist
15{ 23{
@@ -32,7 +40,9 @@ static t_class *qlist_class;
32 40
33static void *qlist_new( void) 41static void *qlist_new( void)
34{ 42{
43#ifndef ROCKBOX
35 t_symbol *name, *filename = 0; 44 t_symbol *name, *filename = 0;
45#endif
36 t_qlist *x = (t_qlist *)pd_new(qlist_class); 46 t_qlist *x = (t_qlist *)pd_new(qlist_class);
37 x->x_binbuf = binbuf_new(); 47 x->x_binbuf = binbuf_new();
38 x->x_clock = clock_new(x, (t_method)qlist_tick); 48 x->x_clock = clock_new(x, (t_method)qlist_tick);
@@ -151,6 +161,9 @@ static void qlist_tick(t_qlist *x)
151 161
152static void qlist_add(t_qlist *x, t_symbol *s, int ac, t_atom *av) 162static void qlist_add(t_qlist *x, t_symbol *s, int ac, t_atom *av)
153{ 163{
164#ifdef ROCKBOX
165 (void) s;
166#endif
154 t_atom a; 167 t_atom a;
155 SETSEMI(&a); 168 SETSEMI(&a);
156 binbuf_add(x->x_binbuf, ac, av); 169 binbuf_add(x->x_binbuf, ac, av);
@@ -159,6 +172,9 @@ static void qlist_add(t_qlist *x, t_symbol *s, int ac, t_atom *av)
159 172
160static void qlist_add2(t_qlist *x, t_symbol *s, int ac, t_atom *av) 173static void qlist_add2(t_qlist *x, t_symbol *s, int ac, t_atom *av)
161{ 174{
175#ifdef ROCKBOX
176 (void) s;
177#endif
162 binbuf_add(x->x_binbuf, ac, av); 178 binbuf_add(x->x_binbuf, ac, av);
163} 179}
164 180
@@ -239,7 +255,9 @@ typedef t_qlist t_textfile;
239 255
240static void *textfile_new( void) 256static void *textfile_new( void)
241{ 257{
258#ifndef ROCKBOX
242 t_symbol *name, *filename = 0; 259 t_symbol *name, *filename = 0;
260#endif
243 t_textfile *x = (t_textfile *)pd_new(textfile_class); 261 t_textfile *x = (t_textfile *)pd_new(textfile_class);
244 x->x_binbuf = binbuf_new(); 262 x->x_binbuf = binbuf_new();
245 outlet_new(&x->x_ob, &s_list); 263 outlet_new(&x->x_ob, &s_list);
@@ -257,7 +275,11 @@ static void *textfile_new( void)
257static void textfile_bang(t_textfile *x) 275static void textfile_bang(t_textfile *x)
258{ 276{
259 int argc = binbuf_getnatom(x->x_binbuf), 277 int argc = binbuf_getnatom(x->x_binbuf),
278#ifdef ROCKBOX
279 onset = x->x_onset, onset2;
280#else
260 count, onset = x->x_onset, onset2; 281 count, onset = x->x_onset, onset2;
282#endif
261 t_atom *argv = binbuf_getvec(x->x_binbuf); 283 t_atom *argv = binbuf_getvec(x->x_binbuf);
262 t_atom *ap = argv + onset, *ap2; 284 t_atom *ap = argv + onset, *ap2;
263 while (onset < argc && 285 while (onset < argc &&