diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-03-31 20:07:51 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-03-31 20:07:51 +0200 |
commit | a61379f455b80236e251c56c32a16748f2d35af3 (patch) | |
tree | 74183bcd4d2b55961945e6db7b9099e16a34b37d /include | |
parent | d79a16a7d172ece3b01bf78ab7c6db02dc9cf267 (diff) |
Remove the need for a state in freadrune()
Diffstat (limited to 'include')
-rw-r--r-- | include/mbio.h | 8 |
1 files changed, 3 insertions, 5 deletions
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 */ |