bugfix in drop(item,list)
authorxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Tue, 8 Jan 2008 01:29:18 +0000 (01:29 +0000)
committerxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Tue, 8 Jan 2008 01:29:18 +0000 (01:29 +0000)
git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@5 4bb87942-c103-4e5a-b51c-0ebff58f8515

cll1.h

diff --git a/cll1.h b/cll1.h
index 597a76adcbb260f32fbe04ddf127ae84fb3904f4..47e7024ad68dab47de88c825cf6575d69cc8f3b5 100644 (file)
--- a/cll1.h
+++ b/cll1.h
@@ -52,7 +52,7 @@
 #define push(A,B) ((A && A!=B)?A->_next=B:0,B=A)
 #define pop(A,B) (B?((A?free(A):0),A=B=B->_next):(A=NULL))
 #define append(A,B) if(B) { void *N=A; A->_next=NULL; for_search(A,B,!A->_next) {A->_next=N; break;}} else push(A,B);
-#define remove(A,B,C) { void **_D=NULL; for_search(A,B,C) { if(_D)*_D=A->_next; else B=A->_next; free(A); A=NULL;} else _D=(void *)&(A->_next); }
+#define remove(A,B,C) { void **_D=NULL; for_search(A,B,C) { if(_D)*_D=A->_next; else B=A->_next; free(A); } else _D=(void *)&(A->_next); }
 #define drop(A,B) for( A=B; A || (B=NULL); B=A, A=A->_next, free(B) )
 /* ------------------------------------------------------------------- */
 /* 3. C<<1 iterators - updated 2008-01-07 by xCh.                      */
This page took 0.141487 seconds and 4 git commands to generate.