X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-ccl.c;h=75369455689a88198e07e3617f8c8fde84b08bd3;hp=87eab8d2cd84ab64f0d4e3bc09878b210d79463a;hb=192c53b56174fa2d80db61029ba95bfa2a1a480a;hpb=05c274ef315384faafcc5900c17468f0ea2474e6 diff --git a/src/yaz-ccl.c b/src/yaz-ccl.c index 87eab8d..7536945 100644 --- a/src/yaz-ccl.c +++ b/src/yaz-ccl.c @@ -1,18 +1,18 @@ -/* - * Copyright (c) 1996-2004, Index Data. +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: yaz-ccl.c,v 1.2 2004-10-15 00:19:01 adam Exp $ */ /** * \file yaz-ccl.c * \brief Implements CCL node tree to RPN converson. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include -#include #include #include @@ -25,9 +25,9 @@ Z_RPNQuery *ccl_rpn_query (ODR o, struct ccl_rpn_node *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; } @@ -41,10 +41,19 @@ Z_AttributesPlusTerm *ccl_scan_query (ODR o, struct ccl_rpn_node *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; } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +