X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2Fd1_prtree.c;h=053684fd0a4f6986a238c08ff3989b4a4e39137f;hp=1607a2e35c1fe9cfc4b24fea2dc5da5c258417e8;hb=f69d4aa4609ff3daa71733da1ea0fcd8322ab954;hpb=bc6408d690659dbefebbbde30e284962aeee6e24 diff --git a/retrieval/d1_prtree.c b/retrieval/d1_prtree.c index 1607a2e..053684f 100644 --- a/retrieval/d1_prtree.c +++ b/retrieval/d1_prtree.c @@ -1,10 +1,21 @@ /* - * Copyright (c) 1995-1997, Index Data. + * Copyright (c) 1995-1998, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_prtree.c,v $ - * Revision 1.1 1997-10-27 14:04:07 adam + * Revision 1.4 1998-05-18 13:07:06 adam + * Changed the way attribute sets are handled by the retriaval module. + * Extended Explain conversion / schema. + * Modified server and client to work with ASN.1 compiled protocol handlers. + * + * Revision 1.3 1998/02/27 14:05:34 adam + * Added printing of integer nodes. + * + * Revision 1.2 1997/11/06 11:36:44 adam + * Implemented variant match on simple elements -data1 tree and Espec-1. + * + * Revision 1.1 1997/10/27 14:04:07 adam * New debug utility, data1_pr_tree, that dumps a data1 tree. * */ @@ -37,10 +48,10 @@ static void pr_tree (data1_handle dh, data1_node *n, FILE *out, int level) fprintf (out, "text '%.*s'\n", n->u.data.len, n->u.data.data); break; case DATA1I_num: - fprintf (out, "num\n"); + fprintf (out, "num %.*s\n", n->u.data.len, n->u.data.data); break; case DATA1I_oid: - fprintf (out, "oid\n"); + fprintf (out, "oid %.*s\n", n->u.data.len, n->u.data.data); break; default: fprintf (out, "unknown(%d)\n", n->u.data.what); @@ -49,6 +60,12 @@ static void pr_tree (data1_handle dh, data1_node *n, FILE *out, int level) break; case DATA1N_variant: fprintf (out, "variant\n"); +#if 0 + if (n->u.variant.type->name) + fprintf (out, " class=%s type=%d value=%s\n", + n->u.variant.type->name, n->u.variant.type->type, + n->u.variant.value); +#endif break; default: fprintf (out, "unknown(%d)\n", n->which);