Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20928
Modified Files: Tag: desiredata d_ugen.c Log Message: cleanup
Index: d_ugen.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_ugen.c,v retrieving revision 1.3.4.1.2.5.2.16 retrieving revision 1.3.4.1.2.5.2.17 diff -C2 -d -r1.3.4.1.2.5.2.16 -r1.3.4.1.2.5.2.17 *** d_ugen.c 19 Jul 2007 20:50:41 -0000 1.3.4.1.2.5.2.16 --- d_ugen.c 4 Aug 2007 03:47:10 -0000 1.3.4.1.2.5.2.17 *************** *** 181,188 **** static void block_bang(t_block *x) { if (x->switched && !x->switchon) { - t_int *ip; x->x_return = 1; ! for (ip = dsp_chain + x->chainonset; ip; ) ! ip = (*(t_perfroutine)(*ip))(ip); x->x_return = 0; } else error("bang to block~ or on-state switch~ has no effect"); --- 181,186 ---- static void block_bang(t_block *x) { if (x->switched && !x->switchon) { x->x_return = 1; ! for (t_int *ip = dsp_chain + x->chainonset; ip; ) ip = t_perfroutine(*ip)(ip); x->x_return = 0; } else error("bang to block~ or on-state switch~ has no effect"); *************** *** 328,334 **** signal whose buffer and size will be obtained later via signal_setborrowed(). */ t_signal *signal_new(int n, float sr) { ! int logn, vecsize = 0; t_signal *ret, **whichlist; ! logn = ilog2(n); if (n) { if ((vecsize = (1<<logn)) != n) vecsize *= 2; --- 326,332 ---- signal whose buffer and size will be obtained later via signal_setborrowed(). */ t_signal *signal_new(int n, float sr) { ! int vecsize = 0; t_signal *ret, **whichlist; ! int logn = ilog2(n); if (n) { if ((vecsize = (1<<logn)) != n) vecsize *= 2; *************** *** 1007,1011 **** } static void samplerate_tilde_setup() { ! samplerate_tilde_class = class_new(gensym("samplerate~"), (t_newmethod)samplerate_tilde_new, 0, sizeof(t_samplerate), 0, 0); class_addbang(samplerate_tilde_class, samplerate_tilde_bang); } --- 1005,1009 ---- } static void samplerate_tilde_setup() { ! samplerate_tilde_class = class_new2("samplerate~",samplerate_tilde_new,0,sizeof(t_samplerate),0,""); class_addbang(samplerate_tilde_class, samplerate_tilde_bang); }