aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index 96b1aeb..08830be 100644
--- a/utils.h
+++ b/utils.h
@@ -14,8 +14,7 @@
#define streq(a, b) (strcmp(a, b) == 0)
#define new(t) memcheck(calloc(1, sizeof(t)))
-#define xcalloc(a,b) memcheck(calloc(a,b))
-#define xrealloc(a,b) memcheck(realloc(a,b))
+#define grow(arr,n) memcheck(realloc(arr,sizeof(arr[0])*(n)))
__attribute__((nonnull(1)))
char unescapechar(const char *escaped, const char **end);