From dfecbd92db8f9581ec24f1cd29c48198e1413546 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 12 Aug 2008 12:16:46 +0200 Subject: [PATCH] Added ord_list_print. --- include/rset.h | 1 + rset/rset.c | 5 +++++ 2 files changed, 6 insertions(+) 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 -- 1.7.10.4