bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 1/5] posix: Sync regex code with gnulib


From: Paul Eggert
Subject: Re: [PATCH 1/5] posix: Sync regex code with gnulib
Date: Wed, 20 Jan 2021 09:46:03 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 1/20/21 3:27 AM, Adhemerval Zanella wrote:
#if defined __STDC_VERSION__ && 201710L < __STDC_VERSION__
# define __attribute_fallthrough__ [[__fallthrough__]]
#elif __GNUC_PREREQ (7, 0) || __glibc_has_attribute (__fallthrough__)
# define __attribute_fallthrough__ __attribute__ ((__fallthrough__))
#else
# define __attribute_fallthrough__ ((void) 0)
#endif
Yes, for 2.34 I will send some patches to sync the remaining gnulib
files and document from our part the shared files.

On thinking about it more (for 2.34), I find that I would prefer the current Gnulib practice of using 'FALLTHROUGH;' to using '__attribute_fallthrough__;' in code, and so suggest Gnulib's approach of having an attribute.h file (purely for internal glibc use) that has "#define FALLTHROUGH __attribute__ (__fallthrough__)' etc.



reply via email to

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