emacs-devel
[Top][All Lists]
Advanced

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

Re: __attribute__ ((cleanup)) and emacs-module.c


From: Paul Eggert
Subject: Re: __attribute__ ((cleanup)) and emacs-module.c
Date: Sat, 11 Mar 2023 17:28:03 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2023-03-11 16:42, Po Lu wrote:
I think this is likely to be confusing, because people won't realize the
situations in which it cannot be used, and we will end up with code
like:

   return MODULE_FUNCTION_END (Fthis_thing_that_calls_xmalloc ())

Perhaps you're right. It's no big deal either way, I expect.

It's too bad we can't assume GNU (and C23 style) typeof, as that would let us evaluate the macro argument safely. But it'll be a while before we can assume C23.




reply via email to

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