extensions/curl/curl-src/lib/memory.h
changeset 3839 05c359144594
parent 3838 aa2d7aa5322f
child 3840 de598d016ff7
     1.1 --- a/extensions/curl/curl-src/lib/memory.h	Sun Mar 17 22:05:33 2013 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,50 +0,0 @@
     1.4 -#ifndef _CURL_MEMORY_H
     1.5 -#define _CURL_MEMORY_H
     1.6 -/***************************************************************************
     1.7 - *                                  _   _ ____  _
     1.8 - *  Project                     ___| | | |  _ \| |
     1.9 - *                             / __| | | | |_) | |
    1.10 - *                            | (__| |_| |  _ <| |___
    1.11 - *                             \___|\___/|_| \_\_____|
    1.12 - *
    1.13 - * Copyright (C) 1998 - 2004, Daniel Stenberg, <[email protected]>, et al.
    1.14 - *
    1.15 - * This software is licensed as described in the file COPYING, which
    1.16 - * you should have received as part of this distribution. The terms
    1.17 - * are also available at http://curl.haxx.se/docs/copyright.html.
    1.18 - *
    1.19 - * You may opt to use, copy, modify, merge, publish, distribute and/or sell
    1.20 - * copies of the Software, and permit persons to whom the Software is
    1.21 - * furnished to do so, under the terms of the COPYING file.
    1.22 - *
    1.23 - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
    1.24 - * KIND, either express or implied.
    1.25 - *
    1.26 - * $Id: memory.h,v 1.2 2004/10/06 07:50:18 bagder Exp $
    1.27 - ***************************************************************************/
    1.28 -
    1.29 -#include <curl/curl.h> /* for the typedefs */
    1.30 -
    1.31 -extern curl_malloc_callback Curl_cmalloc;
    1.32 -extern curl_free_callback Curl_cfree;
    1.33 -extern curl_realloc_callback Curl_crealloc;
    1.34 -extern curl_strdup_callback Curl_cstrdup;
    1.35 -extern curl_calloc_callback Curl_ccalloc;
    1.36 -
    1.37 -#ifndef CURLDEBUG
    1.38 -/* Only do this define-mania if we're not using the memdebug system, as that
    1.39 -   has preference on this magic. */
    1.40 -#undef strdup
    1.41 -#define strdup(ptr) Curl_cstrdup(ptr)
    1.42 -#undef malloc
    1.43 -#define malloc(size) Curl_cmalloc(size)
    1.44 -#undef calloc
    1.45 -#define calloc(nbelem,size) Curl_ccalloc(nbelem, size)
    1.46 -#undef realloc
    1.47 -#define realloc(ptr,size) Curl_crealloc(ptr, size)
    1.48 -#undef free
    1.49 -#define free(ptr) Curl_cfree(ptr)
    1.50 -
    1.51 -#endif
    1.52 -
    1.53 -#endif /* _CURL_MEMORY_H */