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
Zebra uses string attributes for indexing internally. Using set+numeric
[idzebra-moved-to-github.git]
/
test
/
api
/
t2.c
diff --git
a/test/api/t2.c
b/test/api/t2.c
index
6f98f18
..
449331a
100644
(file)
--- a/
test/api/t2.c
+++ b/
test/api/t2.c
@@
-1,4
+1,4
@@
-/* $Id: t2.c,v 1.16 2005-01-15 19:38:35 adam Exp $
+/* $Id: t2.c,v 1.19 2006-05-10 08:13:35 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-28,13
+28,24
@@
const char *myrec[] = {
"</gils>\n",
0};
"</gils>\n",
0};
-int main(int argc, char **argv)
+void tst(int argc, char **argv)
{
{
- ZebraService zs = start_up(0, argc, argv);
- ZebraHandle zh = zebra_open(zs);
+ ZebraService zs = tl_start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs, 0);
- init_data(zh, myrec);
- do_query(__LINE__,zh, "@attr 1=4 my", 1);
+ YAZ_CHECK(tl_init_data(zh, myrec));
+ YAZ_CHECK(tl_query(zh, "@attr 1=4 my", 1));
- return close_down(zh, zs, 0);
+ YAZ_CHECK(tl_close_down(zh, zs));
}
}
+
+TL_MAIN
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+