Remove some struct layout assumptions in bool vectors.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jul 2012 17:26:43 +0000 (10:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jul 2012 17:26:43 +0000 (10:26 -0700)
commitd06714cb449d3eb3f58f4ed79053ca173db286fa
treef84b9eb183e4ac255840eb721747da7238fd9cb1
parent5fbc0409ac3c51baf18d43b00ed00b56acc1c74b
Remove some struct layout assumptions in bool vectors.

* alloc.c (bool_header_size): New constant.
(header_size, word_size): Move earlier, as they're now used earlier.
Use 'word_size' in a few more places, where it's appropriate.
(Fmake_bool_vector, sweep_vectors): Don't assume that there is no
padding before the data member of a bool vector.
(sweep_vectors): Use PSEUDOVECTOR_TYPEP, in an eassert, rather
than doing the check by hand with an abort ().
src/ChangeLog
src/alloc.c