]> Kevux Git Server - fll/commit
Progress: Begin mass converting to f_string_static_t.
authorKevin Day <thekevinday@gmail.com>
Fri, 28 Jan 2022 02:05:50 +0000 (20:05 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 28 Jan 2022 02:05:50 +0000 (20:05 -0600)
commitfaa30839dfc1ac6f186840a8548da50b6213af38
treeb6d4a0fd4bd90d967d7efa5e075b4711f20ace74
parent94c6c923736490d76b75eab8cc1dbc177cfde426
Progress: Begin mass converting to f_string_static_t.

While working on the control and controller programs I realized that I should move from f_string_t to f_string_static_t.
This is a major change but it must be done before the API freeze for the stable release.

A long time ago, early in the design process of FLL, I considered using f_string_static_t (which was only f_string_dynamic_t at that time).
I had decided for simplicity and stuck with f_string_t.

In practice I have found that I was doing a lot of working creating f_string_static_t only to do more work to move it back to f_string_t.

This is an overall simplification of the project at the cost of some resources and some flexibility.
I've only just begun but I am already seeing what I believe to be is simpler code.

The biggest gotcha will be this will likely introduce bugs due to the sheer size of the changes.
The primary bug that will not be easily detected are the formatted print where '%s' needs to now become '%q' and '%S' needs to now become '%Q'.

There are also numerous potential optimizations that I am ignoring for now due to the size of this commit.
This work is by far not done and I expect all programs to fail.
I only tested compiling fake and I got it as far as running the help program.
203 files changed:
level_0/f_color/c/color-common.c
level_0/f_color/c/color-common.h
level_0/f_console/c/console-common.c
level_0/f_console/c/console-common.h
level_0/f_console/c/console.c
level_0/f_control_group/c/control_group-common.c
level_0/f_control_group/c/control_group-common.h
level_0/f_conversion/c/private-conversion.c
level_0/f_conversion/c/private-conversion.h
level_0/f_file/c/file-common.c
level_0/f_file/c/file-common.h
level_0/f_file/c/file.c
level_0/f_file/c/private-file.c
level_0/f_fss/c/fss-common.c
level_0/f_fss/c/fss-common.h
level_0/f_fss/c/fss.c
level_0/f_iki/c/iki-common.c
level_0/f_iki/c/iki-common.h
level_0/f_iki/c/iki.c
level_0/f_iki/c/private-iki.c
level_0/f_path/c/path-common.c
level_0/f_path/c/path-common.h
level_0/f_path/c/path.c
level_0/f_print/c/print-common.c
level_0/f_print/c/print-common.h
level_0/f_print/c/print.c
level_0/f_print/c/print.h
level_0/f_print/c/print_to.c
level_0/f_print/c/private-print.c
level_0/f_print/c/private-print.h
level_0/f_print/c/private-print_to.c
level_0/f_serialize/c/private-serialize.c
level_0/f_serialize/c/serialize-common.c
level_0/f_serialize/c/serialize-common.h
level_0/f_serialize/c/serialize.c
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_0/f_string/c/string-common.c
level_0/f_string/c/string-common.h
level_0/f_string/c/string.c
level_0/f_string/c/string_dynamic.c
level_0/f_string/c/string_dynamic.h
level_0/f_utf/c/utf.c
level_1/fl_console/c/console.c
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/private-directory.c
level_1/fl_environment/c/environment.c
level_1/fl_fss/c/fss_basic.c
level_1/fl_fss/c/fss_basic_list.c
level_1/fl_fss/c/fss_embedded_list.c
level_1/fl_fss/c/fss_extended.c
level_1/fl_fss/c/fss_extended_list.c
level_1/fl_fss/c/private-fss.c
level_1/fl_print/c/print-common.c
level_1/fl_print/c/print-common.h
level_1/fl_print/c/print.c
level_1/fl_print/c/private-print.c
level_1/fl_print/c/private-print.h
level_1/fl_string/c/string.c
level_2/fll_error/c/error-common.c
level_2/fll_error/c/error-common.h
level_2/fll_error/c/error.c
level_2/fll_error/c/private-error.c
level_2/fll_execute/c/execute.c
level_2/fll_execute/c/execute.h
level_2/fll_file/c/private-file.c
level_2/fll_fss/c/fss.c
level_2/fll_fss/c/fss.h
level_2/fll_fss/c/fss_basic.c
level_2/fll_fss_status_string/c/fss_status_string.c
level_2/fll_fss_status_string/c/fss_status_string.h
level_2/fll_iki/c/iki.c
level_2/fll_iki/c/private-iki.c
level_2/fll_path/c/path.c
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_2/fll_status_string/c/status_string.c
level_2/fll_status_string/c/status_string.h
level_3/byte_dump/c/byte_dump.c
level_3/byte_dump/c/byte_dump.h
level_3/byte_dump/c/private-byte_dump.c
level_3/byte_dump/c/private-common.c
level_3/control/c/control.c
level_3/control/c/control.h
level_3/control/c/private-control.c
level_3/control/c/private-print.c
level_3/controller/c/common/private-common.c
level_3/controller/c/common/private-common.h
level_3/controller/c/controller/controller.c
level_3/controller/c/controller/controller.h
level_3/controller/c/controller/private-controller.c
level_3/controller/c/controller/private-controller_print.c
level_3/controller/c/entry/private-entry.c
level_3/controller/c/entry/private-entry_print.c
level_3/controller/c/lock/private-lock_print.c
level_3/controller/c/main.c
level_3/controller/c/rule/private-rule.c
level_3/controller/c/rule/private-rule_print.c
level_3/controller/c/thread/private-thread.c
level_3/controller/c/thread/private-thread_entry.c
level_3/controller/data/build/defines
level_3/fake/c/fake.c
level_3/fake/c/fake.h
level_3/fake/c/private-build-library.c
level_3/fake/c/private-build-load.c
level_3/fake/c/private-build-objects.c
level_3/fake/c/private-build-program.c
level_3/fake/c/private-build-skeleton.c
level_3/fake/c/private-build.c
level_3/fake/c/private-clean.c
level_3/fake/c/private-fake.c
level_3/fake/c/private-make-load_fakefile.c
level_3/fake/c/private-make-load_parameters.c
level_3/fake/c/private-make-operate.c
level_3/fake/c/private-make-operate_process.c
level_3/fake/c/private-make-operate_process_type.c
level_3/fake/c/private-make-operate_validate.c
level_3/fake/c/private-make.c
level_3/fake/c/private-print.c
level_3/fake/c/private-skeleton.c
level_3/firewall/c/firewall.c
level_3/firewall/c/firewall.h
level_3/firewall/c/private-common.c
level_3/firewall/c/private-firewall.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_list_read/c/fss_basic_list_read.h
level_3/fss_basic_list_read/c/private-common.c
level_3/fss_basic_list_read/c/private-print.c
level_3/fss_basic_list_read/c/private-read.c
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_list_write/c/fss_basic_list_write.h
level_3/fss_basic_list_write/c/private-common.c
level_3/fss_basic_list_write/c/private-write.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_basic_read/c/fss_basic_read.h
level_3/fss_basic_read/c/private-common.c
level_3/fss_basic_read/c/private-print.c
level_3/fss_basic_read/c/private-read.c
level_3/fss_basic_write/c/fss_basic_write.c
level_3/fss_basic_write/c/fss_basic_write.h
level_3/fss_basic_write/c/private-common.c
level_3/fss_basic_write/c/private-write.c
level_3/fss_embedded_list_read/c/fss_embedded_list_read.c
level_3/fss_embedded_list_read/c/fss_embedded_list_read.h
level_3/fss_embedded_list_read/c/private-common.c
level_3/fss_embedded_list_read/c/private-print.c
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_embedded_list_write/c/fss_embedded_list_write.c
level_3/fss_embedded_list_write/c/fss_embedded_list_write.h
level_3/fss_embedded_list_write/c/private-common.c
level_3/fss_embedded_list_write/c/private-write.c
level_3/fss_extended_list_read/c/fss_extended_list_read.c
level_3/fss_extended_list_read/c/fss_extended_list_read.h
level_3/fss_extended_list_read/c/private-common.c
level_3/fss_extended_list_read/c/private-print.c
level_3/fss_extended_list_read/c/private-read.c
level_3/fss_extended_list_write/c/fss_extended_list_write.c
level_3/fss_extended_list_write/c/fss_extended_list_write.h
level_3/fss_extended_list_write/c/private-common.c
level_3/fss_extended_list_write/c/private-write.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_extended_read/c/fss_extended_read.h
level_3/fss_extended_read/c/private-common.c
level_3/fss_extended_read/c/private-print.c
level_3/fss_extended_read/c/private-read.c
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_extended_write/c/fss_extended_write.h
level_3/fss_extended_write/c/private-common.c
level_3/fss_extended_write/c/private-write.c
level_3/fss_identify/c/fss_identify.c
level_3/fss_identify/c/fss_identify.h
level_3/fss_identify/c/private-common.c
level_3/fss_identify/c/private-identify.c
level_3/fss_identify/c/private-print.c
level_3/fss_payload_read/c/fss_payload_read.c
level_3/fss_payload_read/c/fss_payload_read.h
level_3/fss_payload_read/c/private-common.c
level_3/fss_payload_read/c/private-print.c
level_3/fss_payload_read/c/private-read.c
level_3/fss_payload_write/c/fss_payload_write.c
level_3/fss_payload_write/c/fss_payload_write.h
level_3/fss_payload_write/c/private-common.c
level_3/fss_payload_write/c/private-write.c
level_3/fss_status_code/c/fss_status_code.c
level_3/fss_status_code/c/fss_status_code.h
level_3/fss_status_code/c/private-common.c
level_3/fss_status_code/c/private-fss_status_code.c
level_3/iki_read/c/iki_read.c
level_3/iki_read/c/iki_read.h
level_3/iki_read/c/private-common.c
level_3/iki_read/c/private-read.c
level_3/iki_write/c/iki_write.c
level_3/iki_write/c/iki_write.h
level_3/iki_write/c/private-common.c
level_3/iki_write/c/private-write.c
level_3/status_code/c/private-common.c
level_3/status_code/c/private-status_code.c
level_3/status_code/c/status_code.c
level_3/status_code/c/status_code.h
level_3/utf8/c/private-print.c
level_3/utf8/c/private-utf8_codepoint.c
level_3/utf8/c/utf8.c
level_3/utf8/c/utf8.h