From 0804a5e035f41c70db089ccec7d06c6ebec09a56 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 4 Apr 2002 08:50:07 +0000 Subject: replace LIST_ IVY_LIST_ collision macro --- src/timer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/timer.c') diff --git a/src/timer.c b/src/timer.c index f7a0540..5ccc690 100644 --- a/src/timer.c +++ b/src/timer.c @@ -79,7 +79,7 @@ static void AdjTimeout(unsigned long current) { /* recherche de la plus courte echeance dans la liste */ newTimeout = timers->when ; /* remise a la premiere valeur */ - LIST_EACH( timers , timer ) + IVY_LIST_EACH( timers , timer ) { if ( timer->when < newTimeout ) newTimeout = timer->when; @@ -103,7 +103,7 @@ TimerId TimerRepeatAfter( int count, long time, TimerCb cb, void *user_data ) /* si y a rien a faire et ben on fait rien */ if ( cb == NULL ) return NULL; - LIST_ADD( timers, timer ) + IVY_LIST_ADD( timers, timer ) if ( timer ) { timer->repeat = count; @@ -121,7 +121,7 @@ void TimerRemove( TimerId timer ) { unsigned long stamp; if ( !timer ) return; - LIST_REMOVE( timers, timer ); + IVY_LIST_REMOVE( timers, timer ); stamp = currentTime(); AdjTimeout(stamp); } @@ -152,7 +152,7 @@ void TimerScan() stamp = currentTime(); /* recherche des timers echu dans la liste */ - LIST_EACH_SAFE( timers , timer, next ) + IVY_LIST_EACH_SAFE( timers , timer, next ) { if ( timer->when <= stamp ) { @@ -166,7 +166,7 @@ void TimerScan() } else { - LIST_REMOVE( timers, timer ); + IVY_LIST_REMOVE( timers, timer ); } } } -- cgit v1.1