X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr.c;h=1dbbda68d2a1a5dd30c3fd2db9f04f791cbc9840;hb=6f4d57a5ce5f3f291ce118d8877c95d22ceb4e36;hp=af2665da547fc3bf48d5a9d8b1918f4a13e69505;hpb=20183db4fcbb8161529ee557ead6789ae2097ae0;p=yaz-moved-to-github.git diff --git a/odr/odr.c b/odr/odr.c index af2665d..1dbbda6 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -4,7 +4,22 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr.c,v $ - * Revision 1.20 1995-11-08 17:41:32 quinn + * Revision 1.24 1997-09-01 08:51:07 adam + * New windows NT/95 port using MSV5.0. Had to avoid a few static + * variables used in function ber_tag. These are now part of the + * ODR structure. + * + * 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 +103,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 +141,8 @@ ODR odr_createmem(int direction) r->ecb.can_grow = 1; r->buflen = 0; r->mem = nmem_create(); + r->enable_bias = 1; + r->odr_ber_tag.lclass = -1; odr_reset(r); return r; } @@ -142,6 +160,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)