* alloc.c: Do not assume sizeof (size_t) is a multiple of 8
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Sep 2011 07:44:58 +0000 (00:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Sep 2011 07:44:58 +0000 (00:44 -0700)
commit38532ce6ecb33efee5f697886d9fd20a3c2cda01
tree8782722e143d29b2452a8e4e70bbfadc3c1975d6
parentb13f71e2dda86836dc7dea90b385b3791f8ebd01
* alloc.c: Do not assume sizeof (size_t) is a multiple of 8

when debugging.
(alignof, XMALLOC_BASE_ALIGNMENT, XMALLOC_HEADER_ALIGNMENT)
(XMALLOC_OVERRUN_SIZE_SIZE): New macros.
(XMALLOC_OVERRUN_CHECK_OVERHEAD, xmalloc_put_size, xmalloc_get_size)
(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
Replace uses of sizeof (size_t) with XMALLOC_OVERRUN_SIZE_SIZE.
src/ChangeLog
src/alloc.c