X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_bool.c;h=db1067879a74654a38cb6c8cae48610f83ae0ea9;hp=2e4cca3581f31836b6fdd22c792610e5447f4135;hb=10f391e000230e5a93c768f541a24a379809489e;hpb=c6e47cbbff56f39f6d81b079ebaeac41d793d4d9 diff --git a/src/ber_bool.c b/src/ber_bool.c index 2e4cca3..db10678 100644 --- a/src/ber_bool.c +++ b/src/ber_bool.c @@ -1,9 +1,16 @@ /* - * Copyright (c) 1995-2003, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: ber_bool.c,v 1.1 2003-10-27 12:21:30 adam Exp $ + * $Id: ber_bool.c,v 1.5 2005-08-11 14:21:55 adam Exp $ + */ + +/** + * \file ber_bool.c + * \brief Implements BER BOOLEAN encoding and decoding + * + * This source file implements BER encoding and decoding of + * the BOOLEAN type. */ #if HAVE_CONFIG_H @@ -24,9 +31,6 @@ int ber_boolean(ODR o, int *val) return 0; if (odr_putc(o, *val) < 0) return 0; -#ifdef ODR_DEBUG - fprintf(stderr, "[val=%d]\n", *val); -#endif return 1; case ODR_DECODE: if ((res = ber_declen(o->bp, &len, odr_max(o))) < 0) @@ -42,12 +46,17 @@ int ber_boolean(ODR o, int *val) } *val = *o->bp; o->bp++; -#ifdef ODR_DEBUG - fprintf(stderr, "[val=%d]\n", *val); -#endif return 1; case ODR_PRINT: return 1; default: odr_seterror(o, OOTHER, 11); return 0; } } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +