]> Kevux Git Server - fll/commit
Progress: Working on program related changes and fix version number.
authorKevin Day <thekevinday@gmail.com>
Mon, 22 Aug 2022 02:22:38 +0000 (21:22 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 22 Aug 2022 02:45:21 +0000 (21:45 -0500)
commit497814717e7fd2a8c8f7ef96ba1878e8de7e58a6
tree7250a1d8a1270c8852ff50773a284efce6dad8c0
parentfa1cb89cfa0d25e7a037543c27835a5f17723dd4
Progress: Working on program related changes and fix version number.

Continuing work in regards to making program related changes.

I managed to miss another set of files that have version numbers.
I should probably write a script to consistently handle this in the future to avoid these kinds of simple mistakes.

Change the behavior of the color loaded to allow for more flexibility.
The previous design was a quickly put togethor hardcoded approach.
I want to get away from such practices.

Add missing dependency in f_color.

I am at a cross roads of flexibility and maintainability (as well as size).
The practice of always having and using a typedef allows for great flexibility (allows for easy hacking/modifications).
As per my practice, I should have explicit functions for allocating, deallocating, and similar functions.
These waste space, consume time writing, and consume maintainance related time.
I want to increase the maintainability of the project given that my current goals are far reaching.
This means that I should switch to existing typedefs for any simple data type (except for special cases like strings and f_string_t).
I am starting this conversion with f_color, using the uintX_t types rathe than custom types like f_color_mode_t.

Start using enumerations over define macros.

Make the console parameter processing functions more flexible by returning the decision at the index rather than the converted decision value.
This allows for the caller to know which index is used.
The caller can do more work based on this without having to do more looping.

Add line_first_no and line_last_no standard parameters.
These add more flexibility for special case scripting.
Many core printing functions now do not print the leading new line.
All programs must be updated accordingly.

Add and document new console parameter initialization macros.
Start a new style practice with the console arguments, based around these new macros.

The f_file_stream_flush() should not need f_file_t parameter to be a pointer.

The memory functions now return F_data_not in more situations that make sense.
When size is 0 for allocation functions, this should be a paameter error when doing parameter checking.

The pointer should be allowed to be NULL when allocating.

Some fll_program functions are supposed to be using private functions due to internal usage.

The standard help options now have a standard printing function.

The fll_program_parameter_process() is removed.
Instead, call f_console_parameter_process directly.
The color context handling is moved from the now deleted fll_program_parameter_process() into fll_program_parameter_process_context().

The fll_program_data_t now accepts a pointer to the environment variable array for representing the environment variables are start.
The fll_program_data_t now uses flags rather than a boolean to represent program pipe (allowing for more than just input pipe, in theory).

Add new status codes:
- F_help
- F_help_not

Major work is completed into making the utf8 program more flexible.
- Moved all parameter processing into utf8_setting_load() and provide utf8_setting_t.
- This allows for callers to manually configure the settings without performing parameter processing if so desired.
- Re-design printing logic to handle the line_first_no and line_last_no parameters.
- The status used by the utf8_main() is now in utf8_setting_t.

Related changes have been lazily applied to all other programs.
Once I am finished with utf8 (which I might already be), then I will beging moving to each next program.
267 files changed:
build/level_2/settings
build/monolithic/settings
level_0/f_account/data/build/settings
level_0/f_account/data/build/settings-mocks
level_0/f_account/data/build/settings-tests
level_0/f_capability/data/build/settings
level_0/f_capability/data/build/settings-mocks
level_0/f_capability/data/build/settings-tests
level_0/f_color/c/color.c
level_0/f_color/c/color.h
level_0/f_color/c/color/common.h
level_0/f_color/c/private-color.c
level_0/f_color/data/build/dependencies
level_0/f_color/data/build/settings
level_0/f_color/data/build/settings-mocks
level_0/f_color/data/build/settings-tests
level_0/f_console/c/console.c
level_0/f_console/c/console.h
level_0/f_console/c/console/common.c
level_0/f_console/c/console/common.h
level_0/f_console/data/build/settings
level_0/f_console/data/build/settings-tests
level_0/f_control_group/data/build/settings
level_0/f_control_group/data/build/settings-tests
level_0/f_conversion/data/build/settings
level_0/f_conversion/data/build/settings-mocks
level_0/f_conversion/data/build/settings-tests
level_0/f_directory/data/build/settings
level_0/f_directory/data/build/settings-mocks
level_0/f_directory/data/build/settings-tests
level_0/f_environment/data/build/settings
level_0/f_environment/data/build/settings-mocks
level_0/f_environment/data/build/settings-tests
level_0/f_execute/data/build/settings
level_0/f_execute/data/build/settings-tests
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_0/f_file/data/build/settings
level_0/f_file/data/build/settings-mocks
level_0/f_file/data/build/settings-tests
level_0/f_fss/data/build/settings
level_0/f_fss/data/build/settings-mocks
level_0/f_fss/data/build/settings-tests
level_0/f_iki/data/build/settings
level_0/f_iki/data/build/settings-tests
level_0/f_limit/data/build/settings
level_0/f_limit/data/build/settings-mocks
level_0/f_limit/data/build/settings-tests
level_0/f_memory/c/memory.c
level_0/f_memory/c/memory.h
level_0/f_memory/c/private-memory.c
level_0/f_memory/data/build/settings
level_0/f_path/data/build/settings
level_0/f_path/data/build/settings-mocks
level_0/f_path/data/build/settings-tests
level_0/f_pipe/data/build/settings
level_0/f_pipe/data/build/settings-mocks
level_0/f_pipe/data/build/settings-tests
level_0/f_print/c/print.c
level_0/f_print/data/build/settings
level_0/f_print/data/build/settings-mocks
level_0/f_print/data/build/settings-tests
level_0/f_serialize/data/build/settings
level_0/f_serialize/data/build/settings-mocks
level_0/f_serialize/data/build/settings-tests
level_0/f_signal/data/build/settings
level_0/f_signal/data/build/settings-mocks
level_0/f_signal/data/build/settings-tests
level_0/f_socket/data/build/settings
level_0/f_socket/data/build/settings-mocks
level_0/f_socket/data/build/settings-tests
level_0/f_status/c/status.h
level_0/f_status/data/build/settings
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_0/f_status_string/data/build/settings
level_0/f_status_string/data/build/settings-tests
level_0/f_status_string/tests/unit/c/test-status_string-to.c
level_0/f_string/c/string/common.h
level_0/f_string/c/string/private-dynamic.c
level_0/f_string/data/build/settings
level_0/f_string/data/build/settings-tests
level_0/f_thread/data/build/settings
level_0/f_thread/data/build/settings-mocks
level_0/f_thread/data/build/settings-tests
level_0/f_type/data/build/settings
level_0/f_type_array/data/build/settings
level_0/f_utf/data/build/settings
level_0/f_utf/data/build/settings-tests
level_1/fl_control_group/c/control_group.c
level_1/fl_control_group/data/build/settings
level_1/fl_conversion/data/build/settings
level_1/fl_directory/data/build/settings
level_1/fl_environment/data/build/settings
level_1/fl_execute/data/build/settings
level_1/fl_fss/data/build/settings
level_1/fl_iki/data/build/settings
level_1/fl_print/data/build/settings
level_1/fl_signal/data/build/settings
level_1/fl_string/data/build/settings
level_1/fl_utf/data/build/settings
level_1/fl_utf_file/data/build/settings
level_2/fll_control_group/data/build/settings
level_2/fll_error/c/error.c
level_2/fll_error/c/private-error.c
level_2/fll_error/c/private-error.h
level_2/fll_error/data/build/settings
level_2/fll_execute/data/build/settings
level_2/fll_file/data/build/settings
level_2/fll_fss/data/build/settings
level_2/fll_fss_status_string/data/build/settings
level_2/fll_iki/data/build/settings
level_2/fll_path/data/build/settings
level_2/fll_print/data/build/settings
level_2/fll_program/c/private-program.c [new file with mode: 0644]
level_2/fll_program/c/private-program.h [new file with mode: 0644]
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_2/fll_program/c/program/common.h
level_2/fll_program/data/build/settings
level_2/fll_status_string/c/status_string.c
level_2/fll_status_string/data/build/settings
level_2/fll_status_string/data/build/settings-tests
level_2/fll_status_string/tests/unit/c/test-status_string-from.c
level_3/byte_dump/c/byte_dump.c
level_3/byte_dump/c/byte_dump.h
level_3/byte_dump/c/common.h
level_3/byte_dump/c/main.c
level_3/byte_dump/data/build/settings
level_3/control/c/common.h
level_3/control/c/control.c
level_3/control/c/control.h
level_3/control/c/main.c
level_3/control/c/private-control.c
level_3/control/data/build/settings
level_3/controller/c/common.h
level_3/controller/c/controller.c
level_3/controller/c/controller.h
level_3/controller/c/controller/private-controller.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_print.c
level_3/controller/data/build/settings
level_3/fake/c/common.h
level_3/fake/c/fake.c
level_3/fake/c/fake.h
level_3/fake/c/main.c
level_3/fake/c/private-build.c
level_3/fake/c/private-fake.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_type.c
level_3/fake/c/private-print.c
level_3/fake/c/private-skeleton.c
level_3/fake/data/build/settings
level_3/firewall/c/common.h
level_3/firewall/c/firewall.c
level_3/firewall/c/firewall.h
level_3/firewall/c/main.c
level_3/firewall/c/private-firewall.c
level_3/firewall/data/build/settings
level_3/fss_basic_list_read/c/common.h
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/main.c
level_3/fss_basic_list_read/data/build/settings
level_3/fss_basic_list_write/c/common.h
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/main.c
level_3/fss_basic_list_write/data/build/settings
level_3/fss_basic_read/c/common.h
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/main.c
level_3/fss_basic_read/data/build/settings
level_3/fss_basic_write/c/common.h
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/main.c
level_3/fss_basic_write/data/build/settings
level_3/fss_embedded_list_read/c/common.h
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/main.c
level_3/fss_embedded_list_read/c/private-common.h
level_3/fss_embedded_list_read/data/build/settings
level_3/fss_embedded_list_write/c/common.h
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/main.c
level_3/fss_embedded_list_write/data/build/settings
level_3/fss_extended_list_read/c/common.h
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/main.c
level_3/fss_extended_list_read/data/build/settings
level_3/fss_extended_list_write/c/common.h
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/main.c
level_3/fss_extended_list_write/data/build/settings
level_3/fss_extended_read/c/common.h
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/main.c
level_3/fss_extended_read/data/build/settings
level_3/fss_extended_write/c/common.h
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/main.c
level_3/fss_extended_write/data/build/settings
level_3/fss_identify/c/common.h
level_3/fss_identify/c/fss_identify.c
level_3/fss_identify/c/fss_identify.h
level_3/fss_identify/c/main.c
level_3/fss_identify/data/build/settings
level_3/fss_payload_read/c/common.h
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/main.c
level_3/fss_payload_read/data/build/settings
level_3/fss_payload_write/c/common.h
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/main.c
level_3/fss_payload_write/data/build/settings
level_3/fss_status_code/c/common.h
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/main.c
level_3/fss_status_code/data/build/settings
level_3/iki_read/c/common.h
level_3/iki_read/c/iki_read.c
level_3/iki_read/c/iki_read.h
level_3/iki_read/c/main.c
level_3/iki_read/data/build/settings
level_3/iki_write/c/common.h
level_3/iki_write/c/iki_write.c
level_3/iki_write/c/iki_write.h
level_3/iki_write/c/main.c
level_3/iki_write/c/private-write.c
level_3/iki_write/data/build/settings
level_3/status_code/c/common.h
level_3/status_code/c/main.c
level_3/status_code/c/status_code.c
level_3/status_code/c/status_code.h
level_3/status_code/data/build/settings
level_3/utf8/c/common.c
level_3/utf8/c/common.h
level_3/utf8/c/main.c
level_3/utf8/c/print.c [new file with mode: 0644]
level_3/utf8/c/print.h [new file with mode: 0644]
level_3/utf8/c/private-common.c
level_3/utf8/c/private-common.h
level_3/utf8/c/private-print.c [deleted file]
level_3/utf8/c/private-print.h [deleted file]
level_3/utf8/c/private-utf8.c
level_3/utf8/c/private-utf8.h
level_3/utf8/c/private-utf8_bytesequence.c
level_3/utf8/c/private-utf8_bytesequence.h
level_3/utf8/c/private-utf8_codepoint.c
level_3/utf8/c/private-utf8_codepoint.h
level_3/utf8/c/utf8.c
level_3/utf8/c/utf8.h
level_3/utf8/data/build/settings