diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/x_time.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/x_time.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/x_time.c b/apps/plugins/pdbox/PDa/src/x_time.c index 4cab8bc364..2d38369aa5 100644 --- a/apps/plugins/pdbox/PDa/src/x_time.c +++ b/apps/plugins/pdbox/PDa/src/x_time.c | |||
@@ -266,6 +266,9 @@ static void timer_bang2(t_timer *x) | |||
266 | 266 | ||
267 | static void *timer_new(t_floatarg f) | 267 | static void *timer_new(t_floatarg f) |
268 | { | 268 | { |
269 | #ifdef ROCKBOX | ||
270 | (void) f; | ||
271 | #endif | ||
269 | t_timer *x = (t_timer *)pd_new(timer_class); | 272 | t_timer *x = (t_timer *)pd_new(timer_class); |
270 | timer_bang(x); | 273 | timer_bang(x); |
271 | outlet_new(&x->x_obj, gensym("float")); | 274 | outlet_new(&x->x_obj, gensym("float")); |
@@ -314,6 +317,9 @@ typedef struct _pipe | |||
314 | 317 | ||
315 | static void *pipe_new(t_symbol *s, int argc, t_atom *argv) | 318 | static void *pipe_new(t_symbol *s, int argc, t_atom *argv) |
316 | { | 319 | { |
320 | #ifdef ROCKBOX | ||
321 | (void) s; | ||
322 | #endif | ||
317 | t_pipe *x = (t_pipe *)pd_new(pipe_class); | 323 | t_pipe *x = (t_pipe *)pd_new(pipe_class); |
318 | t_atom defarg, *ap; | 324 | t_atom defarg, *ap; |
319 | t_pipeout *vec, *vp; | 325 | t_pipeout *vec, *vp; |
@@ -412,7 +418,7 @@ static void hang_tick(t_hang *h) | |||
412 | int i; | 418 | int i; |
413 | union word *w; | 419 | union word *w; |
414 | if (x->x_hang == h) x->x_hang = h->h_next; | 420 | if (x->x_hang == h) x->x_hang = h->h_next; |
415 | else for (h2 = x->x_hang; h3 = h2->h_next; h2 = h3) | 421 | else for (h2 = x->x_hang; (h3 = h2->h_next); h2 = h3) |
416 | { | 422 | { |
417 | if (h3 == h) | 423 | if (h3 == h) |
418 | { | 424 | { |
@@ -432,6 +438,9 @@ static void hang_tick(t_hang *h) | |||
432 | outlet_pointer(p->p_outlet, w->w_gpointer); | 438 | outlet_pointer(p->p_outlet, w->w_gpointer); |
433 | else post("pipe: stale pointer"); | 439 | else post("pipe: stale pointer"); |
434 | break; | 440 | break; |
441 | #ifdef ROCKBOX | ||
442 | default: break; | ||
443 | #endif | ||
435 | } | 444 | } |
436 | } | 445 | } |
437 | hang_free(h); | 446 | hang_free(h); |
@@ -439,6 +448,9 @@ static void hang_tick(t_hang *h) | |||
439 | 448 | ||
440 | static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av) | 449 | static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av) |
441 | { | 450 | { |
451 | #ifdef ROCKBOX | ||
452 | (void) s; | ||
453 | #endif | ||
442 | t_hang *h = (t_hang *) | 454 | t_hang *h = (t_hang *) |
443 | getbytes(sizeof(*h) + (x->x_n - 1) * sizeof(*h->h_vec)); | 455 | getbytes(sizeof(*h) + (x->x_n - 1) * sizeof(*h->h_vec)); |
444 | t_gpointer *gp, *gp2; | 456 | t_gpointer *gp, *gp2; |
@@ -465,6 +477,10 @@ static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av) | |||
465 | if (gp->gp_stub) gp->gp_stub->gs_refcount++; | 477 | if (gp->gp_stub) gp->gp_stub->gs_refcount++; |
466 | } | 478 | } |
467 | gp++; | 479 | gp++; |
480 | #ifdef ROCKBOX | ||
481 | break; | ||
482 | default: break; | ||
483 | #endif | ||
468 | } | 484 | } |
469 | } | 485 | } |
470 | for (i = 0, gp = x->x_gp, gp2 = h->h_gp, p = x->x_vec, w = h->h_vec; | 486 | for (i = 0, gp = x->x_gp, gp2 = h->h_gp, p = x->x_vec, w = h->h_vec; |
@@ -493,7 +509,7 @@ static void pipe_flush(t_pipe *x) | |||
493 | static void pipe_clear(t_pipe *x) | 509 | static void pipe_clear(t_pipe *x) |
494 | { | 510 | { |
495 | t_hang *hang; | 511 | t_hang *hang; |
496 | while (hang = x->x_hang) | 512 | while ((hang = x->x_hang)) |
497 | { | 513 | { |
498 | x->x_hang = hang->h_next; | 514 | x->x_hang = hang->h_next; |
499 | hang_free(hang); | 515 | hang_free(hang); |