summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.h
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-11-21 07:52:46 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-11-21 07:52:46 +0000
commit8c61ed7fd4b032c57ee39ed171dd1ba001637b42 (patch)
treec8cefef8b3f424a053e141dd9065d38202c0cf60 /libc/stdlib/malloc/malloc.h
parent22119008112a4abb723a48ea54b8c9626c449db9 (diff)
Debugging tweaks.
Diffstat (limited to 'libc/stdlib/malloc/malloc.h')
-rw-r--r--libc/stdlib/malloc/malloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/malloc.h b/libc/stdlib/malloc/malloc.h
index 7fe8b6016..238bfb669 100644
--- a/libc/stdlib/malloc/malloc.h
+++ b/libc/stdlib/malloc/malloc.h
@@ -165,6 +165,9 @@ extern malloc_mutex_t __malloc_sbrk_lock;
when the variable __malloc_debug is set to true. */
#ifdef MALLOC_DEBUGGING
+/* The number of spaces in a malloc debug indent level. */
+#define MALLOC_DEBUG_INDENT_SIZE 3
+
extern int __malloc_debug, __malloc_check;
# define MALLOC_DEBUG(indent, fmt, args...) \
@@ -178,7 +181,7 @@ extern int __malloc_debug_cur_indent;
by a newline, and change the level by INDENT. */
extern void __malloc_debug_printf (int indent, const char *fmt, ...);
-/* Change the current debug print level by INDENT. */
+/* Change the current debug print level by INDENT, and return the value. */
#define __malloc_debug_indent(indent) (__malloc_debug_cur_indent += indent)
/* Set the current debug print level to LEVEL. */