X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fccl_stop_words.c;h=1c22a2fd7024f0e1bc48c0f7036f012a2f92b60d;hp=3165378cad9aeb77edd7cff64ca86115e82deba5;hb=236966a07ceb8e28649470995f88251c37423715;hpb=d0e351c12fff564d876958e860338d43716dc269 diff --git a/src/ccl_stop_words.c b/src/ccl_stop_words.c index 3165378..1c22a2f 100644 --- a/src/ccl_stop_words.c +++ b/src/ccl_stop_words.c @@ -1,8 +1,8 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ -/** +/** * \file ccl_stop_words.c * \brief Removes stop words from terms in RPN tree */ @@ -12,7 +12,6 @@ #include #include -#include #include #include @@ -27,7 +26,7 @@ struct ccl_stop_words { NMEM nmem; /* memory for removed items */ struct ccl_stop_info *removed_items; }; - + static void append_removed_item(ccl_stop_words_t csw, const char *qname, const char *t, size_t len) @@ -47,7 +46,7 @@ static void append_removed_item(ccl_stop_words_t csw, while (*csip) csip = &(*csip)->next; - + *csip = csi; } @@ -164,11 +163,11 @@ int ccl_stop_words_tree(ccl_stop_words_t csw, CCL_bibset bibset, struct ccl_rpn_node **t) { struct ccl_rpn_node *r; - + /* remove list items */ nmem_reset(csw->nmem); csw->removed_items = 0; - + r = ccl_remove_stop_r(csw, bibset, *t); *t = r; if (csw->removed_items)