X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclptree.c;h=79f45232ceebd47dad5a54426fd0cf3b7fe364d1;hb=3bb2e157affd19490974257a252472716d7858b3;hp=4e42e002f1e56d1bfece5bc56b54b92820949ab5;hpb=c126b2a625462f95475f00efdfdf9ce41a0e9c79;p=yaz-moved-to-github.git diff --git a/ccl/cclptree.c b/ccl/cclptree.c index 4e42e00..79f4523 100644 --- a/ccl/cclptree.c +++ b/ccl/cclptree.c @@ -44,20 +44,9 @@ /* CCL print rpn tree - infix notation * Europagate, 1995 * - * $Log: cclptree.c,v $ - * Revision 1.7 2000-01-31 13:15:21 adam - * Removed uses of assert(3). Cleanup of ODR. CCL parser update so - * that some characters are not surrounded by spaces in resulting term. - * ILL-code updates. + * $Id: cclptree.c,v 1.9 2001-11-27 22:38:50 adam Exp $ * - * Revision 1.6 1999/11/30 13:47:11 adam - * Improved installation. Moved header files to include/yaz. - * - * Revision 1.5 1997/04/30 08:52:06 quinn - * Null - * - * Revision 1.4 1996/10/11 15:00:25 adam - * CCL parser from Europagate Email gateway 1.0. + * Old Europagate Log: * * Revision 1.6 1995/05/16 09:39:26 adam * LICENSE. @@ -95,7 +84,11 @@ void ccl_pr_tree (struct ccl_rpn_node *rpn, FILE *fd_out) { struct ccl_rpn_attr *attr; for (attr = rpn->u.t.attr_list; attr; attr = attr->next) - fprintf (fd_out, " %d=%d", attr->type, attr->value); + if (attr->set) + fprintf (fd_out, " %s,%d=%d", attr->set, attr->type, + attr->value); + else + fprintf (fd_out, " %d=%d", attr->type, attr->value); } break; case CCL_RPN_AND: