Hi Bruno,

On 04/13/2018 04:03 PM, Bruno Haible wrote:
> Hi Tim,
> 
>> We use 'static _GL_INLINE' for some static functions we want to get
>> inlined.
> 
> This is a wrong use of '_GL_INLINE'.
> 
> There are 3 uses of the keyword 'inline' in C:
> 1) 'static inline'.
> 2) 'inline' and 'extern inline'.
> 
> Portable use of 1) is simple:
>   - use AC_REQUIRE([AC_C_INLINE])
>   - use 'static inline' in the code.
> 
> Portable use of 2) is more involved: This is what
> https://www.gnu.org/software/gnulib/manual/html_node/extern-inline.html
> is about.
> 
> When you write 'static _GL_INLINE', you are mixing up the cases 1) and 2).

Ah ! Thanks for the clarification :-)

We indeed only wanted to use 1)


With Best Regards, Tim



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to