From: Adam Dickmeiss Date: Tue, 12 Aug 2008 10:16:46 +0000 (+0200) Subject: Added ord_list_print. X-Git-Tag: v2.0.34~41 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=dfecbd92db8f9581ec24f1cd29c48198e1413546;p=idzebra-moved-to-github.git Added ord_list_print. --- diff --git a/include/rset.h b/include/rset.h index 1a50c65..59ccf2e 100644 --- a/include/rset.h +++ b/include/rset.h @@ -40,6 +40,7 @@ struct ord_list { struct ord_list *ord_list_create(NMEM nmem); struct ord_list *ord_list_append(NMEM nmem, struct ord_list *list, int ord); struct ord_list *ord_list_dup(NMEM nmem, struct ord_list *list); +void ord_list_print(struct ord_list *list); /** * rset_term is all we need to know of a term to do ranking etc. diff --git a/rset/rset.c b/rset/rset.c index 5a18742..f97b8fb 100644 --- a/rset/rset.c +++ b/rset/rset.c @@ -315,6 +315,11 @@ struct ord_list *ord_list_dup(NMEM nmem, struct ord_list *list) return n; } +void ord_list_print(struct ord_list *list) +{ + for (; list; list = list->next) + yaz_log(YLOG_LOG, "ord_list %d", list->ord); +} /** \brief Creates a TERMID entry. \param name Term/Name buffer with given length