X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclptree.c;h=0f50a948a1919d54362857102f491edac8e6c679;hb=448e7f2a48f6485a8d452c75420524fb37453bc1;hp=4e42e002f1e56d1bfece5bc56b54b92820949ab5;hpb=4b89c0a02975f8140f079e5883692a7de30126be;p=yaz-moved-to-github.git diff --git a/ccl/cclptree.c b/ccl/cclptree.c index 4e42e00..0f50a94 100644 --- a/ccl/cclptree.c +++ b/ccl/cclptree.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: cclptree.c,v $ - * Revision 1.7 2000-01-31 13:15:21 adam + * Revision 1.8 2000-11-16 09:58:02 adam + * Implemented local AttributeSet setting for CCL field maps. + * + * 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. @@ -95,7 +98,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: