X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fber_tag.c;h=b626f0ac98ab564b2ab5a9500540c8703728a167;hb=9c459af695605b44a044ad206562818be10034f1;hp=49c1a34505be35345442b2352370e06a2bb3fc31;hpb=aa82967af8f06004b567ad1ed40c67b056c44e7b;p=yaz-moved-to-github.git diff --git a/odr/ber_tag.c b/odr/ber_tag.c index 49c1a34..b626f0a 100644 --- a/odr/ber_tag.c +++ b/odr/ber_tag.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. + * Copyright (c) 1995, Index Data + * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: ber_tag.c,v $ - * Revision 1.10 1995-04-18 08:15:18 quinn + * Revision 1.12 1995-09-27 15:02:57 quinn + * Modified function heads & prototypes. + * + * Revision 1.11 1995/05/16 08:50:48 quinn + * License, documentation, and memory fixes + * + * Revision 1.10 1995/04/18 08:15:18 quinn * Added dynamic memory allocation on encoding (whew). Code is now somewhat * neater. We'll make the same change for decoding one day. * @@ -50,7 +56,7 @@ * * Should perhaps be odr_tag? */ -int ber_tag(ODR o, void *p, int class, int tag, int *constructed, int opt) +int MDF ber_tag(ODR o, void *p, int class, int tag, int *constructed, int opt) { static int lclass = -1, ltag, br, lcons; /* save t&c rather than decoding twice */ @@ -128,7 +134,7 @@ int ber_tag(ODR o, void *p, int class, int tag, int *constructed, int opt) * BER-encode a class/tag/constructed package (identifier octets). Return * number of bytes encoded, or -1 if out of bounds. */ -int ber_enctag(ODR o, int class, int tag, int constructed) +int MDF ber_enctag(ODR o, int class, int tag, int constructed) { int cons = (constructed ? 1 : 0), n = 0; unsigned char octs[sizeof(int)], b; @@ -168,7 +174,7 @@ int ber_enctag(ODR o, int class, int tag, int constructed) /* ber_dectag * Decode BER identifier octets. Return number of bytes read or -1 for error. */ -int ber_dectag(unsigned char *buf, int *class, int *tag, int *constructed) +int MDF ber_dectag(unsigned char *buf, int *class, int *tag, int *constructed) { unsigned char *b = buf;