diff options
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -8,3 +8,23 @@ fprintf(stderr, "Failed at %s:%i: %s\n", __FILE__, __LINE__, #EXPR);\ exit(1);\ } while (0) + + +struct allocinfo { + void *real_beginning; + size_t real_size; + size_t size; + size_t extent; + size_t alignment; + size_t zeroed; + size_t refcount; +}; + + +extern size_t alloc_fail_in; + + +size_t get_pagesize(void); +size_t round_up(size_t); +int have_custom_malloc(void); /* return 0 if run under valgrind(1) */ +struct allocinfo *get_allocinfo(void *); |