Skip to content

Commit

Permalink
libcurl's memory.h renamed to curl_memory.h
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Apr 21, 2009
1 parent 9770899 commit 33a3753
Show file tree
Hide file tree
Showing 55 changed files with 108 additions and 106 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -11,6 +11,8 @@ Yang Tse (21 Apr 2009)
setup_once.h. Inclusion of each header file is based on the definition of
NEED_MALLOC_H and NEED_MEMORY_H respectively.

Renamed libcurl's memory.h to curl_memory.h

Daniel Stenberg (20 Apr 2009)
- Leanic Lefever reported a crash and did some detailed research on why and
how it occurs (http://curl.haxx.se/mail/lib-2009-04/0289.html). The
Expand Down
72 changes: 36 additions & 36 deletions lib/Makefile.Watcom

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Makefile.inc
Expand Up @@ -18,7 +18,7 @@ HHEADERS = arpa_telnet.h netrc.h file.h timeval.h qssl.h hostip.h \
getinfo.h strequal.h krb4.h memdebug.h http_chunks.h \
strtok.h connect.h llist.h hash.h content_encoding.h share.h \
curl_md5.h http_digest.h http_negotiate.h http_ntlm.h inet_pton.h \
strtoofft.h strerror.h inet_ntop.h curlx.h memory.h setup.h \
strtoofft.h strerror.h inet_ntop.h curlx.h curl_memory.h setup.h \
transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h \
tftp.h sockaddr.h splay.h strdup.h setup_once.h socks.h ssh.h nssg.h \
curl_base64.h rawstr.h curl_addrinfo.h curl_sspi.h slist.h
2 changes: 1 addition & 1 deletion lib/base64.c
Expand Up @@ -43,7 +43,7 @@
#include "urldata.h" /* for the SessionHandle definition */
#include "easyif.h" /* for Curl_convert_... prototypes */
#include "curl_base64.h"
#include "memory.h"
#include "curl_memory.h"

/* include memdebug.h last */
#include "memdebug.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/connect.c
Expand Up @@ -81,7 +81,7 @@
#include "if2ip.h"
#include "strerror.h"
#include "connect.h"
#include "memory.h"
#include "curl_memory.h"
#include "select.h"
#include "url.h" /* for Curl_safefree() */
#include "multiif.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/content_encoding.c
Expand Up @@ -32,7 +32,7 @@
#include <curl/curl.h>
#include "sendf.h"
#include "content_encoding.h"
#include "memory.h"
#include "curl_memory.h"

#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/cookie.c
Expand Up @@ -93,7 +93,7 @@ Example set of cookies:
#include "strequal.h"
#include "strtok.h"
#include "sendf.h"
#include "memory.h"
#include "curl_memory.h"
#include "share.h"
#include "strtoofft.h"
#include "rawstr.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/curl_addrinfo.c
Expand Up @@ -54,7 +54,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
8 changes: 4 additions & 4 deletions lib/memory.h → lib/curl_memory.h
@@ -1,13 +1,13 @@
#ifndef _CURL_MEMORY_H
#define _CURL_MEMORY_H
#ifndef HEADER_CURL_MEMORY_H
#define HEADER_CURL_MEMORY_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -47,4 +47,4 @@ extern curl_calloc_callback Curl_ccalloc;

#endif

#endif /* _CURL_MEMORY_H */
#endif /* HEADER_CURL_MEMORY_H */
2 changes: 1 addition & 1 deletion lib/curl_sspi.c
Expand Up @@ -32,7 +32,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/easy.c
Expand Up @@ -77,7 +77,7 @@
#include "hostip.h"
#include "share.h"
#include "strdup.h"
#include "memory.h"
#include "curl_memory.h"
#include "progress.h"
#include "easyif.h"
#include "select.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/escape.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand All @@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "memory.h"
#include "curl_memory.h"
/* urldata.h and easyif.h are included for Curl_convert_... prototypes */
#include "urldata.h"
#include "easyif.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/file.c
Expand Up @@ -82,7 +82,7 @@
#include "getinfo.h"
#include "transfer.h"
#include "url.h"
#include "memory.h"
#include "curl_memory.h"
#include "parsedate.h" /* for the week day and month names */

#define _MPRINTF_REPLACE /* use our functions only */
Expand Down
4 changes: 2 additions & 2 deletions lib/formdata.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -122,7 +122,7 @@ Content-Disposition: form-data; name="FILECONTENT"
#include "easyif.h" /* for Curl_convert_... prototypes */
#include "formdata.h"
#include "strequal.h"
#include "memory.h"
#include "curl_memory.h"

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/ftp.c
Expand Up @@ -94,7 +94,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/getenv.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand All @@ -32,7 +32,7 @@
#endif

#include <curl/curl.h>
#include "memory.h"
#include "curl_memory.h"

#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/getinfo.c
Expand Up @@ -32,7 +32,7 @@
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include "memory.h"
#include "curl_memory.h"
#include "sslgen.h"
#include "connect.h" /* Curl_getconnectinfo() */
#include "progress.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/gtls.c
Expand Up @@ -54,7 +54,7 @@

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/hash.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand All @@ -32,7 +32,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostares.c
Expand Up @@ -76,7 +76,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/hostasyn.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -64,7 +64,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostip.c
Expand Up @@ -72,7 +72,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostip4.c
Expand Up @@ -66,7 +66,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostip6.c
Expand Up @@ -66,7 +66,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostsyn.c
Expand Up @@ -64,7 +64,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/hostthre.c
Expand Up @@ -74,7 +74,7 @@

#include "inet_ntop.h"

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/http.c
Expand Up @@ -91,7 +91,7 @@
#include "share.h"
#include "hostip.h"
#include "http.h"
#include "memory.h"
#include "curl_memory.h"
#include "select.h"
#include "parsedate.h" /* for the week day and month names */
#include "strtoofft.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/http_chunks.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -35,7 +35,7 @@

#include "content_encoding.h"
#include "http.h"
#include "memory.h"
#include "curl_memory.h"
#include "easyif.h" /* for Curl_convert_to_network prototype */

#define _MPRINTF_REPLACE /* use our functions only */
Expand Down
2 changes: 1 addition & 1 deletion lib/http_digest.c
Expand Up @@ -38,7 +38,7 @@
#include "http_digest.h"
#include "strtok.h"
#include "url.h" /* for Curl_safefree() */
#include "memory.h"
#include "curl_memory.h"
#include "easyif.h" /* included for Curl_convert_... prototypes */

#define _MPRINTF_REPLACE /* use our functions only */
Expand Down
2 changes: 1 addition & 1 deletion lib/http_negotiate.c
Expand Up @@ -40,7 +40,7 @@
#include "rawstr.h"
#include "curl_base64.h"
#include "http_negotiate.h"
#include "memory.h"
#include "curl_memory.h"

#ifdef HAVE_SPNEGO
# include <spnegohelp.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/http_ntlm.c
Expand Up @@ -59,7 +59,7 @@
#include "curl_base64.h"
#include "http_ntlm.h"
#include "url.h"
#include "memory.h"
#include "curl_memory.h"

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/if2ip.c
Expand Up @@ -64,7 +64,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>

#include "memory.h"
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/krb4.c
Expand Up @@ -7,7 +7,7 @@
*
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* Copyright (c) 2004 - 2008 Daniel Stenberg
* Copyright (c) 2004 - 2009 Daniel Stenberg
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -63,7 +63,7 @@
#include "sendf.h"
#include "krb4.h"
#include "inet_ntop.h"
#include "memory.h"
#include "curl_memory.h"

/* The last #include file should be: */
#include "memdebug.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/krb5.c
Expand Up @@ -2,7 +2,7 @@
*
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* Copyright (c) 2004 - 2008 Daniel Stenberg
* Copyright (c) 2004 - 2009 Daniel Stenberg
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -61,7 +61,7 @@
#include "ftp.h"
#include "sendf.h"
#include "krb4.h"
#include "memory.h"
#include "curl_memory.h"

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/ldap.c
Expand Up @@ -70,7 +70,7 @@
#include "strequal.h"
#include "strtok.h"
#include "curl_ldap.h"
#include "memory.h"
#include "curl_memory.h"
#include "curl_base64.h"
#include "rawstr.h"

Expand Down

0 comments on commit 33a3753

Please sign in to comment.