X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ir-tcl.c;h=66eebf379ded6abb842aab770e0818d6896c63f1;hb=e0b948549dd88cd5e8e2b4a7b8c22e4a996c72a3;hp=54488896480d9a30ed7a716fac46dc53a9f0976a;hpb=1ab5c45763803335f22a1f6a37edf762b2270c8b;p=ir-tcl-moved-to-github.git diff --git a/ir-tcl.c b/ir-tcl.c index 5448889..66eebf3 100644 --- a/ir-tcl.c +++ b/ir-tcl.c @@ -5,7 +5,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: ir-tcl.c,v $ - * Revision 1.112 1999-03-22 06:51:34 adam + * Revision 1.114 1999-05-17 20:37:41 adam + * Fixed problem with ASN code. + * + * Revision 1.113 1999/04/20 10:01:46 adam + * Modified calls to ODR encoders/decoders (name argument). + * + * Revision 1.112 1999/03/22 06:51:34 adam * Implemented sort. * * Revision 1.111 1999/02/11 11:30:09 adam @@ -2709,7 +2715,7 @@ static int do_getExplain (void *o, Tcl_Interp *interp, int argc, char **argv) return TCL_OK; assert (rl->u.dbrec.buf); odr_setbuf (p->odr_in, rl->u.dbrec.buf, rl->u.dbrec.size, 0); - if (!(*etype->fun)(p->odr_in, (char **) &rr, 0)) + if (!(*etype->fun)(p->odr_in, (char **) &rr, 0, 0)) return TCL_OK; if (etype->what != Z_External_explainRecord) @@ -3040,7 +3046,7 @@ static int do_sort (void *o, Tcl_Interp *interp, int argc, char **argv) #ifdef ASN_COMPILED req->num_inputResultSetNames = 1; req->inputResultSetNames = (Z_InternationalString **) - odr_malloc (out, sizeof(*req->inputResultSetNames)); + odr_malloc (p->odr_out, sizeof(*req->inputResultSetNames)); req->inputResultSetNames[0] = obj->setName; #else req->inputResultSetNames = @@ -3881,7 +3887,7 @@ static void ir_handleDBRecord (IrTcl_Obj *p, IrTcl_RecordList *rl, odr_setbuf (p->odr_in, (char*) oe->u.octet_aligned->buf, oe->u.octet_aligned->len, 0); - if (!(*etype->fun)(p->odr_in, (char **) &rr, 0)) + if (!(*etype->fun)(p->odr_in, (char **) &rr, 0, 0)) { rl->u.dbrec.type = VAL_NONE; return; @@ -4273,7 +4279,7 @@ static void ir_select_read (ClientData clientData) p->apduOffset = -1; odr_setbuf (p->odr_in, p->buf_in, r, 0); logf (LOG_DEBUG, "cs_get ok, total size %d", r); - if (!z_APDU (p->odr_in, &apdu, 0)) + if (!z_APDU (p->odr_in, &apdu, 0, 0)) { logf (LOG_DEBUG, "cs_get failed: %s", odr_errmsg (odr_geterror (p->odr_in)));