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
GFS: remove member hits from bend_present_rr
[yaz-moved-to-github.git]
/
test
/
tstpquery.c
diff --git
a/test/tstpquery.c
b/test/tstpquery.c
index
f099862
..
475ba68
100644
(file)
--- a/
test/tstpquery.c
+++ b/
test/tstpquery.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: tstpquery.c,v 1.4 2007-01-03 08:42:16 adam Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-45,9
+43,9
@@
int expect_pqf(const char *pqf, const char *expect_pqf, int expect_error)
{
yaz_rpnquery_to_wrbuf(wrbuf, rpn);
{
yaz_rpnquery_to_wrbuf(wrbuf, rpn);
- if (!strcmp(wrbuf_buf(wrbuf), expect_pqf))
+ if (!strcmp(wrbuf_cstr(wrbuf), expect_pqf))
res = 1;
res = 1;
- wrbuf_free(wrbuf, 1);
+ wrbuf_destroy(wrbuf);
}
}
yaz_pqf_destroy(parser);
}
}
yaz_pqf_destroy(parser);
@@
-79,6
+77,7
@@
int main (int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab