X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fber_oid.c;h=cf75c66a4a8e65437a5967a058109981ab812eba;hb=695e6df9fce9b838cb3fe8f49b211ed99943caef;hp=92208d0129e85976df49a93aa9ba885822e9532b;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/odr/ber_oid.c b/odr/ber_oid.c index 92208d0..cf75c66 100644 --- a/odr/ber_oid.c +++ b/odr/ber_oid.c @@ -1,10 +1,18 @@ /* - * Copyright (c) 1995, Index Data + * Copyright (c) 1995-2000, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: ber_oid.c,v $ - * Revision 1.10 1999-11-30 13:47:11 adam + * Revision 1.12 2000-02-29 13:44:55 adam + * Check for config.h (currently not generated). + * + * Revision 1.11 2000/01/31 13:15:21 adam + * Removed uses of assert(3). Cleanup of ODR. CCL parser update so + * that some characters are not surrounded by spaces in resulting term. + * ILL-code updates. + * + * Revision 1.10 1999/11/30 13:47:11 adam * Improved installation. Moved header files to include/yaz. * * Revision 1.9 1995/09/29 17:12:19 quinn @@ -36,6 +44,9 @@ * Initial revision * */ +#if HAVE_CONFIG_H +#include +#endif #include @@ -59,7 +70,6 @@ int ber_oidc(ODR o, Odr_oid *p) return 0; } o->bp += res; - o->left -= res; if (len == 0) { *p = -1; @@ -70,7 +80,6 @@ int ber_oidc(ODR o, Odr_oid *p) p[0] = 2; p[1] = *o->bp - p[0] * 40; o->bp++; - o->left--; pos = 2; len--; while (len) @@ -86,7 +95,6 @@ int ber_oidc(ODR o, Odr_oid *p) p[pos] <<= 7; p[pos] |= *o->bp & 0X7F; len--; - o->left--; } while (*(o->bp++) & 0X80); pos++;