X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzrpn.c;h=9dd7d2de026f83eb775c094410776d4055689682;hb=e19bd45069a282b054015f9cf88e109968b9fa7f;hp=265dc6a6eefd6e44901515d74a54d7b969d704f8;hpb=4e1ac996f683092752e957b56ac228b2b9c1a381;p=idzebra-moved-to-github.git diff --git a/index/zrpn.c b/index/zrpn.c index 265dc6a..9dd7d2d 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zrpn.c,v $ - * Revision 1.88 1998-10-18 07:54:52 adam + * Revision 1.90 1998-11-16 16:03:43 adam + * Moved loggin utilities to Yaz. Was implemented in file zlogs.c. + * + * Revision 1.89 1998/11/16 10:11:55 adam + * Added addtional info for error 114 - unsupported use attribute. + * + * Revision 1.88 1998/10/18 07:54:52 adam * Additional info added for diagnostics 114 (Unsupported use attribute) and * 121 (Unsupported attribute set). * @@ -1016,7 +1022,10 @@ static int string_term (ZebraHandle zh, Z_AttributesPlusTerm *zapt, } if (!prefix_len) { - zh->errCode = 114; + char val_str[32]; + sprintf (val_str, "%d", use_value); + zh->errCode = 114; + zh->errString = nmem_strdup (stream, val_str); return -1; } term_dict[prefix_len++] = ')'; @@ -2210,7 +2219,6 @@ void rpn_scan (ZebraHandle zh, ODR stream, Z_AttributesPlusTerm *zapt, if (attributeset == VAL_NONE) attributeset = VAL_BIB1; - zlog_scan (zapt, attributeset); logf (LOG_DEBUG, "position = %d, num = %d", pos, num); attr_init (&use, zapt, 1);