emacs-devel
[Top][All Lists]
Advanced

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

Re: [C source] Inconsistent comments on preprocessor conditionals


From: Eli Zaretskii
Subject: Re: [C source] Inconsistent comments on preprocessor conditionals
Date: Fri, 08 Jul 2022 16:37:21 +0300

> Date: Sat, 09 Jul 2022 01:33:26 +1200
> From: Phil Sainty <psainty@orcon.net.nz>
> Cc: Akib Azmain Turja <akib@disroot.org>, emacs-devel@gnu.org
> 
> On 2022-07-09 00:55, Eli Zaretskii wrote:
> > You mean, the comment for the #endif line?  It doesn't really matter
> > how you comment that, because both comments tell the same: the
> > #ifdef'ed conditional block ends here.  The differences in this case
> > are purely stylistic.
> 
> The "#endif /* not FOO */" version provides the extra information that
> there *is* an "#else" clause

No, it doesn't, because the conditional could start with #ifndef
instead.



reply via email to

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