Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29309
Modified Files: Tag: desiredata desire.c Log Message: debug_queue becomes static bool var
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.188 retrieving revision 1.1.2.217.2.189 diff -C2 -d -r1.1.2.217.2.188 -r1.1.2.217.2.189 *** desire.c 3 Aug 2007 16:41:10 -0000 1.1.2.217.2.188 --- desire.c 4 Aug 2007 04:10:58 -0000 1.1.2.217.2.189 *************** *** 193,197 **** }
! #define DEBUG_QUEUE
static void pd_print (t_pd *self, char *header) { --- 193,197 ---- }
! static bool debug_queue=0;
static void pd_print (t_pd *self, char *header) { *************** *** 210,222 ****
void queue_put (t_queue *self, t_pd *stuff) { ! #ifdef DEBUG_QUEUE ! pd_print(stuff,"queue_put"); ! #endif if (self->len==QUEUE_SIZE) {bug("queue full"); return;} self->o[(self->start+self->len)%QUEUE_SIZE] = stuff; self->len++; ! #ifdef DEBUG_QUEUE ! post("queue_put: items in queue: %d",self->len); ! #endif }
--- 210,218 ----
void queue_put (t_queue *self, t_pd *stuff) { ! if (debug_queue) pd_print(stuff,"queue_put"); if (self->len==QUEUE_SIZE) {bug("queue full"); return;} self->o[(self->start+self->len)%QUEUE_SIZE] = stuff; self->len++; ! if (debug_queue) post("queue_put: items in queue: %d",self->len); }
*************** *** 225,232 **** self->start = (self->start+1)%QUEUE_SIZE; self->len--; ! #ifdef DEBUG_QUEUE ! post("queue_get: items in queue: %d",self->len); ! pd_print(stuff,"queue_get"); ! #endif return stuff; } --- 221,225 ---- self->start = (self->start+1)%QUEUE_SIZE; self->len--; ! if (debug_queue) {post("queue_get: items in queue: %d",self->len); pd_print(stuff,"queue_get");} return stuff; }