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 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.



reply via email to

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