4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-05 06:25:48 +08:00
Corinna Vinschen 462ca33745 Revert "Cygwin: convert malloc lock to SRWLOCK"
This reverts commit 44a79a6eca3d322020dda0919023d78dda129d4d.
2021-10-28 20:44:27 +02:00

19 lines
476 B
C

/* heap.h: Cygwin heap manager definitions.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#include "perprocess.h"
/* Heap management. */
void heap_init ();
void malloc_init ();
#define inheap(s) \
(cygheap->user_heap.ptr && s \
&& ((char *) (s) >= (char *) cygheap->user_heap.base) \
&& ((char *) (s) <= (char *) cygheap->user_heap.top))