]> Kevux Git Server - fll/commit
Refactor: fll_error_print_t is now fl_print_t.
authorKevin Day <thekevinday@gmail.com>
Sat, 16 Oct 2021 02:32:09 +0000 (21:32 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 16 Oct 2021 02:32:09 +0000 (21:32 -0500)
commit045ae8876501a6e9a27fd1f577765cc8937ee557
tree127148394f909ec5087ffac0d1b2f93adefb2acd
parent21098d8f95aee36319072a7ccf966e4f0624335e
Refactor: fll_error_print_t is now fl_print_t.

After using fll_error_print_t for a while now, I find that it is in practice superior to the regular print approach (such as with "f_file_t output;").
This made coding far easier than I imagined.

This refactor changes renames this from an error purpose print to a generic all-purpose print.
The existing "f_file_t output;" designs are not changed with this factor and will be changed in a later commit.

This refactor allows this to be moved from a level 2 project to a level 1 project.

In following with my completeness principle, I have added a "suffix" to compliment the "prefix".

I also added the "set" as a pointer to make it optional and to also not take up as much resources the full object rather than a pointer.
Having used fll_error_print_t for some time, I have found that I occasionally needed more than just the "context" and "notable".

While working on this, I realized I could improve my practice of handling "static" strings (such as fll_error_print_debug_s).
The practice is now to have the defines more closely match the names, but begin with the F_, FL_, etc.. in the same way that status codes are used.
This then allows:
|           old           |       new        |
----------------------------------------------
| fll_error_print_debug_s | fl_print_debug_s | <--- variable.
| fll_error_print_debug   | FL_print_debug_s | <--- define/macro.

A future commit will convert all existing code that follows the old way.
48 files changed:
build/level_1/settings
build/monolithic/settings
level_1/fl_print/c/print-common.c [new file with mode: 0644]
level_1/fl_print/c/print-common.h [new file with mode: 0644]
level_1/fl_print/c/print.h
level_1/fl_print/data/build/dependencies
level_1/fl_print/data/build/settings
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/error.h
level_2/fll_error/c/private-error.c
level_2/fll_error/c/private-error.h
level_2/fll_print/data/build/settings
level_3/byte_dump/c/byte_dump.h
level_3/control/c/control.h
level_3/controller/c/controller.h
level_3/controller/c/private-common.c
level_3/controller/c/private-common.h
level_3/controller/c/private-controller.c
level_3/controller/c/private-entry.c
level_3/controller/c/private-entry.h
level_3/controller/c/private-rule.c
level_3/controller/c/private-rule.h
level_3/fake/c/fake.h
level_3/fake/c/private-common.h
level_3/fake/c/private-make.c
level_3/fake/c/private-make.h
level_3/fake/c/private-print.c
level_3/fake/c/private-print.h
level_3/firewall/c/firewall.h
level_3/firewall/c/private-common.c
level_3/firewall/c/private-common.h
level_3/fss_basic_list_read/c/fss_basic_list_read.h
level_3/fss_basic_list_write/c/fss_basic_list_write.h
level_3/fss_basic_read/c/fss_basic_read.h
level_3/fss_basic_write/c/fss_basic_write.h
level_3/fss_embedded_list_read/c/fss_embedded_list_read.h
level_3/fss_embedded_list_write/c/fss_embedded_list_write.h
level_3/fss_extended_list_read/c/fss_extended_list_read.h
level_3/fss_extended_list_write/c/fss_extended_list_write.h
level_3/fss_extended_read/c/fss_extended_read.h
level_3/fss_extended_write/c/fss_extended_write.h
level_3/fss_identify/c/fss_identify.h
level_3/fss_status_code/c/fss_status_code.h
level_3/iki_read/c/iki_read.h
level_3/iki_write/c/iki_write.h
level_3/status_code/c/status_code.h