]> Kevux Git Server - fll/commitdiff
Update: The utf8 program should be using the stream read functions.
authorKevin Day <thekevinday@gmail.com>
Mon, 8 Aug 2022 04:04:26 +0000 (23:04 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 8 Aug 2022 04:19:33 +0000 (23:19 -0500)
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
level_3/utf8/c/private-utf8_codepoint.c

index 45c133db4f45336e0d61428fa7905fd227713ce9..7e2ce440357f442f033b863bef5dd39641e9d9cc 100644 (file)
@@ -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;
 
index f46d031697902c96e59630cae6c8c3bf7bd19309..8389de956aabf499c0a128197bc3968a68c15263 100644 (file)
@@ -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) {