From: Christopher Faylor Date: Sun, 9 Sep 2001 20:00:29 +0000 (+0000) Subject: * heap.h (inheap): Rewrite macro to accomodate removal of brk macros below. X-Git-Tag: Z-cygwin_daemon_merge-new_HEAD~130 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3800a9e7d7906a46433c33eb8694b93b1c78bc6f;p=newlib-cygwin.git * heap.h (inheap): Rewrite macro to accomodate removal of brk macros below. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 73085b0a9..22ae6003b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 9 15:59:53 2001 Christopher Faylor + + * heap.h (inheap): Rewrite macro to accomodate removal of brk macros + below. + Sun Sep 9 15:02:44 2001 Christopher Faylor * cygheap.cc (cygheap_fixup_in_child): Clear cygheap->base so that heap diff --git a/winsup/cygwin/heap.h b/winsup/cygwin/heap.h index 96046cbb9..ce16e1333 100644 --- a/winsup/cygwin/heap.h +++ b/winsup/cygwin/heap.h @@ -14,4 +14,6 @@ details. */ void heap_init (); void malloc_init (); -#define inheap(s) (brk && ((char *) (s) >= (char *) brkbase) && ((char *) (s) <= (char *) brktop)) +#define inheap(s) \ + (cygheap->heapptr && ((char *) (s) >= (char *) cygheap->heapbase) \ + && ((char *) (s) <= (char *) cygheap->heaptop))