[PD-cvs] pd/src d_ugen.c,1.3.4.1.2.5.2.4,1.3.4.1.2.5.2.5
Mathieu Bouchard
matju at users.sourceforge.net
Tue Jan 9 17:59:02 CET 2007
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv600
Modified Files:
Tag: desiredata
d_ugen.c
Log Message:
freebytes -> free
Index: d_ugen.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_ugen.c,v
retrieving revision 1.3.4.1.2.5.2.4
retrieving revision 1.3.4.1.2.5.2.5
diff -C2 -d -r1.3.4.1.2.5.2.4 -r1.3.4.1.2.5.2.5
*** d_ugen.c 20 Dec 2006 10:10:37 -0000 1.3.4.1.2.5.2.4
--- d_ugen.c 9 Jan 2007 16:59:00 -0000 1.3.4.1.2.5.2.5
***************
*** 388,397 ****
{
#ifndef VECTORALIGNMENT
! t_freebytes(sig->s_vec, sig->s_vecsize * sizeof (*sig->s_vec));
#else
freealignedbytes(sig->s_vec, sig->s_vecsize * sizeof (*sig->s_vec));
#endif
}
! t_freebytes(sig, sizeof *sig);
}
for (i = 0; i <= MAXLOGSIG; i++)
--- 388,397 ----
{
#ifndef VECTORALIGNMENT
! free(sig->s_vec);
#else
freealignedbytes(sig->s_vec, sig->s_vecsize * sizeof (*sig->s_vec));
#endif
}
! free(sig);
}
for (i = 0; i <= MAXLOGSIG; i++)
***************
*** 581,597 ****
static t_dspcontext *ugen_currentcontext;
! void ugen_stop(void)
! {
! if (dsp_chain)
! {
! freebytes(dsp_chain, dsp_chainsize * sizeof (t_int));
dsp_chain = 0;
}
signal_cleanup();
-
}
! void ugen_start(void)
! {
ugen_stop();
ugen_sortno++;
--- 581,593 ----
static t_dspcontext *ugen_currentcontext;
! void ugen_stop(void) {
! if (dsp_chain) {
! free(dsp_chain);
dsp_chain = 0;
}
signal_cleanup();
}
! void ugen_start(void) {
ugen_stop();
ugen_sortno++;
***************
*** 870,874 ****
}
}
! t_freebytes(insig,(u->u_nin + u->u_nout) * sizeof(t_signal *));
u->u_done = 1;
}
--- 866,870 ----
}
}
! free(insig);
u->u_done = 1;
}
***************
*** 1118,1162 ****
chainafterall = dsp_chainsize;
! if (blk)
! {
blk->x_blocklength = chainblockend - chainblockbegin;
blk->x_epiloglength = chainafterall - chainblockend;
blk->x_reblock = reblock;
}
!
! if (ugen_loud)
! {
t_int *ip;
if (!dc->dc_parentcontext)
! for (i = dsp_chainsize, ip = dsp_chain; i--; ip++)
! post("chain %lx", *ip);
post("... ugen_done_graph done.");
}
! /* now delete everything. */
! while (dc->dc_ugenlist)
! {
! for (uout = dc->dc_ugenlist->u_out, n = dc->dc_ugenlist->u_nout;
! n--; uout++)
! {
oc = uout->o_connections;
! while (oc)
! {
oc2 = oc->oc_next;
! freebytes(oc, sizeof *oc);
oc = oc2;
}
}
! freebytes(dc->dc_ugenlist->u_out, dc->dc_ugenlist->u_nout *
! sizeof (*dc->dc_ugenlist->u_out));
! freebytes(dc->dc_ugenlist->u_in, dc->dc_ugenlist->u_nin *
! sizeof(*dc->dc_ugenlist->u_in));
u = dc->dc_ugenlist;
dc->dc_ugenlist = u->u_next;
! freebytes(u, sizeof *u);
}
if (ugen_currentcontext == dc)
ugen_currentcontext = dc->dc_parentcontext;
else bug("ugen_currentcontext");
! freebytes(dc, sizeof(*dc));
}
--- 1114,1148 ----
chainafterall = dsp_chainsize;
! if (blk) {
blk->x_blocklength = chainblockend - chainblockbegin;
blk->x_epiloglength = chainafterall - chainblockend;
blk->x_reblock = reblock;
}
! if (ugen_loud) {
t_int *ip;
if (!dc->dc_parentcontext)
! for (i = dsp_chainsize, ip = dsp_chain; i--; ip++) post("chain %lx", *ip);
post("... ugen_done_graph done.");
}
! /* now delete everything. */
! while (dc->dc_ugenlist) {
! for (uout = dc->dc_ugenlist->u_out, n = dc->dc_ugenlist->u_nout; n--; uout++) {
oc = uout->o_connections;
! while (oc) {
oc2 = oc->oc_next;
! free(oc);
oc = oc2;
}
}
! free(dc->dc_ugenlist->u_out);
! free(dc->dc_ugenlist->u_in);
u = dc->dc_ugenlist;
dc->dc_ugenlist = u->u_next;
! free(u);
}
if (ugen_currentcontext == dc)
ugen_currentcontext = dc->dc_parentcontext;
else bug("ugen_currentcontext");
! free(dc);
}
More information about the Pd-cvs
mailing list