util: define free_func_t
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "macro.h"
|
||||
|
||||
typedef void (*free_func_t)(void *p);
|
||||
|
||||
#define new(t, n) ((t*) malloc_multiply(sizeof(t), (n)))
|
||||
|
||||
#define new0(t, n) ((t*) calloc((n), sizeof(t)))
|
||||
|
||||
Reference in New Issue
Block a user