On Sat, 19 Oct 2024, 15:05 Oğuz, wrote:
>
> #ifdef FOO
> if (foo && zot)
> #else
> if (bar && zot)
> #endif
> {
>
That's fine for the editors, but it's still a problem for "indent", as it
produces nested indentation:
#ifdef FOO
if (foo && zot)
#else
if (bar && zot)
#endif
{ …
On Friday, October 18, 2024, Martin D Kealey
wrote:
>
> The problematic code for editors looks like this:
>
> #ifdef FOO
> if (foo && zot) {
> #else
> if (bar && zot) {
> #endif
>
> Vim certainly does not like this,
>
How about this:
#ifdef FOO
if (foo && zot)
#else
if (bar && zot)
#endif
{
--
On Fri, 18 Oct 2024, 13:09 Oğuz, wrote:
> On Friday, October 18, 2024, Martin D Kealey
> wrote:
>>
>> Talking of which, I note several places where there's a construct like:
>>
>> #ifdef FOO
>> > if (foo && zot)
>> > #else
>> > if (zot)
>> > #endif
>>
>>
>> Unfortunately this confuses both the i
On 10/17/24 9:15 PM, Martin D Kealey wrote:
It looks like a recent (last year) typo in sig.c breaks Minix compilation:
Thanks.
Talking of which, I note several places where there's a construct like:
#ifdef FOO
if (foo && zot)
#else
if (zot)
#endif
Unfortunately this con
On Friday, October 18, 2024, Martin D Kealey
wrote:
>
> Talking of which, I note several places where there's a construct like:
>
> #ifdef FOO
> > if (foo && zot)
> > #else
> > if (zot)
> > #endif
>
>
> Unfortunately this confuses both the indent program and some editors.
>
It looks a lot cleaner