Home | History | Annotate | Download | only in user

Lines Matching refs:type

33 #define NEWARRAY(type,ptr,size,action) do {				\
34 if ((ptr = (type *) calloc(sizeof(type), size)) == NULL) { \
35 warn("can't allocate %ld bytes", (long)(size * sizeof(type))); \
40 #define RENEW(type,ptr,size,action) do { \
41 if ((ptr = (type *) realloc(ptr, sizeof(type) * size)) == NULL) { \
42 warn("can't realloc %ld bytes", (long)(size * sizeof(type))); \
47 #define NEW(type, ptr, action) NEWARRAY(type, ptr, 1, action)