]> granicus.if.org Git - gc/commit
GC_scratch_alloc code refactoring (and WARN message improvement)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 31 Mar 2014 21:25:18 +0000 (01:25 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Mar 2014 21:25:18 +0000 (01:25 +0400)
commitba620ba49ef211a849b21857084674d0305cbf8c
tree413b88424bfd4e8edf2e75af5aa0be1c2b57cda4
parent32f9800a5910e316c5c8656767dbd00e5ae8ba30
GC_scratch_alloc code refactoring (and WARN message improvement)

* headers.c (GC_scratch_alloc): Remove "register" keyword for "result"
local variable; replace tail recursion with a loop; adjust and add
comments.
* headers.c (GC_scratch_alloc): Adjust message and output requested
allocation size in WARN().
* include/private/gc_priv.h (_GC_arrays._scratch_last_end_ptr):
Improve comment.
headers.c
include/private/gc_priv.h