|
From: | Paul Eggert |
Subject: | Re: Change a while loop into do while |
Date: | Sat, 31 Dec 2016 09:20:31 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
From: Chris Gregory <address@hidden> Date: Mon, 26 Dec 2016 22:55:54 -0600 This patch changes string_from_display_spec (a static function in xdisp.c) to use a do while loop instead of a while loop. The precondition is checked by the if statement and is redundant in the first iteration. This redundancy is now removed.
The indenting for 'do-while' wasn't using the usual GNU style, and while fixing that I noticed that the code could be further simplified, so I installed the attached further patch.
0001-src-xdisp.c-string_from_display_spec-Simplify.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |