]> Kevux Git Server - fll/commit
Update: Finish writing tests, fix endianness, simplify some code.
authorKevin Day <thekevinday@gmail.com>
Tue, 29 Mar 2022 03:38:43 +0000 (22:38 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 29 Mar 2022 04:20:59 +0000 (23:20 -0500)
commitdda60cc8d9cad69b55e7d79b4c052677b03b4413
treec18e818884f3381ee425d22a8503724f68f769b5
parent8b7925bfe07899a9b9a4ac7102e54119d24522f3
Update: Finish writing tests, fix endianness, simplify some code.

Now that f_char_t exists and is in use, rename f_utf_character_t to f_utf_char_t to be consistent (and simpler).

The endianness detection is incorrect.
The BIG_ENDIAN is not represented as expected.
Change the detection to use GCC's __BYTE_ORDER__ macros.
Fallback to little endian if those macros are not available.

It took a while to figure out this was the problem and I got rather confused going back and forth between byte orders.
I think the changes I made are correct, but I need additional better testing on the byte orders.
89 files changed:
level_0/f_console/c/console.c
level_0/f_conversion/c/private-conversion.c
level_0/f_print/c/print.c
level_0/f_print/c/print/private-to.c
level_0/f_print/c/print/to.c
level_0/f_print/c/private-print.c
level_0/f_status/c/status.h
level_0/f_string/c/private-string.c
level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure.c
level_0/f_utf/c/private-utf.c
level_0/f_utf/c/private-utf.h
level_0/f_utf/c/utf/common.h
level_0/f_utf/c/utf/convert.c
level_0/f_utf/c/utf/convert.h
level_0/f_utf/c/utf/dynamic.c
level_0/f_utf/c/utf/is.c
level_0/f_utf/c/utf/is_character.c
level_0/f_utf/c/utf/is_character.h
level_0/f_utf/c/utf/private-dynamic.c
level_0/f_utf/c/utf/private-is_unassigned.c
level_0/f_utf/c/utf/private-is_unassigned.h
level_0/f_utf/c/utf/private-string.c
level_0/f_utf/c/utf/string.c
level_0/f_utf/tests/unit/c/test-utf-append.c
level_0/f_utf/tests/unit/c/test-utf-append_assure.c
level_0/f_utf/tests/unit/c/test-utf-append_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-append_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_append.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_append_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_mash.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_mash_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_mish.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_mish_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_nulless.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate.c
level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate_after.c
level_0/f_utf/tests/unit/c/test-utf-dynamics_append.c
level_0/f_utf/tests/unit/c/test-utf-dynamics_append_all.c
level_0/f_utf/tests/unit/c/test-utf-dynamicss_append.c
level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c
level_0/f_utf/tests/unit/c/test-utf-map_multis_append.c
level_0/f_utf/tests/unit/c/test-utf-map_multis_append_all.c
level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c
level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c
level_0/f_utf/tests/unit/c/test-utf-maps_append.c
level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c
level_0/f_utf/tests/unit/c/test-utf-mapss_append.c
level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c
level_0/f_utf/tests/unit/c/test-utf-mash.c
level_0/f_utf/tests/unit/c/test-utf-mash_nulless.c
level_0/f_utf/tests/unit/c/test-utf-mish.c
level_0/f_utf/tests/unit/c/test-utf-mish_nulless.c
level_0/f_utf/tests/unit/c/test-utf-prepend.c
level_0/f_utf/tests/unit/c/test-utf-prepend_assure.c
level_0/f_utf/tests/unit/c/test-utf-prepend_assure_nulless.c
level_0/f_utf/tests/unit/c/test-utf-prepend_nulless.c
level_0/f_utf/tests/unit/c/test-utf-seek_line.c
level_0/f_utf/tests/unit/c/test-utf-seek_line_to.c
level_0/f_utf/tests/unit/c/test-utf-seek_to.c
level_0/f_utf/tests/unit/c/test-utf-triples_append.c
level_0/f_utf/tests/unit/c/test-utf-triples_append_all.c
level_0/f_utf/tests/unit/c/test-utf-tripless_append.c
level_0/f_utf/tests/unit/c/test-utf-tripless_append_all.c
level_1/fl_string/c/string.c
level_1/fl_string/c/string.h
level_1/fl_utf/c/utf.c
level_1/fl_utf/c/utf.h
level_1/fl_utf_file/c/private-utf_file.c
level_3/byte_dump/c/private-byte_dump.c