X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=adt%2Fxmalloc.h;h=0d6cd3bc51b93112b9b0b9e70083c9fa7532fcde;hb=ee79a99034abe9e4702001ebdedb465148e2f2fa;hp=e6517f320ac7cc27eb20f24d0d364a93424715aa;hpb=d5e8df5885f97ea65839f8970b8697549c207610;p=cparser diff --git a/adt/xmalloc.h b/adt/xmalloc.h index e6517f3..0d6cd3b 100644 --- a/adt/xmalloc.h +++ b/adt/xmalloc.h @@ -1,28 +1 @@ -/** - * @file - * @brief More comfortable allocations. - * @author Markus Armbruster - * @data 1999 by getting from fiasco - * @version $Id$ - * Copyright: (c) 1995, 1996 Markus Armbruster - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. - */ -#ifndef _XMALLOC_H_ -#define _XMALLOC_H_ - -#include - -__attribute__((malloc)) -void *xmalloc(size_t size); - -__attribute__((malloc)) -void *xcalloc(size_t num, size_t size); - -void *xrealloc(void *ptr, size_t size); - -__attribute__((malloc)) -char *xstrdup(const char *str); - -#define xfree(ptr) free(ptr) - -#endif +#include