On Tue, Jan 23, 2001 at 03:15:56PM +0900, Martin Buchholz wrote:
We require the lcrecords _not_ to lie, but instead require the
size_in_bytes method to have the same alignment constraints as ANSI C
imposes.
Makes sense. The only lrecords not using sizeof directly are opaque,
lstream, specifier and window_config. Lstream and specifier
implementations are structs, their sizes are correctly aligned. Ditto
for saved_window. In practice we're not even dumping lstreams or
window configs.
So the only problem is the opaques. Quite reasonable to move the fix
there, I'd say.
Then we can remove the special handling for lrecords in dumper.c,
and
remove the is_lrecord member from struct pdump_entry_list_elmt, since
it is only used to kludge around the incorrect sizes.
Yup.
OG.