X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=include%2Fidzebra%2Futil.h;h=f53a48a7d8339c5ffee0d729d35cc8ef2982c9e5;hp=d8f314cc06e946bba290d0e187c293168ea718e3;hb=4f71537a478fc551989245f0dde38997714eedc1;hpb=b3af54f7bf58db2a5d85b6a54b720bf6c5359c1f diff --git a/include/idzebra/util.h b/include/idzebra/util.h index d8f314c..f53a48a 100644 --- a/include/idzebra/util.h +++ b/include/idzebra/util.h @@ -1,8 +1,5 @@ -/* $Id: util.h,v 1.11 2006-11-21 22:17:49 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1994-2011 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -26,8 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -#include - /** expand GCC_ATTRIBUTE if GCC is in use. See : http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html @@ -46,11 +41,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ZEBRA_GCC_ATTR(x) #endif -/* 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 /** \var zint @@ -99,6 +89,8 @@ YAZ_EXPORT void zebra_zint_decode(const char **src, zint *pos); YAZ_EXPORT void zebra_exit(const char *msg); +YAZ_EXPORT zint atozint(const char *src); + YAZ_END_CDECL #define CAST_ZINT_TO_INT(x) (int)(x) @@ -108,6 +100,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab