bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] Port July changes for [[...]] to C17


From: Paul Eggert
Subject: Re: [PATCH] Port July changes for [[...]] to C17
Date: Mon, 16 Sep 2024 10:01:26 -0700
User-agent: Mozilla Thunderbird

On 2024-09-16 00:16, Bruno Haible wrote:
How about, instead of defining two macros

    _GL_FUNCDECL_SYS (func, rettype, parameters);
    _GL_FUNCATTR_SYS (func, rettype, parameters, attributes);

we would have one macro

   _GL_FUNCDECL_SYS (func, rettype, parameters, attributes);

and invoke it with 4 arguments always,

Thanks, that sounds nicer. I did that. My earlier patch had been assuming we couldn't use that C99 feature; I also documented that we're assuming C99 empty macro args by installing the attached additional patch.

The current code doesn't check for portability to strict C17 and earlier, when compiling with recent GCC. Although it could be complicated to do so I hope the complexity isn't necessary, as we can check by compiling with stricter C17- compilers.

Attachment: 0001-Document-use-of-empty-macro-args.patch
Description: Text Data


reply via email to

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