]> Kevux Git Server - rit/commit
meson: simplify iconv-emits-BOM check
authorPatrick Steinhardt <ps@pks.im>
Thu, 5 Mar 2026 11:20:21 +0000 (12:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2026 19:19:56 +0000 (11:19 -0800)
commit4cae5847694f0d62b6da3b55164f7749c0a19fef
tree1daba44eedbe243ef71caae76a964c78e0bf6d0b
parent67ad42147a7acc2af6074753ebd03d904476118f
meson: simplify iconv-emits-BOM check

Simplify the iconv-emits-BOM check that we have in Meson a bit by:

  - Dropping useless variables.

  - Casting the `inpos` pointer to `void *` instead of using a typedef
    that depends on whether or not we use an old iconv library.

This overall condenses the code signficantly and makes it easier to
follow.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build