projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First go for nmake makefile for yaz++
[yazpp-moved-to-github.git]
/
src
/
yaz-z-query.cpp
diff --git
a/src/yaz-z-query.cpp
b/src/yaz-z-query.cpp
index
8d391d5
..
5e8ba84
100644
(file)
--- a/
src/yaz-z-query.cpp
+++ b/
src/yaz-z-query.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-z-query.cpp,v 1.13 2003-10-03 13:01:42 adam Exp $
+ * $Id: yaz-z-query.cpp,v 1.15 2003-12-20 22:42:53 adam Exp $
*/
#include <yaz++/z-query.h>
*/
#include <yaz++/z-query.h>
@@
-78,9
+78,9
@@
void Yaz_Z_Query::print(char *str, int len)
}
else
strcpy(str, wrbuf_buf(wbuf));
}
else
strcpy(str, wrbuf_buf(wbuf));
+ wrbuf_free(wbuf,1);
}
odr_reset(odr_decode);
}
odr_reset(odr_decode);
- wrbuf_free(wbuf,1);
}
int Yaz_Z_Query::match(Yaz_Z_Query *other)
}
int Yaz_Z_Query::match(Yaz_Z_Query *other)
@@
-179,10
+179,9
@@
int Yaz_Z_Query::rpn2pquery(Z_RPNStructure *s, WRBUF buf)
WRBUF Yaz_Z_Query::zquery2pquery(Z_Query *q)
{
WRBUF Yaz_Z_Query::zquery2pquery(Z_Query *q)
{
- WRBUF buf = wrbuf_alloc();
-
if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
return 0;
if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
return 0;
+ WRBUF buf = wrbuf_alloc();
if (q->u.type_1->attributeSetId) {
/* Output attribute set ID */
wrbuf_puts(buf, "@attrset ");
if (q->u.type_1->attributeSetId) {
/* Output attribute set ID */
wrbuf_puts(buf, "@attrset ");