about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/LYLeaks.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2003-01-22 10:09:18 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2003-01-22 10:09:18 -0500
commit533c7482785176296637df81cd1a6318a0c29f97 (patch)
treee50cece290409516ee62f08c8912863f5f1ba80a /WWW/Library/Implementation/LYLeaks.h
parent490d581c911f53008a7eaaed72b655cf40071b03 (diff)
downloadlynx-snapshots-533c7482785176296637df81cd1a6318a0c29f97.tar.gz
snapshot of project "lynx", label v2-8-5dev_13
Diffstat (limited to 'WWW/Library/Implementation/LYLeaks.h')
-rw-r--r--WWW/Library/Implementation/LYLeaks.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/LYLeaks.h b/WWW/Library/Implementation/LYLeaks.h
index fe995fb6..ebcc2e1b 100644
--- a/WWW/Library/Implementation/LYLeaks.h
+++ b/WWW/Library/Implementation/LYLeaks.h
@@ -86,6 +86,11 @@ typedef struct AllocationList_tag	{
 	struct AllocationList_tag *ALp_Next;
 
 	/*
+	 *	Count the number of mallocs.
+	 */
+	long st_Sequence;
+
+	/*
 	 *	The memory pointer allocated.
 	 *	If set to NULL, then an invalid request was made.
 	 *	The invalid pointer also.
@@ -152,6 +157,7 @@ typedef struct AllocationList_tag	{
 #undef StrAllocCopy
 #endif /* StrAllocCopy */
 #define StrAllocCopy(dest, src) LYLeakSACopy(&(dest), src, __FILE__, __LINE__)
+
 #ifdef StrAllocCat
 #undef StrAllocCat
 #endif /* StrAllocCat */
@@ -160,19 +166,23 @@ typedef struct AllocationList_tag	{
 #define mark_malloced(a,size) LYLeak_mark_malloced(a,size, __FILE__, __LINE__)
 
 #if defined(LY_FIND_LEAKS_EXTENDED) && !defined(NO_EXTENDED_MEMORY_TRACKING)
+
 #ifdef HTSprintf0
 #undef HTSprintf0
 #endif /* HTSprintf0 */
 #define HTSprintf0 (Get_htsprintf0_fn(__FILE__,__LINE__))
+
 #ifdef HTSprintf
 #undef HTSprintf
 #endif /* HTSprintf */
 #define HTSprintf (Get_htsprintf_fn(__FILE__,__LINE__))
+
 #endif /* LY_FIND_LEAKS_EXTENDED and not NO_EXTENDED_MEMORY_TRACKING */
 
 #else /* LY_FIND_LEAKS && !NO_MEMORY_TRACKING */
 
 #define mark_malloced(a,size)	/* no-op */
+#define LYLeakSequence() (-1)
 
 #endif /* LY_FIND_LEAKS && !NO_MEMORY_TRACKING */
 
@@ -181,10 +191,12 @@ typedef struct AllocationList_tag	{
 #else
 #define PUBLIC_IF_FIND_LEAKS PRIVATE
 #endif
+
 /*
 **	Function declarations
 **	See the appropriate source file for usage.
 */
+extern long LYLeakSequence NOPARAMS;
 extern void LYLeaks NOPARAMS;
 #ifdef LY_FIND_LEAKS_EXTENDED
 extern AllocationList *LYLeak_mark_malloced PARAMS((