From a75b3f7b47c074f2191a33c1f14ad4148754ed80 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 7 Apr 2017 23:58:20 +0200 Subject: Throw away the C client since it doesn't work --- client/memory.h | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 client/memory.h (limited to 'client/memory.h') diff --git a/client/memory.h b/client/memory.h deleted file mode 100644 index 19cfb95..0000000 --- a/client/memory.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#include - -#define malloc(num,type) \ - ((type*)check_after_allocation("malloc",num,sizeof(type),malloc((num)*sizeof(type)))) -#define calloc(num,type) \ - ((type*)check_after_allocation("calloc",num,sizeof(type),calloc((num),sizeof(type)))) -#define realloc(ptr,num,type) \ - ((type*)check_after_allocation("realloc",num,sizeof(type),realloc((ptr),(num)*sizeof(type)))) -#define strdup(str) \ - ((char*)check_after_allocation_str("strdup",strdup(str))) - -void* check_after_allocation(const char *func,size_t num,size_t sz,void *ptr); -void* check_after_allocation_str(const char *func,void *ptr); -- cgit v1.2.3-54-g00ecf