X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclptree.c;h=08036557eab9972b50e45f999fd065d0cf961686;hp=41997c48e4e8352a7f12810b14f2eea9df7c48cf;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5 diff --git a/src/cclptree.c b/src/cclptree.c index 41997c4..0803655 100644 --- a/src/cclptree.c +++ b/src/cclptree.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ -/** +/** * \file cclptree.c * \brief Implements CCL parse tree printing * @@ -43,13 +43,13 @@ static void ccl_pquery_complex(WRBUF w, struct ccl_rpn_node *p, int indent) const char *cp = p->u.p[2]->u.t.term; /* exlusion distance ordered relation which-code unit-code */ if (*cp == '!') - { + { /* word order specified */ if (yaz_isdigit(cp[1])) wrbuf_printf(w, "@prox 0 %s 1 2 k 2", cp+1); else wrbuf_printf(w, "@prox 0 1 1 2 k 2"); - } + } else if (*cp == '%') { /* word order not specified */ @@ -142,7 +142,7 @@ void ccl_pr_tree(struct ccl_rpn_node *rpn, FILE *fd_out) WRBUF w = wrbuf_alloc(); ccl_pquery_indent(w, rpn, 0); - + fputs(wrbuf_cstr(w), fd_out); wrbuf_destroy(w); }