X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr-priv.h;h=01b1a4f9edf0b8a03a86651e89d7d2f77863fca5;hb=3f7b54230a51be797c9439b091aa59133da16732;hp=d8ad03c3c906b7a8a766d661bb9164eff15648b8;hpb=cf9f213fff1ae6b2471f8367114b93ae45ed8b75;p=yaz-moved-to-github.git diff --git a/odr/odr-priv.h b/odr/odr-priv.h index d8ad03c..01b1a4f 100644 --- a/odr/odr-priv.h +++ b/odr/odr-priv.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2002, Index Data. + * Copyright (c) 1995-2003, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -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.2 2002-08-28 07:53:51 adam Exp $ + * $Id: odr-priv.h,v 1.4 2003-03-11 11:03:31 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,7 @@ struct Odr_private { struct Odr_ber_tag odr_ber_tag; yaz_iconv_t iconv_handle; + int error_id; }; /* Private macro.