This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: locale files and int32_t alignment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]