X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fq.c;h=7d257f7fd6954adf6a2a05a83187a06ae70b1a42;hp=400c92d933e42ae0da08a5044ece1252ea8aa0a7;hb=efc92c191c8417ab626b0e8e639f8d516e4000ff;hpb=6d22f1376c2fcad7c872db608630468d3abcca23 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);