]> git.saurik.com Git - bison.git/blobdiff - lib/xalloc.h
Add stdbool.h.
[bison.git] / lib / xalloc.h
index c84bccb81f71a0caed8077776b4b5256c57aad8d..5b623da2039b29096b4d05094940b8052b453460 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef XALLOC_H_
 # define XALLOC_H_
 
+# include <stddef.h>
+
 # 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_ */