X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fodr.c;h=49cb77b8139863002128ee61c776d9ab855c0bdb;hp=af2665da547fc3bf48d5a9d8b1918f4a13e69505;hb=88941d4a9e272daca9323cd19bf4829b6d32871b;hpb=20183db4fcbb8161529ee557ead6789ae2097ae0 diff --git a/odr/odr.c b/odr/odr.c index af2665d..49cb77b 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -4,7 +4,17 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr.c,v $ - * Revision 1.20 1995-11-08 17:41:32 quinn + * Revision 1.23 1997-04-30 08:52:10 quinn + * Null + * + * 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 +98,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 +136,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 +154,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)