]> Kevux Git Server - fll/commit
Update: Use defines over enums in f_console, add stop behavior, and add alone behavior.
authorKevin Day <Kevin@kevux.org>
Mon, 21 Apr 2025 00:49:56 +0000 (19:49 -0500)
committerKevin Day <Kevin@kevux.org>
Mon, 21 Apr 2025 00:59:54 +0000 (19:59 -0500)
commit769d2b1f7b0ab76dc3835b2c7ab294386c5810ee
tree5097c7f2c506f64596e219737cb42970fb7d3602
parenta65987fc2931d94d95dcd67c223c99ba7869b8d2
Update: Use defines over enums in f_console, add stop behavior, and add alone behavior.

The enumerations take up more space in the binary.
Several of the enumerations are being used as flags instead of enumerations.
I was not certain how I should do handle this in the past but now I am certain that using defines for flags is the way to go.

The ability to trigger stopping of the processing of parameters and storing the remaining parameters in the remaining array for f_console is now added via a stop flag.
The "alone" behavior is not complete and is a good to have for the desired stop behavior.
Many classic programs us `--` to trigger the end of the parameters.
The "stop" and "alone" behaviors allow for `--` to be used in the same way as classic programs.
60 files changed:
build/disable/level_0/f_console.h
build/stand_alone/byte_dump.config.h
build/stand_alone/example.config.h
build/stand_alone/fake.config.h
build/stand_alone/firewall.config.h
build/stand_alone/utf8.config.h
level_0/f_console/c/console.c
level_0/f_console/c/console/common.h
level_0/f_console/c/private-console.c
level_0/f_console/tests/unit/c/test-console-identify.c
level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c
level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c
level_0/f_console/tests/unit/c/test-console-parameter_process.c
level_0/f_console/tests/unit/c/test-console-parameter_reset.c
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/directory.h
level_2/fll_program/c/program/common.h
level_3/byte_dump/c/main/common.c
level_3/byte_dump/c/main/common/enumeration.h
level_3/example/c/main/common.c
level_3/example/c/main/common/enumeration.h
level_3/fake/c/main/build/load.c
level_3/fake/c/main/common.c
level_3/fake/c/main/common/enumeration.h
level_3/fake/c/main/fake.c
level_3/fake/c/main/make/load_parameters.c
level_3/fake/c/main/make/operate_process_type.c
level_3/firewall/c/main/common.c
level_3/firewall/c/main/common/enumeration.h
level_3/fss_identify/c/main/common.c
level_3/fss_identify/c/main/common/enumeration.h
level_3/fss_read/c/main/common.c
level_3/fss_read/c/main/common/enumeration.h
level_3/fss_read/c/main/main.c
level_3/fss_read/c/payload/fss_read.c
level_3/fss_read/c/payload/main.c
level_3/fss_write/c/basic/main.c
level_3/fss_write/c/basic_list/main.c
level_3/fss_write/c/embedded_list/main.c
level_3/fss_write/c/extended/main.c
level_3/fss_write/c/extended_list/main.c
level_3/fss_write/c/main/common.c
level_3/fss_write/c/main/common/enumeration.h
level_3/fss_write/c/main/main.c
level_3/fss_write/c/payload/fss_write.c
level_3/fss_write/c/payload/main.c
level_3/iki_read/c/eki/common.c
level_3/iki_read/c/eki/process.c
level_3/iki_read/c/iki/common.c
level_3/iki_read/c/iki/process.c
level_3/iki_read/c/main/common.c
level_3/iki_read/c/main/common/enumeration.h
level_3/iki_write/c/eki/common.c
level_3/iki_write/c/iki/common.c
level_3/iki_write/c/main/common.c
level_3/iki_write/c/main/common/enumeration.h
level_3/status_code/c/main/common.c
level_3/status_code/c/main/common/enumeration.h
level_3/utf8/c/main/common.c
level_3/utf8/c/main/common/enumeration.h