]> granicus.if.org Git - gc/commit
Add setter and getter for GC_on_heap_resize;
authorIvan Maidanski <ivmai@mail.ru>
Fri, 13 Jan 2012 04:55:21 +0000 (08:55 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 13 Jan 2012 10:23:36 +0000 (14:23 +0400)
commit1d519e5957c8b7bdc287a39f711aa9d57ed1b890
treedea1f7379e244b59e70b24aed286c06df7e556d0
parent7c9c95c1c02744d1909eebdc45f17cb278d4fe2d
Add setter and getter for GC_on_heap_resize;
change GC_on_heap_resize argument type from size_t to GC_word

* include/gc.h (GC_on_heap_resize_proc): Declare new type.
* alloc.c (GC_on_heap_resize): Change type to GC_on_heap_resize_proc
(which uses GC_word argument instead of size_t and GC_CALLBACK calling
conventions).
* include/gc.h (GC_on_heap_resize): Likewise.
* alloc.c (GC_expand_hp_inner): Do not cast GC_heapsize value in
GC_on_heap_resize call.
* include/gc.h (GC_on_heap_resize): Refine comment.
* include/gc.h (GC_set_on_heap_resize, GC_get_on_heap_resize): New
API functions.
* misc.c (GC_set_on_heap_resize, GC_get_on_heap_resize): Likewise.
alloc.c
include/gc.h
misc.c