X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Flogrpn.c;h=e6a225755da670355aeda182c00fb8c5a2368993;hb=3c287bc1d48ee6a1f300054c2cebd0ba312bd5b9;hp=e70db5f26fd84ef4577fcc99ef606f31a0d30c7b;hpb=c5a81c4eb35bcab571d42f4e02a69e4ed76dc20b;p=yaz-moved-to-github.git diff --git a/src/logrpn.c b/src/logrpn.c index e70db5f..e6a2257 100644 --- a/src/logrpn.c +++ b/src/logrpn.c @@ -1,12 +1,14 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ - /** * \file logrpn.c * \brief Implements Z39.50 Query Printing */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -247,7 +249,7 @@ static char *complex_op_name(Z_Operator *op) } } -static char *prox_unit_name(Z_ProximityOperator *op) +char *yaz_prox_unit_name(Z_ProximityOperator *op) { if (op->which!=Z_ProximityOperator_known) return "private"; @@ -290,7 +292,7 @@ static void zlog_structure(Z_RPNStructure *zs, int depth, *op->u.prox->distance, *op->u.prox->ordered ? "T" : "F", relToStr(*op->u.prox->relationType), - prox_unit_name(op->u.prox) ); + yaz_prox_unit_name(op->u.prox) ); break; default: yaz_log(loglevel, "%*.0s unknown complex", depth, "");