From b222488b0a184da190a9b0767c22987fc39ff9df Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 28 Jan 2008 21:36:24 +0100 Subject: [PATCH] Indexer: Rewritten the support for multiple sources... Indexer.Source is now a link list. --- lib/clists.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/clists.h b/lib/clists.h index 8b67608c..921b7dc5 100644 --- a/lib/clists.h +++ b/lib/clists.h @@ -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 -- 2.39.2