blob: ce3d4d3696ccb901d2618402fd73947f0613cb5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/**
* Misc portability and convenience macros.
**/
#include <stdlib.h>
#define zalloc malloc
#define zrealloc realloc
#define zfree free
#define znew(type, n) (type *)zalloc(sizeof(type) * (n))
#define zrenew(type, p, n) (type *)zrealloc((p), sizeof(type) * (n))
|