[PD-cvs] externals/zexy/src fifop.c,1.2,1.3 lifop.c,1.2,1.3
IOhannes m zmölnig
zmoelnig at users.sourceforge.net
Sun May 22 21:53:59 CEST 2005
Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16189
Modified Files:
fifop.c lifop.c
Log Message:
fixed a bug with priorities
Index: fifop.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/fifop.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** fifop.c 19 May 2005 09:42:55 -0000 1.2
--- fifop.c 22 May 2005 19:53:57 -0000 1.3
***************
*** 55,58 ****
--- 55,59 ----
static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority)
{
+ int i;
t_fifop_prioritylist*result=0, *dummy=0;
***************
*** 72,76 ****
dummy=dummy->next;
}
! dummy=result;
}
/* create a new priority list */
--- 73,77 ----
dummy=dummy->next;
}
! dummy=result; /* dummy points to the FIFO-before the one we want to insert */
}
/* create a new priority list */
***************
*** 78,91 ****
result->priority=priority;
result->fifo_start=0;
/* insert it into the list of priority lists */
! if(dummy!=0){
result->next=dummy->next;
dummy->next =result;
- } else {
- result->next=0;
- }
- if(x->fifo_list==0){
- x->fifo_list=result;
}
--- 79,93 ----
result->priority=priority;
result->fifo_start=0;
+ result->next=0;
/* insert it into the list of priority lists */
! if(dummy==0){
! /* insert at the beginning */
! result->next=x->fifo_list;
! x->fifo_list=result;
! } else {
! /* post insert into the list of FIFOs */
result->next=dummy->next;
dummy->next =result;
}
Index: lifop.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/lifop.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** lifop.c 19 May 2005 09:42:55 -0000 1.2
--- lifop.c 22 May 2005 19:53:57 -0000 1.3
***************
*** 79,90 ****
/* insert it into the list of priority lists */
! if(dummy!=0){
result->next=dummy->next;
dummy->next =result;
- } else {
- result->next=0;
- }
- if(x->lifo_list==0){
- x->lifo_list=result;
}
--- 79,90 ----
/* insert it into the list of priority lists */
! if(dummy==0){
! /* insert at the beginning */
! result->next=x->lifo_list;
! x->lifo_list=result;
! } else {
! /* post insert into the list of LIFOs */
result->next=dummy->next;
dummy->next =result;
}
More information about the Pd-cvs
mailing list