diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 35ba0057d6..a26c1d9d06 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -100,6 +100,8 @@ bool streq_ptr(const char *a, const char *b); #define new0(t, n) ((t*) calloc((n), sizeof(t))) +#define newa(t, n) ((t*) alloca(sizeof(t)*(n))) + #define newdup(t, p, n) ((t*) memdup(p, sizeof(t)*(n)) #define malloc0(n) (calloc((n), 1)) |