X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fzebrautl.h;h=ecc5d42a6f469f8b0bafb5e5c0e4d17a82d5235b;hb=3921e1ac4b8cbf5c9a36ed230912f51e11f4a267;hp=dd5ae6a5a0ec19665e814bc8cb48d818a3ed6760;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/include/zebrautl.h b/include/zebrautl.h index dd5ae6a..ecc5d42 100644 --- a/include/zebrautl.h +++ b/include/zebrautl.h @@ -1,6 +1,6 @@ -/* $Id: zebrautl.h,v 1.7 2002-08-02 19:26:55 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: zebrautl.h,v 1.14 2005-03-08 14:02:08 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -20,13 +20,24 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - - #ifndef ZEBRA_UTIL_H #define ZEBRA_UTIL_H #include -#include -#include + +#include +#include + +/* check that we don't have all too old yaz */ +#ifndef YLOG_ERRNO +#error Need a modern yaz with YLOG_ defines +#endif + +YAZ_BEGIN_CDECL +zint atoi_zn (const char *buf, zint len); +YAZ_END_CDECL + +#define CAST_ZINT_TO_INT(x) (int)(x) +#define CAST_ZINT_TO_DOUBLE(x) (double)(x) #endif