X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=include%2Fidzebra%2Futil.h;h=36a7bf4d30c2df00898b217138f8d8843a933511;hp=1e3516481a24740cabf660419b31a157d7c178bb;hb=a030c87bc444608639905eca95e29f84a4f1d991;hpb=0f78f3fe78e859d9f0d3f0d3e13fcd28085dd427 diff --git a/include/idzebra/util.h b/include/idzebra/util.h index 1e35164..36a7bf4 100644 --- a/include/idzebra/util.h +++ b/include/idzebra/util.h @@ -1,8 +1,5 @@ -/* $Id: util.h,v 1.10 2006-11-14 08:12:07 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 @@ -91,19 +88,15 @@ typedef short ZEBRA_RES; #define ZEBRA_FAIL -1 #define ZEBRA_OK 0 -typedef zint SYSNO; +YAZ_EXPORT zint atoi_zn(const char *buf, zint len); -YAZ_EXPORT -zint atoi_zn (const char *buf, zint len); +YAZ_EXPORT void zebra_zint_encode(char **dst, zint pos); -YAZ_EXPORT -void zebra_zint_encode(char **dst, zint pos); +YAZ_EXPORT void zebra_zint_decode(const char **src, zint *pos); -YAZ_EXPORT -void zebra_zint_decode(const char **src, zint *pos); +YAZ_EXPORT void zebra_exit(const char *msg); -YAZ_EXPORT -void zebra_exit(const char *msg); +YAZ_EXPORT zint atozint(const char *src); YAZ_END_CDECL @@ -114,6 +107,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