Beispiel #1
0
static void *prepend_new(t_symbol *s, int ac, t_atom *av)
{
    t_prepend *x = (t_prepend *)pd_new(prepend_class);
    x->x_selector = 0;
    x->x_size = PREPEND_INISIZE;
    x->x_natoms = 0;
    x->x_message = x->x_messini;
    x->x_auxbuf = 0;
    x->x_entered = 0;
    outlet_new((t_object *)x, &s_anything);
    prepend_set(x, 0, ac, av);
    return (x);
}
Beispiel #2
0
void *prepend_new(t_symbol *s, int argc, t_atom *argv)
{
	t_prepend *x =  NULL;
    
    x = (t_prepend *)eobj_new(prepend_class);
    if(x)
    {
        prepend_set(x, gensym("set"), argc, argv);
        x->f_out = (t_outlet *)listout(x);
    }
    
    return (x);
}
Beispiel #3
0
void *prepend_new(t_symbol *s, int argc, t_atom *argv)
{
    t_prepend *x =  NULL;
    
    x = (t_prepend *)eobj_new(prepend_class);
    if(x)
    {
        x->f_argv = (t_atom *)malloc(_prepend::maxsize * sizeof(t_atom));
        prepend_set(x, gensym("set"), argc, argv);
        x->f_out = outlet_new((t_object *)x, &s_list);
    }
    
    return (x);
}