wc: simplify by removing SUPPORT_OLD_MBRTOWC
commita6064bb86475d2318433cd28fa21e94063e07683
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:03:41 +0000 (23 00:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:28:27 +0000 (23 00:28 -0700)
treee6d2015b123d50a882786e181bbaa1877e578bb5
parent17a9e79023fd98886f8e7e673965f61ec9569f6c
wc: simplify by removing SUPPORT_OLD_MBRTOWC

* src/wc.c (SUPPORT_OLD_MBRTOWC): Remove.  All uses removed.
(wc): Simplify by assuming C99-or-later behavior for mbrtoc32,
which after all is a C11 API.  Fix the !SUPPORT_OLD_MBRTOWC
code, which evidently was never tested seriously.
src/wc.c