]> mj.ucw.cz Git - libucw.git/commitdiff
Indexer:
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 28 Jan 2008 20:36:24 +0000 (21:36 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 28 Jan 2008 20:36:24 +0000 (21:36 +0100)
Rewritten the support for multiple sources...
Indexer.Source is now a link list.

lib/clists.h

index 8b67608c8fb9e15be4dfb6a0bfeae87cb38d3f33..921b7dc571ff4290717b3b09c5a4f449bf174caf 100644 (file)
@@ -121,4 +121,12 @@ static inline void clist_insert_list_after(clist *what, cnode *after)
     }
 }
 
+static inline uns clist_size(clist *l)
+{
+  uns i = 0;
+  CLIST_FOR_EACH(cnode *, n, *l)
+    i++;
+  return i;
+}
+
 #endif