emacs-devel
[Top][All Lists]
Advanced

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

Re: Change a while loop into do while


From: Paul Eggert
Subject: Re: Change a while loop into do while
Date: Sat, 31 Dec 2016 10:51:29 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Eli Zaretskii wrote:
The indenting for 'do-while' wasn't using the usual GNU style
Yes, it is: you will see a lot of that elsewhere in Emacs.

It's not the usual GNU style. The GNU coding standards say to format do-while statements like this:

  do
    {
      a = foo (a);
    }
  while (a > 0);

There is a common exception in macros where the do-while is simply a statement wrapper, but that exception didn't apply here.



reply via email to

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