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: [PATCH] ucontext.h: Add __INDIRECT_RETURN


On Wed, 18 Jul 2018, H.J. Lu wrote:

> +#ifndef __INDIRECT_RETURN
> +# define __INDIRECT_RETURN
> +#endif

This default definition is missing a comment to define the semantics of 
this macro.  And please avoid this #ifndef convention.  Rather, the normal 
glibc convention would be to have e.g. a bits/indirect-return.h installed 
header, with a default version with an empty definition and a comment 
documenting the semantics, and a separate x86 version.

-- 
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]