X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr-priv.h;h=80366c30b01e482d074d8e4cfa7a1f1c4d921d44;hb=73dfa31aa3d623a2032525637ac07e78886cd4fd;hp=0c609403ad7256a11aa51bc64780df504ac2931a;hpb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;p=yaz-moved-to-github.git diff --git a/odr/odr-priv.h b/odr/odr-priv.h index 0c60940..80366c3 100644 --- a/odr/odr-priv.h +++ b/odr/odr-priv.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: odr-priv.h,v 1.3 2003-01-06 08:20:27 adam Exp $ + * $Id: odr-priv.h,v 1.6 2003-05-24 19:20:14 adam Exp $ */ #ifndef ODR_PRIV_H @@ -40,6 +40,9 @@ struct Odr_ber_tag { /* used to be statics in ber_tag... */ int lcons; }; +#define odr_max(o) ((o)->size - ((o)->bp - (o)->buf)) +#define odr_offset(o) ((o)->bp - (o)->buf) + struct Odr_private { /* stack for constructed types */ #define ODR_MAX_STACK 50 @@ -48,6 +51,8 @@ struct Odr_private { struct Odr_ber_tag odr_ber_tag; yaz_iconv_t iconv_handle; + int error_id; + char element[80]; }; /* Private macro.