X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fsnippet.c;h=63f35628cb25ff69be37953f4acefa7366697597;hb=5ba92997dbb29abf9a102711533e1fb73424d956;hp=7df67f2e9a9191a8391103d355db1145236c3313;hpb=11de0965b256736f01e55b17a603eb9ebad5ec12;p=idzebra-moved-to-github.git diff --git a/util/snippet.c b/util/snippet.c index 7df67f2..63f3562 100644 --- a/util/snippet.c +++ b/util/snippet.c @@ -1,5 +1,5 @@ -/* $Id: snippet.c,v 1.5 2005-08-26 10:13:31 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: snippet.c,v 1.9 2006-06-07 11:00:46 adam Exp $ + Copyright (C) 1995-2006 Index Data ApS This file is part of the Zebra server. @@ -95,9 +95,9 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, while(1) { - int window_start; - int first_seq_no_best_window = 0; - int last_seq_no_best_window = 0; + zint window_start; + zint first_seq_no_best_window = 0; + zint last_seq_no_best_window = 0; int number_best_window = 0; zebra_snippet_word *hit_w, *doc_w; int min_ord = 0; /* not set yet */ @@ -118,7 +118,7 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, { zebra_snippet_word *look_w = hit_w; int number_this = 0; - int seq_no_last = 0; + zint seq_no_last = 0; while (look_w && look_w->seqno < hit_w->seqno + window_size) { if (look_w->ord == ord) @@ -137,8 +137,10 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, } } yaz_log(YLOG_DEBUG, "ord=%d", ord); - yaz_log(YLOG_DEBUG, "first_seq_no_best_window=%d", first_seq_no_best_window); - yaz_log(YLOG_DEBUG, "last_seq_no_best_window=%d", last_seq_no_best_window); + yaz_log(YLOG_DEBUG, "first_seq_no_best_window=" ZINT_FORMAT, + first_seq_no_best_window); + yaz_log(YLOG_DEBUG, "last_seq_no_best_window=" ZINT_FORMAT, + last_seq_no_best_window); yaz_log(YLOG_DEBUG, "number_best_window=%d", number_best_window); window_start = (first_seq_no_best_window + last_seq_no_best_window - @@ -166,3 +168,11 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, return result; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +