X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fxmalloc.h;h=60ef839c698edd9de5c22f86c213698e3b79d20e;hb=5ed3b6561d90d13f64be7f9ae8beaf4a0b3f8e32;hp=2ba02bd9ceedb16d5042ad4fa3e92e77745ac044;hpb=39f322672612cc6146a9a85fd32d2f8c325763da;p=yaz-moved-to-github.git diff --git a/include/yaz/xmalloc.h b/include/yaz/xmalloc.h index 2ba02bd..60ef839 100644 --- a/include/yaz/xmalloc.h +++ b/include/yaz/xmalloc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2003, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * * 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,14 +23,17 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: xmalloc.h,v 1.3 2003-02-18 14:28:52 adam Exp $ + * $Id: xmalloc.h,v 1.7 2005-06-25 15:46:03 adam Exp $ + */ +/** + * \file xmalloc.h + * \brief Header for malloc interface. */ #ifndef XMALLOC_H #define XMALLOC_H -#include -#include +#include #include @@ -46,7 +49,7 @@ YAZ_BEGIN_CDECL YAZ_EXPORT void *xrealloc_f (void *o, size_t size, const char *file, int line); YAZ_EXPORT void *xmalloc_f (size_t size, const char *file, int line); YAZ_EXPORT void *xcalloc_f (size_t nmemb, size_t size, - const char *file, int line); + const char *file, int line); YAZ_EXPORT char *xstrdup_f (const char *p, const char *file, int line); YAZ_EXPORT void xfree_f (void *p, const char *file, int line); YAZ_EXPORT void xmalloc_trav_f(const char *s, const char *file, int line); @@ -54,3 +57,11 @@ YAZ_EXPORT void xmalloc_trav_f(const char *s, const char *file, int line); YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +