Exemplo n.º 1
0
static void gobj_restoreconnections(t_glist *gl, t_binbuf *bb)
{
#ifdef FRINGE_DEBUG
    fprintf(stderr, "restoring connections:\n");
    binbuf_print(bb);
#endif
    canvas_setcurrent(gl);
    binbuf_eval(bb, 0, 0, 0);
    canvas_unsetcurrent(gl);
}
Exemplo n.º 2
0
static void gobj_stowconnections(t_glist *gl, t_gobj *ob, t_binbuf *bb)
{
    t_linetraverser lt;
    t_outconnect *oc;
    binbuf_clear(bb);
    linetraverser_start(&lt, gl);
    while (oc = linetraverser_next(&lt))
    {
        if ((t_gobj *)lt.tr_ob == ob || (t_gobj *)lt.tr_ob2 == ob)
            binbuf_addv(bb, "ssiiii;",
                        gensym("#X"), gensym("connect"),
                        gobj_getindex(gl, (t_gobj *)lt.tr_ob), lt.tr_outno,
                        gobj_getindex(gl, (t_gobj *)lt.tr_ob2), lt.tr_inno);
    }
#ifdef FRINGE_DEBUG
    fprintf(stderr, "packed connections:\n");
    binbuf_print(bb);
#endif
}
static void qlist_print(t_qlist *x)
{
    post("--------- textfile or qlist contents: -----------");
    binbuf_print(x->x_binbuf);
}
Exemplo n.º 4
0
Arquivo: xeq.c Projeto: pure-data/xeq
static void xeq_print(t_xeq *x)
{
    post("--------- xeq contents: -----------");
    binbuf_print(x->x_binbuf);
}