]> mj.ucw.cz Git - libucw.git/commitdiff
- parts of URLs resolving moved to string.c and refs.c
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 7 Sep 2006 16:10:34 +0000 (18:10 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Thu, 7 Sep 2006 16:10:34 +0000 (18:10 +0200)
- new expr's subtype image_sim_match (similar to match)
- some bugfixes

lib/clists.h

index 9c0f816a201e13175486c611092e700887d1dce4..4f1848d8d2fc903a9327cab05df40c444df6a171 100644 (file)
@@ -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;