From bbb2a7935d42314d1b39341468604cdc7ad3bcef Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 7 Sep 2006 18:10:34 +0200 Subject: [PATCH] - parts of URLs resolving moved to string.c and refs.c - new expr's subtype image_sim_match (similar to match) - some bugfixes --- lib/clists.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clists.h b/lib/clists.h index 9c0f816a..4f1848d8 100644 --- a/lib/clists.h +++ b/lib/clists.h @@ -48,6 +48,8 @@ static inline int clist_empty(clist *l) #define CLIST_FOR_EACH(type,n,list) for(type n=(void*)(list).head.next; (cnode*)(n) != &(list).head; n=(void*)((cnode*)(n))->next) #define CLIST_FOR_EACH_DELSAFE(type,n,list,tmp) for(type n=(void*)(list).head.next; tmp=(void*)((cnode*)(n))->next, (cnode*)(n) != &(list).head; n=(void*)tmp) +#define CLIST_FOR_EACH_BACKWARDS(type,n,list) for(type n=(void*)(list).head.prev; (cnode*)(n) != &(list).head; n=(void*)((cnode*)(n))->prev) + static inline void clist_insert_after(cnode *what, cnode *after) { cnode *before = after->next; -- 2.39.2