~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/memdebug.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *                            | (__| |_| |  _ <| |___
9
9
 *                             \___|\___/|_| \_\_____|
10
10
 *
11
 
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 
11
 * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
12
12
 *
13
13
 * This software is licensed as described in the file COPYING, which
14
14
 * you should have received as part of this distribution. The terms
46
46
                                 const char *source);
47
47
CURL_EXTERN void curl_dofree(void *ptr, int line, const char *source);
48
48
CURL_EXTERN char *curl_dostrdup(const char *str, int line, const char *source);
 
49
#ifdef WIN32
 
50
CURL_EXTERN wchar_t *curl_dowcsdup(const wchar_t *str, int line,
 
51
                                   const char *source);
 
52
#endif
 
53
 
49
54
CURL_EXTERN void curl_memdebug(const char *logname);
50
55
CURL_EXTERN void curl_memlimit(long limit);
51
56
CURL_EXTERN void curl_memlog(const char *format, ...);
84
89
#define realloc(ptr,size) curl_dorealloc(ptr, size, __LINE__, __FILE__)
85
90
#define free(ptr) curl_dofree(ptr, __LINE__, __FILE__)
86
91
 
 
92
#ifdef WIN32
 
93
#  undef wcsdup
 
94
#  define wcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__)
 
95
#  undef _wcsdup
 
96
#  define _wcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__)
 
97
#  undef _tcsdup
 
98
#  ifdef UNICODE
 
99
#    define _tcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__)
 
100
#  else
 
101
#    define _tcsdup(ptr) curl_dostrdup(ptr, __LINE__, __FILE__)
 
102
#  endif
 
103
#endif
 
104
 
87
105
#define socket(domain,type,protocol)\
88
106
 curl_socket(domain,type,protocol,__LINE__,__FILE__)
89
107
#undef accept /* for those with accept as a macro */