X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr.c;h=d5b0ce5401f150726eca4928c04e3deb9dd28000;hb=11ac75c90de88b723bb755b12cacb9f388fe1502;hp=af2665da547fc3bf48d5a9d8b1918f4a13e69505;hpb=20183db4fcbb8161529ee557ead6789ae2097ae0;p=yaz-moved-to-github.git diff --git a/odr/odr.c b/odr/odr.c index af2665d..d5b0ce5 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr.c,v $ - * Revision 1.20 1995-11-08 17:41:32 quinn + * Revision 1.22 1996-10-08 12:58:17 adam + * New ODR function, odr_choice_enable_bias, to control behaviour of + * odr_choice_bias. + * + * Revision 1.21 1996/07/26 13:38:19 quinn + * Various smaller things. Gathered header-files. + * + * Revision 1.20 1995/11/08 17:41:32 quinn * Smallish. * * Revision 1.19 1995/11/01 13:54:41 quinn @@ -88,7 +95,8 @@ char *odr_errlist[] = "Protocol error", "Malformed data", "Stack overflow", - "Length of constructed type different from sum of members" + "Length of constructed type different from sum of members", + "Overflow writing definite length of constructed type" }; char *odr_errmsg(int n) @@ -125,6 +133,7 @@ ODR odr_createmem(int direction) r->ecb.can_grow = 1; r->buflen = 0; r->mem = nmem_create(); + r->enable_bias = 1; odr_reset(r); return r; } @@ -142,6 +151,7 @@ void odr_reset(ODR o) o->stackp = -1; nmem_reset(o->mem); o->choice_bias = -1; + o->lenlen = 1; } void odr_destroy(ODR o)