odr-priv.h File Reference

Internal ODR definitions. More...

#include <yaz/odr.h>
#include <yaz/yaz-util.h>

Go to the source code of this file.

Data Structures

struct  Odr_ber_tag
 Utility structure used by ber_tag. More...
struct  odr_constack
 stack for BER constructed items More...
struct  Odr_private
 ODR private data. More...

Defines

#define odr_max(o)   ((o)->size - ((o)->bp - (o)->buf))
#define odr_offset(o)   ((o)->bp - (o)->buf)
#define ODR_MAX_STACK   2000
#define ODR_STACK_POP(x)   (x)->op->stack_top = (x)->op->stack_top->prev
#define ODR_STACK_EMPTY(x)   (!(x)->op->stack_top)
#define ODR_STACK_NOT_EMPTY(x)   ((x)->op->stack_top)
#define odr_putc(o, c)

Detailed Description

Internal ODR definitions.

Definition in file odr-priv.h.


Define Documentation

#define odr_max (  )     ((o)->size - ((o)->bp - (o)->buf))
#define ODR_MAX_STACK   2000

Definition at line 79 of file odr-priv.h.

Referenced by odr_constructed_begin().

#define odr_offset (  )     ((o)->bp - (o)->buf)

Definition at line 48 of file odr-priv.h.

Referenced by do_read(), ir_read(), and ztest_esrequest().

#define odr_putc ( o,
 ) 
Value:
( \
    ( \
        (o)->pos < (o)->size ? \
        ( \
            (o)->buf[(o)->pos++] = (c), \
            0 \
        ) : \
        ( \
            odr_grow_block((o), 1) == 0 ? \
            ( \
                (o)->buf[(o)->pos++] = (c), \
                0 \
            ) : \
            ( \
                (o)->error = OSPACE, \
                -1 \
            ) \
        ) \
    ) == 0 ? \
    ( \
        (o)->pos > (o)->top ? \
        ( \
            (o)->top = (o)->pos, \
            0 \
        ) : \
        0 \
    ) : \
        -1 \
)

Definition at line 122 of file odr-priv.h.

Referenced by ber_bitstring(), ber_boolean(), ber_enclen(), ber_enctag(), ber_null(), ber_oidc(), and odr_constructed_end().

#define ODR_STACK_EMPTY (  )     (!(x)->op->stack_top)

Definition at line 113 of file odr-priv.h.

Referenced by ber_tag(), odr_constructed_end(), and odr_constructed_more().

#define ODR_STACK_NOT_EMPTY (  )     ((x)->op->stack_top)

Definition at line 114 of file odr-priv.h.

Referenced by ber_tag(), and odr_peektag().

#define ODR_STACK_POP (  )     (x)->op->stack_top = (x)->op->stack_top->prev

Definition at line 112 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_constructed_end().

Generated on Tue Aug 17 13:13:20 2010 for YAZ by  doxygen 1.6.3