sort: remove some gotos
commit9f2fa50748e52046ea3b99bd469f846ef8827272
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 May 2022 01:55:43 +0000 (17 18:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 May 2022 02:30:55 +0000 (17 19:30 -0700)
tree18900c5bed67f9f99dcd7ceb881714a07ecc6973
parent7646618e7028a779dcbada0995033e12b539b226
sort: remove some gotos

* src/sort.c (keycompare): Rework to avoid gotos.
This also shrinks the machine code a bit (112 bytes)
with GCC 12 x86-64 -O2.  Nowadays compilers are smart
enough to coalesce jumps so we need not do it by hand.
src/sort.c