memory-util: add a concept for gcc cleanup attribute based array destruction
This commit is contained in:
committed by
Yu Watanabe
parent
c7d941c527
commit
ff3f1464ec
@@ -15,6 +15,7 @@
|
||||
|
||||
typedef void (*free_func_t)(void *p);
|
||||
typedef void* (*mfree_func_t)(void *p);
|
||||
typedef void (*free_array_func_t)(void *p, size_t n);
|
||||
|
||||
/* If for some reason more than 4M are allocated on the stack, let's abort immediately. It's better than
|
||||
* proceeding and smashing the stack limits. Note that by default RLIMIT_STACK is 8M on Linux. */
|
||||
|
||||
Reference in New Issue
Block a user