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=19b6d06d80ffd07356f022b4f2211abe52877a46;hb=68bbd857190c6e29727ca1f5070fe6d8e5102bbb;hpb=5fcf42328e6f732db2f693fb3284507376da0284 diff --git a/src/ccl_stop_words.c b/src/ccl_stop_words.c index 19b6d06..1c22a2f 100644 --- a/src/ccl_stop_words.c +++ b/src/ccl_stop_words.c @@ -1,17 +1,17 @@ -/* - * Copyright (C) 1995-2008, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: ccl_stop_words.c,v 1.3 2008-01-09 21:35:23 adam Exp $ */ -/** +/** * \file ccl_stop_words.c * \brief Removes stop words from terms in RPN tree */ +#if HAVE_CONFIG_H +#include +#endif #include #include -#include #include #include @@ -26,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) @@ -46,7 +46,7 @@ static void append_removed_item(ccl_stop_words_t csw, while (*csip) csip = &(*csip)->next; - + *csip = csi; } @@ -163,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) @@ -197,6 +197,7 @@ int ccl_stop_words_info(ccl_stop_words_t csw, int idx, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab