X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=include%2Fzebrautl.h;h=ecc5d42a6f469f8b0bafb5e5c0e4d17a82d5235b;hp=fa1997f24a524f71cb92a98d0e587084e597b872;hb=8ed385caafd1d9695a5a9c0783f0dbe2a53f3e80;hpb=3c5f6226f97612c0d6ac40591f600587c5ffa858 diff --git a/include/zebrautl.h b/include/zebrautl.h index fa1997f..ecc5d42 100644 --- a/include/zebrautl.h +++ b/include/zebrautl.h @@ -1,36 +1,43 @@ -/* - * Copyright (C) 1995-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: zebrautl.h,v $ - * Revision 1.5 1999-02-02 14:50:47 adam - * Updated WIN32 code specific sections. Changed header. - * - * Revision 1.4 1997/10/27 14:33:04 adam - * Moved towards generic character mapping depending on "structure" - * field in abstract syntax file. Fixed a few memory leaks. Fixed - * bug with negative integers when doing searches with relational - * operators. - * - * Revision 1.3 1997/09/17 12:19:11 adam - * Zebra version corresponds to YAZ version 1.4. - * Changed Zebra server so that it doesn't depend on global common_resource. - * - * Revision 1.2 1997/09/05 15:30:06 adam - * Changed prototype for chr_map_input - added const. - * Added support for C++, headers uses extern "C" for public definitions. - * - * Revision 1.1 1996/10/29 13:46:12 adam - * Removed obsolete headers alexpath, alexutil. Created zebrautl.h as - * a replacement. - * - */ +/* $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. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +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