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
This commit is contained in:
Peter D'Hoye 2009-07-03 22:16:11 +00:00
parent eabeb928dd
commit 0d4560cb03
113 changed files with 10637 additions and 4420 deletions

View file

@ -266,6 +266,9 @@ static void timer_bang2(t_timer *x)
static void *timer_new(t_floatarg f)
{
#ifdef ROCKBOX
(void) f;
#endif
t_timer *x = (t_timer *)pd_new(timer_class);
timer_bang(x);
outlet_new(&x->x_obj, gensym("float"));
@ -314,6 +317,9 @@ typedef struct _pipe
static void *pipe_new(t_symbol *s, int argc, t_atom *argv)
{
#ifdef ROCKBOX
(void) s;
#endif
t_pipe *x = (t_pipe *)pd_new(pipe_class);
t_atom defarg, *ap;
t_pipeout *vec, *vp;
@ -412,7 +418,7 @@ static void hang_tick(t_hang *h)
int i;
union word *w;
if (x->x_hang == h) x->x_hang = h->h_next;
else for (h2 = x->x_hang; h3 = h2->h_next; h2 = h3)
else for (h2 = x->x_hang; (h3 = h2->h_next); h2 = h3)
{
if (h3 == h)
{
@ -432,6 +438,9 @@ static void hang_tick(t_hang *h)
outlet_pointer(p->p_outlet, w->w_gpointer);
else post("pipe: stale pointer");
break;
#ifdef ROCKBOX
default: break;
#endif
}
}
hang_free(h);
@ -439,6 +448,9 @@ static void hang_tick(t_hang *h)
static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av)
{
#ifdef ROCKBOX
(void) s;
#endif
t_hang *h = (t_hang *)
getbytes(sizeof(*h) + (x->x_n - 1) * sizeof(*h->h_vec));
t_gpointer *gp, *gp2;
@ -465,6 +477,10 @@ static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av)
if (gp->gp_stub) gp->gp_stub->gs_refcount++;
}
gp++;
#ifdef ROCKBOX
break;
default: break;
#endif
}
}
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)
static void pipe_clear(t_pipe *x)
{
t_hang *hang;
while (hang = x->x_hang)
while ((hang = x->x_hang))
{
x->x_hang = hang->h_next;
hang_free(hang);