bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pure and const function attributes


From: Paul Eggert
Subject: Re: pure and const function attributes
Date: Fri, 1 May 2020 18:58:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 5/1/20 12:58 AM, Marc Nieper-Wißkirchen wrote:
> this can even be reused by many existing Gnulib modules,

That suggests that we should define _GL_ATTRIBUTE* variants, which can be used
in Gnulib header files safely.

A fancier patch is attached, to do that. I also looked for other uses of
__attribute__ in Gnulib and add macros for most of them. I haven't tested this,
or seen how to use it to simplify other modules; it's merely a proof of concept.

> To my knowledge, C2x will standardize attributes

Ah, I hadn't been following that. Thanks for mentioning it. I incorporated that
into the attached patch.

Attachment: 0001-New-module-attribute.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]