[Top][All Lists]

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

Indent version 2.2.12; One other question...

From: David L. Paktor
Subject: Indent version 2.2.12; One other question...
Date: Fri, 20 Mar 2020 10:24:01 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Also, one other question...

There is a passage that has me somewhat confused. It is in handletoken.c  now lines 1200 .. 1206.

It goes like this:

|    do||
||    {||
||        if (parse (lbrace) != total_success)||
||        {||
||            *file_exit_value = indent_error;||
||        }||
||    } while(0);|

The part that confuses me is the enclosing *do {* /<sequence>/ *} while(0);*

My understanding is that this simply means that the enclosed /|<sequence>|/   will be done, unconditionally, once only, in a manner that is exactly equivalent to simply ///|<sequence>|/ (or maybe |*{* /<sequence>/ *}*| if the enclosure gives some meaningful scope, which, in this instance, it does not) without the enclosing *|do {  } while(0);|*

Is there something subtle going on that somehow escapes me?

Please advise...


David L. Paktor
Sr Firmware Engineer — Embedded Software

Mail: address@hidden <mailto:address@hidden>

Mobil: 408 761 3220

reply via email to

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