From 93b96855f49474b420919307273498589b7373a0 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 27 Jan 2005 00:34:42 +0000 Subject: [PATCH] 2005-01-26 Oliver Stoeneberg * include/malloc.h: Add missing return code defines for _heapwalk() --- winsup/mingw/ChangeLog | 5 +++++ winsup/mingw/include/malloc.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 9d7d2b301..8c10559cf 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2005-01-26 Oliver Stoeneberg + + * include/malloc.h: Add missing return code defines for + _heapwalk() + 2005-01-17 Danny Smith * include/sys/stat.h (struct __stat64): Change st_size type to diff --git a/winsup/mingw/include/malloc.h b/winsup/mingw/include/malloc.h index dac7ee4c7..9c530f019 100644 --- a/winsup/mingw/include/malloc.h +++ b/winsup/mingw/include/malloc.h @@ -35,6 +35,14 @@ typedef struct _heapinfo #define _USEDENTRY 0 #define _FREEENTRY 1 +/* Return codes for _heapwalk() */ +#define _HEAPEMPTY (-1) +#define _HEAPOK (-2) +#define _HEAPBADBEGIN (-3) +#define _HEAPBADNODE (-4) +#define _HEAPEND (-5) +#define _HEAPBADPTR (-6) + #ifdef __cplusplus extern "C" { #endif