2 * Copyright (c) 1995-2003, Index Data
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: odr_tag.c,v 1.1 2003-10-27 12:21:34 adam Exp $
14 int odr_peektag(ODR o, int *zclass, int *tag, int *cons)
16 if (o->direction != ODR_DECODE)
18 odr_seterror(o, OOTHER, 48);
21 if (o->op->stackp > -1 && !odr_constructed_more(o))
23 if (ber_dectag(o->bp, zclass, tag, cons, odr_max(o)) <= 0)
25 odr_seterror(o, OREQUIRED, 49);
31 int odr_implicit_settag(ODR o, int zclass, int tag)
43 int odr_initmember(ODR o, void *p, int size)
45 char **pp = (char **) p;
49 if (o->direction == ODR_DECODE)
50 *pp = (char *)odr_malloc(o, size);