X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclqual.c;h=55cf77359e238b608a290b9b04ff82746886e2b4;hb=8f7995bdfe85beb2ff6fa08e99bb05242f3bf71f;hp=2787a7baf381baa48e36af6cc920d4f3e9765492;hpb=3888e88cde70f36851544ab7acc04e0943470ec6;p=yaz-moved-to-github.git diff --git a/ccl/cclqual.c b/ccl/cclqual.c index 2787a7b..55cf773 100644 --- a/ccl/cclqual.c +++ b/ccl/cclqual.c @@ -45,7 +45,19 @@ * Europagate, 1995 * * $Log: cclqual.c,v $ - * Revision 1.5 1996-10-11 15:00:25 adam + * Revision 1.8 1997-09-29 08:56:38 adam + * Changed CCL parser to be thread safe. New type, CCL_parser, declared + * and a create/destructers ccl_parser_create/ccl_parser/destory has + * been added. + * + * Revision 1.7 1997/09/01 08:48:12 adam + * New windows NT/95 port using MSV5.0. Only a few changes made + * to avoid warnings. + * + * Revision 1.6 1997/04/30 08:52:07 quinn + * Null + * + * Revision 1.5 1996/10/11 15:00:25 adam * CCL parser from Europagate Email gateway 1.0. * * Revision 1.9 1995/05/16 09:39:27 adam @@ -186,14 +198,17 @@ void ccl_qual_rm (CCL_bibset *b) * len: Length of name. * return: Attribute info. NULL if not found. */ -struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len) +struct ccl_rpn_attr *ccl_qual_search (CCL_parser cclp, + const char *name, size_t len) { struct ccl_qualifier *q; - assert (b); - for (q = b->list; q; q = q->next) + assert (cclp); + if (!cclp->bibset) + return NULL; + for (q = cclp->bibset->list; q; q = q->next) if (strlen(q->name) == len) - if (ccl_case_sensitive) + if (cclp->ccl_case_sensitive) { if (!memcmp (name, q->name, len)) return q->attr_list;