[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.
Re: [C source] Inconsistent comments on preprocessor conditionals, Po Lu, 2022/07/08
Re: [C source] Inconsistent comments on preprocessor conditionals, Alan Mackenzie, 2022/07/08