X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ir-tcl.c;h=9b4ee5c20e39476407ab2f9d8f96457f6f809ebb;hb=d026c3e06f6e19e5ed4174ab1a504a4b5af79183;hp=0a2bf4942b163ebf72ab2c9ad4fae044ee0bf7e3;hpb=3046d5072a66fe49ffc19b890b3a69dda0aed5a3;p=ir-tcl-moved-to-github.git diff --git a/ir-tcl.c b/ir-tcl.c index 0a2bf49..9b4ee5c 100644 --- a/ir-tcl.c +++ b/ir-tcl.c @@ -4,7 +4,10 @@ * See the file LICENSE for details. * * $Log: ir-tcl.c,v $ - * Revision 1.127 2004-05-10 08:38:45 adam + * Revision 1.128 2005-03-10 13:54:56 adam + * Remove CCL support for scan + * + * Revision 1.127 2004/05/10 08:38:45 adam * Do not use obsolete YAZ defines * * Revision 1.126 2003/11/29 17:24:09 adam @@ -3588,8 +3591,6 @@ static int do_scan (void *o, Tcl_Interp *interp, int argc, char **argv) req->num_databaseNames = p->set_inher.num_databaseNames; req->databaseNames = p->set_inher.databaseNames; -#if 1 -/* !CCL2RPN */ if (!(req->termListAndStartPoint = p_query_scan (p->odr_out, p->protocol_type, &req->attributeSet, start_term))) @@ -3598,25 +3599,6 @@ static int do_scan (void *o, Tcl_Interp *interp, int argc, char **argv) code = ir_tcl_error_exec (interp, argc, argv); goto out; } -#else - rpn = ccl_find_str(p->bibset, start_term, &r, &pos); - if (r) - { - Tcl_AppendResult (interp, "ccl syntax error ", ccl_err_msg(r), NULL); - code = ir_tcl_error_exec (interp, argc, argv); - goto out; - } - bib1.proto = p->protocol_type; - bib1.oclass = CLASS_ATTSET; - bib1.value = VAL_BIB1; - - req->attributeSet = oid_getoidbyent (&bib1); - if (!(req->termListAndStartPoint = ccl_scan_query (p->odr_out, rpn))) - { - code = TCL_ERROR; - goto out; - } -#endif req->stepSize = &obj->stepSize; req->numberOfTermsRequested = &obj->numberOfTermsRequested; req->preferredPositionInResponse = &obj->preferredPositionInResponse;