Update of /cvsroot/pure-data/externals/miXed/cyclone/hammer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1599/miXed/cyclone/hammer
Modified Files: Table.c comment.c funbuff.c Log Message:
Following this thread:
http://lists.puredata.info/pipermail/pd-dev/2007-10/009797.html
I have changed the save functions so that they will save the name of the object that it was actually instantiated with. This allows objects with savefns to work properly with namespaces.
This is a fix for this bug: http://sourceforge.net/tracker/index.php?&aid=1818219&group_id=55736...
Index: funbuff.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/cyclone/hammer/funbuff.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** funbuff.c 11 Jan 2005 10:33:19 -0000 1.5 --- funbuff.c 29 Oct 2007 18:58:42 -0000 1.6 *************** *** 228,232 **** char buf[MAXPDSTRING]; t_hammernode *np; ! binbuf_addv(bb, "s", gensym("funbuff")); for (np = x->x_tree.t_first; np; np = np->n_next) binbuf_addv(bb, "if", np->n_key, HAMMERNODE_GETFLOAT(np)); --- 228,232 ---- char buf[MAXPDSTRING]; t_hammernode *np; ! binbuf_addv(bb, "s", atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf))); for (np = x->x_tree.t_first; np; np = np->n_next) binbuf_addv(bb, "if", np->n_key, HAMMERNODE_GETFLOAT(np));
Index: Table.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/cyclone/hammer/Table.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Table.c 28 Feb 2005 13:10:39 -0000 1.9 --- Table.c 29 Oct 2007 18:58:42 -0000 1.10 *************** *** 317,321 **** buf[MAXPDSTRING-1] = 0; } ! binbuf_addv(bb, "s", gensym("table")); for (ndx = 0, ptr = cc->c_table; ndx < cc->c_length; ndx++, ptr++) binbuf_addv(bb, "i", *ptr); --- 317,321 ---- buf[MAXPDSTRING-1] = 0; } ! binbuf_addv(bb, "s", atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf))); for (ndx = 0, ptr = cc->c_table; ndx < cc->c_length; ndx++, ptr++) binbuf_addv(bb, "i", *ptr);
Index: comment.c =================================================================== RCS file: /cvsroot/pure-data/externals/miXed/cyclone/hammer/comment.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** comment.c 12 Mar 2005 00:19:09 -0000 1.8 --- comment.c 29 Oct 2007 18:58:42 -0000 1.9 *************** *** 456,460 **** binbuf_addv(b, "ssiisiissiiii", gensym("#X"), gensym("obj"), (int)t->te_xpix, (int)t->te_ypix, ! gensym("comment"), x->x_pixwidth, x->x_fontsize, x->x_fontfamily, (x->x_encoding ? x->x_encoding : gensym("?")), --- 456,460 ---- binbuf_addv(b, "ssiisiissiiii", gensym("#X"), gensym("obj"), (int)t->te_xpix, (int)t->te_ypix, ! atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), x->x_pixwidth, x->x_fontsize, x->x_fontfamily, (x->x_encoding ? x->x_encoding : gensym("?")),