X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.c;h=7d257f7fd6954adf6a2a05a83187a06ae70b1a42;hb=614fcba9c0d591fc7c3521f24fcd00836dbc72ae;hp=400c92d933e42ae0da08a5044ece1252ea8aa0a7;hpb=9788caae660683c6c8f98f53b3fc1a4274b73e47;p=swftools.git diff --git a/lib/q.c b/lib/q.c index 400c92d..7d257f7 100644 --- a/lib/q.c +++ b/lib/q.c @@ -36,30 +36,6 @@ char* strdup_n(const char*str, int size) return m; } #endif -void* qmalloc_internal(int len) -{ - void*val = malloc(len); - if(!val) { - printf("memory error! Couldn't reserve %d bytes\n", len); - fprintf(stderr, "memory error! Couldn't reserve %d bytes\n", len); - exit(1); - } - return val; -} -void* qrealloc_internal(void*old, int len) -{ - void*val = realloc(old, len); - if(!val) { - printf("memory error! Couldn't reserve %d bytes\n", len); - fprintf(stderr, "memory error! Couldn't reserve %d bytes\n", len); - exit(1); - } - return val; -} -void qfree_internal(void*old) -{ - free(old); -} char*qstrdup(const char*string) { return strdup(string);