bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] mark functions with const and pure attributes


From: Paul Eggert
Subject: Re: [PATCH 1/2] mark functions with const and pure attributes
Date: Sun, 01 May 2011 09:06:39 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

On 05/01/11 06:31, Jim Meyering wrote:
> +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))

The names _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST seem
gratingly long to me; when reading a function signature they
get in the way of other important information.  Also, these
two names use a different naming convention from _GL_UNUSED.
How about following _GL_UNUSED's lead, and renaming
them to _GL_PURE and _GL_CONST?  When used in context
the shorter names shouldn't be confusing.



reply via email to

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