X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr-priv.h;h=fef7455b925fb7c3df61a2f918d4e871e7e437fa;hb=ec1f815d5348cd21e393f76bc212c910c34bbc45;hp=5a5ca1a85a6ae1ef10120486c8f64fc1c875a391;hpb=a67cc28231d95548fda7d7b9626b0ead7eb0f13f;p=yaz-moved-to-github.git diff --git a/odr/odr-priv.h b/odr/odr-priv.h index 5a5ca1a..fef7455 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,18 +23,15 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: odr-priv.h,v 1.1 2002-07-25 13:20:20 adam Exp $ + * $Id: odr-priv.h,v 1.5 2003-05-20 19:55:29 adam Exp $ */ #ifndef ODR_PRIV_H #define ODR_PRIV_H -#if HAVE_ICONV_H -#include -#endif - #include +#include struct Odr_ber_tag { /* used to be statics in ber_tag... */ int lclass; @@ -43,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 @@ -50,9 +50,9 @@ struct Odr_private { odr_constack stack[ODR_MAX_STACK]; struct Odr_ber_tag odr_ber_tag; -#if HAVE_ICONV_H - iconv_t iconv_handle; -#endif + yaz_iconv_t iconv_handle; + int error_id; + char addinfo[80]; }; /* Private macro.