From 200e95a52c5a411bad2a23f2857bb1d7e5512449 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 7 Jul 2006 12:09:05 +0000 Subject: [PATCH] replaced RPN: with RPN , CQL: with CQL, ans so forth in log messages --- src/querytowrbuf.c | 13 +++++++------ test/tstxmlquery.c | 24 ++++++++++++------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/querytowrbuf.c b/src/querytowrbuf.c index 70e23df..b2d8db7 100644 --- a/src/querytowrbuf.c +++ b/src/querytowrbuf.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * All rights reserved. * - * $Id: querytowrbuf.c,v 1.4 2006-04-19 10:05:03 adam Exp $ + * $Id: querytowrbuf.c,v 1.5 2006-07-07 12:09:05 marc Exp $ */ /** \file querytowrbuf.c @@ -202,21 +202,21 @@ void yaz_query_to_wrbuf(WRBUF b, const Z_Query *q) { case Z_Query_type_1: case Z_Query_type_101: - wrbuf_printf(b,"RPN: "); + wrbuf_printf(b,"RPN "); yaz_rpnquery_to_wrbuf(b, q->u.type_1); break; case Z_Query_type_2: - wrbuf_printf(b, "CCL: %.*s", q->u.type_2->len, q->u.type_2->buf); + wrbuf_printf(b, "CCL %.*s", q->u.type_2->len, q->u.type_2->buf); break; case Z_Query_type_100: - wrbuf_printf(b, "Z39.58: %.*s", q->u.type_100->len, + wrbuf_printf(b, "Z39.58 %.*s", q->u.type_100->len, q->u.type_100->buf); break; case Z_Query_type_104: if (q->u.type_104->which == Z_External_CQL) - wrbuf_printf(b, "CQL: %s", q->u.type_104->u.cql); + wrbuf_printf(b, "CQL %s", q->u.type_104->u.cql); else - wrbuf_printf(b,"Unknown type 104 query %d", q->u.type_104->which); + wrbuf_printf(b,"UNKNOWN type 104 query %d", q->u.type_104->which); } } @@ -224,6 +224,7 @@ void yaz_scan_to_wrbuf(WRBUF b, const Z_AttributesPlusTerm *zapt, oid_value ast) { /* should print attr set here */ + wrbuf_printf(b, "RPN "); yaz_apt_to_wrbuf(b, zapt); } diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 8f0e13b..cd8997a 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.11 2006-07-06 10:17:55 adam Exp $ + * $Id: tstxmlquery.c,v 1.12 2006-07-07 12:09:05 marc Exp $ */ #include @@ -115,7 +115,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr 1=4 computer" + "RPN @attrset Bib-1 @attr 1=4 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -126,7 +126,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr \"1=title\" @attr 2=1 computer" + "RPN @attrset Bib-1 @attr \"1=title\" @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -137,7 +137,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr Exp-1 1=1 @attr 2=1 computer" + "RPN @attrset Bib-1 @attr Exp-1 1=1 @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -148,7 +148,7 @@ static void tst() "a" "b" "\n", - "RPN: @attrset Bib-1 @and a b" + "RPN @attrset Bib-1 @and a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -161,7 +161,7 @@ static void tst() "b" "c" "\n", - "RPN: @attrset Bib-1 @or @and a b c" + "RPN @attrset Bib-1 @or @and a b c" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -169,7 +169,7 @@ static void tst() "\n" "" "abe\n", - "RPN: @attrset Bib-1 @set abe" + "RPN @attrset Bib-1 @set abe" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -186,7 +186,7 @@ static void tst() "a" "b" "\n", - "RPN: @attrset Bib-1 @prox 0 3 1 2 k 2 a b" + "RPN @attrset Bib-1 @prox 0 3 1 2 k 2 a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -196,7 +196,7 @@ static void tst() "" "32" "\n", - "RPN: @attrset Bib-1 @term numeric 32" + "RPN @attrset Bib-1 @term numeric 32" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -206,7 +206,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @term string computer" + "RPN @attrset Bib-1 @term string computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -216,7 +216,7 @@ static void tst() "" "" "\n", - "RPN: @attrset Bib-1 @term null x" + "RPN @attrset Bib-1 @term null x" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -227,7 +227,7 @@ static void tst() "" "x" "\n", - "RPN: @attrset GILS @attr 4=2 x" + "RPN @attrset GILS @attr 4=2 x" ), XML_MATCH); #endif } -- 1.7.10.4