From a61379f455b80236e251c56c32a16748f2d35af3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 31 Mar 2024 20:07:51 +0200 Subject: Remove the need for a state in freadrune() --- include/mbio.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/mbio.h b/include/mbio.h index ef2fcd5..80e703b 100644 --- a/include/mbio.h +++ b/include/mbio.h @@ -6,11 +6,9 @@ #include "__charN_t.h" #include "__rune.h" -typedef struct { - char8_t _buf[4]; - int _fill; -} u8_io_state; +int freadrune(rune *, FILE *); -int freadrune(rune *, u8_io_state *, FILE *); +constexpr rune MBEOF = 0x110000; +constexpr rune MBERR = 0x110001; #endif /* !MLIB_MBIOO_H */ -- cgit v1.2.3