* cygheap.h (user_heap_info::sbrk): Declare new function.

(user_heap_info::init): Ditto.
* heap.cc (user_heap_info::init): Rename from heap_init().  Avoid explictly
using cygheap->user_heap.
(sbrk): Use user_heap_info method via cygheap->user_heap.
(user_heap_info::sbrk): Renamed from sbrk().  Eliminate explicit use of
cygheap->user_heap.  Change some pointer arithmetic to use (char *) for
consistency.
* shared.cc (shared_info::initialize): Change heap_init call to
cygheap->user_heap.init.
This commit is contained in:
Christopher Faylor
2013-08-30 21:02:02 +00:00
parent 9f0de58c22
commit 6fc77d3e75
4 changed files with 78 additions and 70 deletions

View File

@ -341,7 +341,8 @@ shared_info::initialize ()
else if (cb != sizeof (*this))
system_printf ("size of shared memory region changed from %lu to %u",
sizeof (*this), cb);
heap_init ();
/* FIXME? Shouldn't this be in memory_init? */
cygheap->user_heap.init ();
}
void