wc: goto considered harmful
commitf40c6b5cf20f6524c5775919c195c7638069d676
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Sep 2023 00:07:33 +0000 (23 17:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Sep 2023 00:07:52 +0000 (23 17:07 -0700)
treee6edb81157d99906bbf4d0376046a1e4c6e9f4fd
parent6b8b1f9e77a3fde7bfd3dd6dbcec2b057ae73215
wc: goto considered harmful

* src/wc.c: Do not include assure.h.  Replace the only
use of ‘assure’ with ‘unreachable’ which is good enough.
(wc, main): Remove labels and gotos.  This doesn’t affect
performance in any way I can measure, and makes the code
a bit easier to follow.
src/wc.c