Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16727
Modified Files: Tag: devel_0_39 desire.c Log Message: fixed bug in saveargs with default args
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.186 retrieving revision 1.1.2.187 diff -C2 -d -r1.1.2.186 -r1.1.2.187 *** desire.c 24 Oct 2006 16:08:58 -0000 1.1.2.186 --- desire.c 30 Oct 2006 23:46:05 -0000 1.1.2.187 *************** *** 80,83 **** --- 80,84 ----
t_appendix *appendix_new (t_gobj *master) { + //fprintf(stderr,"appendix_new %p\n",master); t_appendix *self = (t_appendix *)malloc(sizeof(t_appendix)); self->master = master; *************** *** 92,96 **** void appendix_save (t_gobj *master, t_binbuf *b) { t_hash *h = master->g_adix->visual; ! fprintf(stderr,"appendix_save %p size=%d\n",master,hash_size(h)); if (hash_size(h)) { hashkey k; --- 93,97 ---- void appendix_save (t_gobj *master, t_binbuf *b) { t_hash *h = master->g_adix->visual; ! //fprintf(stderr,"appendix_save %p size=%ld\n",master,hash_size(h)); if (hash_size(h)) { hashkey k; *************** *** 4260,4264 **** g = (t_gobj *)template_conformscalar(tfrom, tto, conformaction, canvas, (t_scalar *)g); else if (c==canvas_class) ! template_conformcanvas(tfrom, tto, (t_canvas *)g, conformaction); else if (c==garray_class) template_conformarray(tfrom, tto, conformaction, garray_getarray((t_garray *)g)); --- 4261,4265 ---- g = (t_gobj *)template_conformscalar(tfrom, tto, conformaction, canvas, (t_scalar *)g); else if (c==canvas_class) ! template_conformcanvas(tfrom, tto, conformaction, (t_canvas *)g); else if (c==garray_class) template_conformarray(tfrom, tto, conformaction, garray_getarray((t_garray *)g)); *************** *** 4297,4301 **** post("conforming template '%s' to new structure", tfrom->sym->s_name); for (i = 0; i < nto; i++) post("... %d", conformaction[i]); ! canvases_each(gl) template_conformcanvas(tfrom, tto, gl, conformaction); } freebytes(conformaction, sizeof(int) * nto); --- 4298,4302 ---- post("conforming template '%s' to new structure", tfrom->sym->s_name); for (i = 0; i < nto; i++) post("... %d", conformaction[i]); ! canvases_each(gl) template_conformcanvas(tfrom, tto, conformaction, gl); } freebytes(conformaction, sizeof(int) * nto); *************** *** 6732,6736 **** switch (fmt[i]) { case 0: goto break2; ! case ';': break; /* skip */ case '?': case 'F': case 'S': break; /* skip */ case 'd': SETFLOAT(&a,*(va_arg(val,double*))); break; --- 6733,6737 ---- switch (fmt[i]) { case 0: goto break2; ! case ';': continue; /* skip */ case '?': case 'F': case 'S': break; /* skip */ case 'd': SETFLOAT(&a,*(va_arg(val,double*))); break; *************** *** 7843,7846 **** --- 7844,7848 ---- } hash_set(h,s,al); + //fprintf(stderr,"visualloader... %p %d\n",newest,hash_size(h)); j++; if (j<argc) {s=atom_getsymbolarg(j,argc,argv);j++;}