-/*
- * Copyright (C) 1995-2005, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) Index Data
* See the file LICENSE for details.
- *
- * $Id: yaz-ccl.c,v 1.4 2005-06-25 15:46:06 adam Exp $
*/
/**
* \file yaz-ccl.c
* \brief Implements CCL node tree to RPN converson.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <yaz/yaz-ccl.h>
#include <yaz/pquery.h>
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;
}
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