From: Adam Dickmeiss Date: Thu, 23 Dec 1999 09:03:32 +0000 (+0000) Subject: Changed behaviour of trunc=105 so that * is regular .* and ! is regular . X-Git-Tag: ZEBRA.1.1~110 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=32e3781dfb248c2109df1753d33f9a6aeec2a78a;p=idzebra-moved-to-github.git Changed behaviour of trunc=105 so that * is regular .* and ! is regular . --- diff --git a/index/zrpn.c b/index/zrpn.c index e87cf46..7a23376 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zrpn.c,v $ - * Revision 1.98 1999-11-30 13:48:04 adam + * Revision 1.99 1999-12-23 09:03:32 adam + * Changed behaviour of trunc=105 so that * is regular .* and ! is regular . + * + * Revision 1.98 1999/11/30 13:48:04 adam * Improved installation. Updated for inclusion of YAZ header files. * * Revision 1.97 1999/10/14 14:33:50 adam @@ -723,7 +726,7 @@ static int term_104 (ZebraMaps zebra_maps, int reg_type, return i; } -/* term_105/106: handle term, where trunc=Process # and ! and right trunc */ +/* term_105/106: handle term, where trunc=Process * and ! and right trunc */ static int term_105 (ZebraMaps zebra_maps, int reg_type, const char **src, char *dst, int space_split, char *dst_term, int right_truncate) @@ -733,6 +736,7 @@ static int term_105 (ZebraMaps zebra_maps, int reg_type, int i = 0; int j = 0; + logf (LOG_LOG, " if (!term_pre (zebra_maps, reg_type, src, "*!", "*!")) return 0; s0 = *src; @@ -741,7 +745,7 @@ static int term_105 (ZebraMaps zebra_maps, int reg_type, if (*s0 == '*') { dst[i++] = '.'; - dst[i++] = '+'; + dst[i++] = '*'; dst_term[j++] = *s0++; } else if (*s0 == '!')