emacs-devel
[Top][All Lists]
Advanced

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

Re: Thoughts on replacing macros with static inline functions


From: xenodasein
Subject: Re: Thoughts on replacing macros with static inline functions
Date: Tue, 15 Nov 2022 16:54:02 +0100 (CET)

Nov 15, 2022, 13:49 by luangruo@yahoo.com:

> Brent Pappas <pappasbrent@Knights.ucf.edu> writes:
>
>> Title: Thoughts on replacing macros with static inline functions
>> ...
>>
>>
> I find that rather ugly.  PAD is an example of an extremely trivial
> expression that should really be a macro.
>
>> How interested would the Emacs community be in porting macros to functions?
>>
>
> Not very, in this case.  That exact PAD macro is not only an idiom used
> throughout the Emacs X11 code, it is more-or-less an idiom of the entire
> X Window System, copied around and used extensively throughout the X
> sample server, Xlib, and C-language clients.
>
> In addition, we try to avoid undue changes to working code, so giving
> carte blanche to change macros to static functions is not something we
> really want to do.  But if you want to do that to a few big, ugly,
> macros around an area in which you are making actual changes, please go
> ahead.
>

You answer in a tone that means you speak for everyone else, is this
intentional if so why?




reply via email to

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