]> diplodocus.org Git - nmh/commit
fmt_compile.c: Alter FINDCOMP(): the caller must supply the semicolon.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 10 Sep 2017 13:53:32 +0000 (14:53 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 10 Sep 2017 13:53:32 +0000 (14:53 +0100)
commitedcbc70e11973f191f960a4102708b195dc378bf
treee8cbffc6a769c908f49aa6841fedb65b5cf34e98
parentaf37e7c921540be0a53a0b6999f3d1cc95cc7527
fmt_compile.c: Alter FINDCOMP(): the caller must supply the semicolon.

The macro expands to a for-loop, including the semicolon body.  The
caller typically supplies their own semicolon.  This results in two on
one line that looks odd.  Alter the macro to have the for-loop inside a
do-while loop that doesn't have a semicolon, ensuring the caller must
supply it.
sbr/fmt_compile.c