projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use GCC attribute warn_unsed_result for a few of the most important
[idzebra-moved-to-github.git]
/
index
/
limit.c
diff --git
a/index/limit.c
b/index/limit.c
index
20dff80
..
972d77e
100644
(file)
--- a/
index/limit.c
+++ b/
index/limit.c
@@
-1,4
+1,4
@@
-/* $Id: limit.c,v 1.4 2005-10-30 22:31:28 adam Exp $
+/* $Id: limit.c,v 1.6 2005-11-29 09:37:04 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-27,7
+27,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <yaz/diagbib1.h>
#include "index.h"
#include <yaz/diagbib1.h>
#include "index.h"
-#define ZEBRA_LIMIT_DEBUG 1
+#define ZEBRA_LIMIT_DEBUG 0
struct zebra_limit {
int complement_flag;
struct zebra_limit {
int complement_flag;
@@
-101,12
+101,15
@@
void zebra_limit_for_rset(struct zebra_limit *zl,
void **filter_data)
{
#if ZEBRA_LIMIT_DEBUG
void **filter_data)
{
#if ZEBRA_LIMIT_DEBUG
- yaz_log(YLOG_LOG, "zebra_limit_for_rset debug enabled");
+ yaz_log(YLOG_LOG, "zebra_limit_for_rset debug enabled zl=%p", zl);
#endif
if (zl && zl->ids)
{
struct zebra_limit *hl;
#endif
if (zl && zl->ids)
{
struct zebra_limit *hl;
+#if ZEBRA_LIMIT_DEBUG
+ yaz_log(YLOG_LOG, "enable limit");
+#endif
hl = zebra_limit_create(zl->complement_flag, zl->ids);
*filter_data = hl;
*filter_func = zebra_limit_filter_cb;
hl = zebra_limit_create(zl->complement_flag, zl->ids);
*filter_data = hl;
*filter_func = zebra_limit_filter_cb;