X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/83cd972a1a7f536a8be5c0e7504768c3fb7298f4..3647fcc8af4a63f57b319461fc2fd726a30181d7:/lib/xalloc.h diff --git a/lib/xalloc.h b/lib/xalloc.h index c84bccb8..5b623da2 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -18,6 +18,8 @@ #ifndef XALLOC_H_ # define XALLOC_H_ +# include + # ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args @@ -83,9 +85,5 @@ char *xstrdup PARAMS ((const char *str)); /* Return a malloc'ed copy of SRC. */ # define CLONE(Src) CCLONE (Src, 1) -/* Wrappers for standard functions. */ -#define CALLOC(t, n) ((t *) calloc (sizeof (t), (n))) -#define MALLOC(t, n) ((t *) xmalloc (sizeof (t) * (n))) -#define REALLOC(o, t, n) ((t *) xrealloc ((o), sizeof (t) * (n))) #endif /* !XALLOC_H_ */