diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-30 00:56:26 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2018-03-30 00:56:26 +0000 |
commit | db24197ddd55e9578c129ec5b4e30cb2cc2a580b (patch) | |
tree | a209005b45cf95bcb5dc3ec61060238229dd9540 /WWW/Library/Implementation/LYLeaks.h | |
parent | ac9f8d52a8715476153ade910dd81436bfdea2a7 (diff) | |
download | lynx-snapshots-db24197ddd55e9578c129ec5b4e30cb2cc2a580b.tar.gz |
snapshot of project "lynx", label v2-8-9dev_17e
Diffstat (limited to 'WWW/Library/Implementation/LYLeaks.h')
-rw-r--r-- | WWW/Library/Implementation/LYLeaks.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/LYLeaks.h b/WWW/Library/Implementation/LYLeaks.h index 8f616815..e75fd6da 100644 --- a/WWW/Library/Implementation/LYLeaks.h +++ b/WWW/Library/Implementation/LYLeaks.h @@ -1,5 +1,5 @@ /* - * $LynxId: LYLeaks.h,v 1.15 2018/03/28 09:28:18 tom Exp $ + * $LynxId: LYLeaks.h,v 1.17 2018/03/30 00:35:10 tom Exp $ */ #ifndef __LYLEAKS_H /* @@ -155,6 +155,11 @@ extern "C" { #endif /* free */ #define free(vp_alloced) LYLeakFree(vp_alloced, __FILE__, __LINE__) +#ifdef strdup +#undef strdup +#endif /* free */ +#define strdup(vp_alloced) LYLeakStrdup(vp_alloced, __FILE__, __LINE__) + /* * Added the following two defines to track Lynx's frequent use of those * macros. - KW 1997-10-12 @@ -249,6 +254,9 @@ extern "C" { extern void LYLeakFree(void *vp_alloced, const char *cp_File, const short ssi_Line); + extern char *LYLeakStrdup(const char *src, + const char *cp_File, + const short ssi_Line); extern char *LYLeakSACopy(char **dest, const char *src, const char *cp_File, |