]> diplodocus.org Git - nmh/commit
Replace some "FALLTHRU" comments with control flow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 23 May 2017 11:56:00 +0000 (12:56 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 23 May 2017 11:59:06 +0000 (12:59 +0100)
commit1e18bf0ab892a2ae9d3151c248b652898f7d7116
tree5c20eb7b78cf31fed02115a40aad66a63a76193b
parent04b46522d25e71bc8e5066215b4ce1cd4f903486
Replace some "FALLTHRU" comments with control flow.

Instead of a case statement falling through, with a "FALLTHRU" comment,
to the follow case that just does a break, continue, goto, etc.,
control-flow statement, duplicate the statement in place of the comment.
Fall-through should be the exception, and saving a break statement
doesn't offset the cognitive cost when reading the source.
12 files changed:
sbr/mf.c
sbr/seq_read.c
uip/aliasbr.c
uip/fmttest.c
uip/inc.c
uip/mhbuildsbr.c
uip/new.c
uip/post.c
uip/rmf.c
uip/scansbr.c
uip/show.c
uip/whatnowsbr.c