X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcclqfile.c;h=b4661b3fd61cdcd65edbf975f43a01e926b95d16;hb=17118baaeff3d358a93d93aacfa46cef14ee5bab;hp=3d64a729c8eb36f3d34d54c514d1e1280a14b8f3;hpb=c9b2e9553e1e59d74556a83f38d39e16a389a286;p=yaz-moved-to-github.git diff --git a/src/cclqfile.c b/src/cclqfile.c index 3d64a72..b4661b3 100644 --- a/src/cclqfile.c +++ b/src/cclqfile.c @@ -234,12 +234,24 @@ void ccl_qual_field(CCL_bibset bibset, const char *cp, const char *qual_name) yaz_log(YLOG_WARN, "ccl_qual_field2 fail: %s", addinfo); } -void ccl_qual_fitem (CCL_bibset bibset, const char *cp, const char *qual_name) +int ccl_qual_fitem2(CCL_bibset bibset, const char *cp, const char *qual_name, + const char **addinfo) { if (*qual_name == '@') + { + /* ccl_qual_add_special can not return error (yet) */ ccl_qual_add_special(bibset, qual_name+1, cp); + *addinfo = 0; + return 0; + } else - ccl_qual_field(bibset, cp, qual_name); + return ccl_qual_field2(bibset, cp, qual_name, addinfo); +} + +void ccl_qual_fitem(CCL_bibset bibset, const char *cp, const char *qual_name) +{ + const char *addinfo = 0; + ccl_qual_fitem2(bibset, cp, qual_name, &addinfo); } void ccl_qual_buf(CCL_bibset bibset, const char *buf)