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
Changed the way yaz-client encodes charset negotiation information
[yaz-moved-to-github.git]
/
src
/
yaz-ccl.c
diff --git
a/src/yaz-ccl.c
b/src/yaz-ccl.c
index
41ab879
..
8fe39c8
100644
(file)
--- a/
src/yaz-ccl.c
+++ b/
src/yaz-ccl.c
@@
-1,8
+1,12
@@
/*
/*
- * Copyright (c) 1996-2003, Index Data.
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: yaz-ccl.c,v 1.1 2003-10-27 12:21:36 adam Exp $
+ * $Id: yaz-ccl.c,v 1.6 2007-03-19 14:40:07 adam Exp $
+ */
+/**
+ * \file yaz-ccl.c
+ * \brief Implements CCL node tree to RPN converson.
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-21,9
+25,9
@@
Z_RPNQuery *ccl_rpn_query (ODR o, struct ccl_rpn_node *p)
ccl_pquery(wr, p);
ccl_pquery(wr, p);
- q = yaz_pqf_parse(parser, o, wrbuf_buf(wr));
+ q = yaz_pqf_parse(parser, o, wrbuf_cstr(wr));
- wrbuf_free(wr, 1);
+ wrbuf_destroy(wr);
yaz_pqf_destroy(parser);
return q;
}
yaz_pqf_destroy(parser);
return q;
}
@@
-37,10
+41,18
@@
Z_AttributesPlusTerm *ccl_scan_query (ODR o, struct ccl_rpn_node *p)
ccl_pquery(wr, p);
ccl_pquery(wr, p);
- q = yaz_pqf_scan(parser, o, &setp, wrbuf_buf(wr));
+ q = yaz_pqf_scan(parser, o, &setp, wrbuf_cstr(wr));
- wrbuf_free(wr, 1);
+ wrbuf_destroy(wr);
yaz_pqf_destroy(parser);
return q;
}
yaz_pqf_destroy(parser);
return q;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+