summaryrefslogtreecommitdiff
path: root/halibut.h
diff options
context:
space:
mode:
Diffstat (limited to 'halibut.h')
-rw-r--r--halibut.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/halibut.h b/halibut.h
index 62b87db..dfd92c1 100644
--- a/halibut.h
+++ b/halibut.h
@@ -261,9 +261,10 @@ void free_para_list(paragraph *p);
word *dup_word_list(word *w);
char *dupstr(char *s);
-#define mknew(type) ( (type *) smalloc (sizeof (type)) )
-#define mknewa(type, number) ( (type *) smalloc ((number) * sizeof (type)) )
-#define resize(array, len) ( srealloc ((array), (len) * sizeof (*(array))) )
+#define snew(type) ( (type *) smalloc (sizeof (type)) )
+#define snewn(number, type) ( (type *) smalloc ((number) * sizeof (type)) )
+#define sresize(array, number, type) \
+ ( (type *) srealloc ((array), (number) * sizeof (type)) )
#define lenof(array) ( sizeof(array) / sizeof(*(array)) )
/*