[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 17:01:01 +0300 |
> From: Akib Azmain Turja <akib@disroot.org>
> Cc: emacs-devel@gnu.org
> Date: Fri, 08 Jul 2022 19:55:05 +0600
>
> >> 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.
>
> Then we can do like the following:
>
> --8<---------------cut here---------------start------------->8---
> #ifndef FOO
> ...
> #else /* not !FOO */
> ...
> #endif /* not !FOO */
> --8<---------------cut here---------------end--------------->8---
>
> Very confusing though.
Exactly. Which is why we won't do that.
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