summaryrefslogtreecommitdiffstats
path: root/contrib/byacc/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/defs.h')
-rw-r--r--contrib/byacc/defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/byacc/defs.h b/contrib/byacc/defs.h
index 58ebc8d..300b209 100644
--- a/contrib/byacc/defs.h
+++ b/contrib/byacc/defs.h
@@ -157,6 +157,7 @@
#define CALLOC(k,n) (calloc((size_t)(k),(size_t)(n)))
#define FREE(x) (free((char*)(x)))
#define MALLOC(n) (malloc((size_t)(n)))
+#define TCMALLOC(t,n) ((t*) calloc((size_t)(n), sizeof(t)))
#define TMALLOC(t,n) ((t*) malloc((size_t)(n) * sizeof(t)))
#define NEW(t) ((t*)allocate(sizeof(t)))
#define NEW2(n,t) ((t*)allocate(((size_t)(n)*sizeof(t))))
OpenPOWER on IntegriCloud