Fix minor alloc.c problems found by static checking.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 03:38:40 +0000 (20:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 03:38:40 +0000 (20:38 -0700)
commitb62a57beb523298caa95c2d85c65eeb6e9af7af9
tree26f5a8bdf3c68bced1be3eb2e09807e9123cd3bb
parent3539f31f03b40bafa0875de88e3a5d55558ba32c
Fix minor alloc.c problems found by static checking.

* alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]:
New extern decls, to avoid calling undeclared functions.
(dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT)
&& GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined
GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
(NEED_MEM_INSERT): New macro.
(mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
src/ChangeLog
src/alloc.c