From 008d8219a2e2980171cb42925ba4075e3cdb28da Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 7 Aug 2022 23:04:26 -0500 Subject: [PATCH] Update: The utf8 program should be using the stream read functions. The file is opened using the stream open functions. It is silly and inconsistent to use the non stream functions to read from a file opened via a stream. --- level_3/utf8/c/private-utf8_bytesequence.c | 2 +- level_3/utf8/c/private-utf8_codepoint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/level_3/utf8/c/private-utf8_bytesequence.c b/level_3/utf8/c/private-utf8_bytesequence.c index 45c133db4..7e2ce4403 100644 --- a/level_3/utf8/c/private-utf8_bytesequence.c +++ b/level_3/utf8/c/private-utf8_bytesequence.c @@ -76,7 +76,7 @@ extern "C" { f_string_static_t sequence = macro_f_string_static_t_initialize(block, 0, 4); do { - status = f_file_read_block(file, &data->buffer); + status = f_file_stream_read_block(file, &data->buffer); if (status == F_none_eof && !data->buffer.used) break; diff --git a/level_3/utf8/c/private-utf8_codepoint.c b/level_3/utf8/c/private-utf8_codepoint.c index f46d03169..8389de956 100644 --- a/level_3/utf8/c/private-utf8_codepoint.c +++ b/level_3/utf8/c/private-utf8_codepoint.c @@ -322,7 +322,7 @@ extern "C" { f_string_static_t sequence = macro_f_string_static_t_initialize(block, 0, 0); do { - status = f_file_read_block(file, &data->buffer); + status = f_file_stream_read_block(file, &data->buffer); if (status == F_none_eof && !data->buffer.used) { -- 2.47.3