ALLOC_SEQ

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8412 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-06-20 13:21:23 +00:00
parent 6947e2ba7b
commit 8ba69c1946

View File

@@ -93,5 +93,7 @@
#endif
#define ALLOC(X) ((X) = malloc(sizeof(*(X))))
#define ALLOC_SEQ(X, N) do { (X)->len = (N); \
(X)->val = calloc((X)->len, sizeof(*(X)->val)); } while(0)
#endif /* __HEADERS_H__ */