locale files and int32_t alignment

Joseph S. Myers joseph@codesourcery.com
Mon Sep 23 23:38:00 GMT 2013


On Mon, 23 Sep 2013, Roland McGrath wrote:

> I think the change is good in principle.  But it should be more explicit in
> the code.  A few macros (e.g. LOCFILE_ALIGN, LOCFILE_ALIGNED_P (x)) instead
> of just sizeof (int32_t) all over would serve as adequate implicit
> documentation.

I don't think there is any good reliable way to identify all the other 
places in the code that are already implicitly using 4 for this alignment 
(whether using sizeof, or hardcoded constants such as 4 and 3).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list