00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #ifndef _CURL_MEMORY_H 00006 #define _CURL_MEMORY_H 00007 00008 #include <curl/curl.h> 00009 00010 extern curl_malloc_callback Curl_cmalloc; 00011 extern curl_free_callback Curl_cfree; 00012 extern curl_realloc_callback Curl_crealloc; 00013 extern curl_strdup_callback Curl_cstrdup; 00014 extern curl_calloc_callback Curl_ccalloc; 00015 00016 #ifndef CURLDEBUG 00017 00018 #undef strdup 00019 #define strdup(ptr) Curl_cstrdup(ptr) 00020 #undef malloc 00021 #define malloc(size) Curl_cmalloc(size) 00022 #undef calloc 00023 #define calloc(nbelem,size) Curl_ccalloc(nbelem, size) 00024 #undef realloc 00025 #define realloc(ptr,size) Curl_crealloc(ptr, size) 00026 #undef free 00027 #define free(ptr) Curl_cfree(ptr) 00028 00029 #endif 00030 00031 #endif
1.5.6