projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document . Remove if/endif section
[yaz-moved-to-github.git]
/
ztest
/
ztest.c
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
8011e0f
..
d58d724
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-52,14
+52,9
@@
static Odr_int get_term_hit(Z_RPNStructure *s)
Odr_oct *oct = apt->term->u.general;
if (oct->len > 0 && oct->buf[0] >= '0' && oct->buf[0] <= '9')
{
Odr_oct *oct = apt->term->u.general;
if (oct->len > 0 && oct->buf[0] >= '0' && oct->buf[0] <= '9')
{
- char *endptr;
WRBUF hits_str = wrbuf_alloc();
wrbuf_write(hits_str, (const char *) oct->buf, oct->len);
WRBUF hits_str = wrbuf_alloc();
wrbuf_write(hits_str, (const char *) oct->buf, oct->len);
-#ifdef WIN32
- h = _strtoui64(wrbuf_cstr(hits_str), &endptr, 10);
-#else
- h = strtoll(wrbuf_cstr(hits_str), &endptr, 10);
-#endif
+ h = odr_atoi(wrbuf_cstr(hits_str));
wrbuf_destroy(hits_str);
}
}
wrbuf_destroy(hits_str);
}
}
@@
-93,7
+88,7
@@
static Odr_int get_hit_count(Z_Query *q)
return h;
}
return h;
}
-/** \brief checks if it's a dummy Slow database..
+/** \brief checks if it's a dummy Slow database
\param basename database name to check
\param association backend association (or NULL if not available)
\retval 1 is slow database
\param basename database name to check
\param association backend association (or NULL if not available)
\retval 1 is slow database