]> Kevux Git Server - fll/commit
Update: Add fl_directory_do(), add new status codes, update fl_directory_copy(),...
authorKevin Day <kevin@kevux.org>
Sun, 26 Mar 2023 00:40:51 +0000 (19:40 -0500)
committerKevin Day <kevin@kevux.org>
Sun, 26 Mar 2023 00:40:51 +0000 (19:40 -0500)
commitabaed1570edab133e91d5731d6afb324d4fc12a8
treedd264dd44319bbe70a62a4e66e83f9ae28fee8b6
parentd120b9fbe5a1e62bfb043dc07827168baee9d5fc
Update: Add fl_directory_do(), add new status codes, update fl_directory_copy(), and other changes.

An alternative to the ftw() is desired.
The function, fl_directory_do() is provided to perform generic recursive tasks.
This is based off of the fl_directory_copy() function.
This is not yet tested and there may be changes in the future once this is tested.

I noticed some things that could be improved in fl_directory_copy().
The recursion structure is actually specific to fl_directory_copy(), so rename it with "copy" in the name.

Add additional status codes that might be useful:
- F_bottom
- F_bottom_not
- F_character
- F_character_not
- F_fifo
- F_fifo_not
- F_middle
- F_middle_not
- F_regular
- F_regular_not
- F_top
- F_top_not

Provide a standard macro initializer and use it to make project maintenance easier.
This reduces lines of code in the programs.

Update the program flags:
- Use "in" and "out" instead of "to" and "from".
- Separate the "file" from the now "in" and "out".

Update the build settings files, making sure the locale and language environment variables are exposed by default.

Relocate the utf-8 code that previously didn't properly get properly relocated.
93 files changed:
build/stand_alone/fake.config.h
level_0/f_directory/c/directory/common.h
level_0/f_directory/c/directory/type.c
level_0/f_directory/c/directory/type.h
level_0/f_status/c/status.h
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/directory.h
level_1/fl_directory/c/private-directory.c
level_1/fl_directory/c/private-directory.h
level_2/fll_file/c/file.c
level_2/fll_file/c/file.h
level_2/fll_program/c/program/common.h
level_2/fll_status_string/c/status_string.c
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/main.c
level_3/control/data/build/settings
level_3/controller/c/common.h
level_3/controller/c/main.c
level_3/controller/data/build/settings
level_3/fake/c/main/build.c
level_3/fake/c/main/common/enumeration.h
level_3/fake/c/main/main.c
level_3/fake/c/main/make/operate_process_type.c
level_3/fake/c/main/print/verbose.c
level_3/fake/c/main/print/verbose.h
level_3/fake/data/build/settings
level_3/firewall/c/common.h
level_3/firewall/c/main.c
level_3/firewall/data/build/settings
level_3/fss_basic_list_read/c/common.h
level_3/fss_basic_list_read/c/main.c
level_3/fss_basic_list_read/data/build/settings
level_3/fss_basic_read/c/common.h
level_3/fss_basic_read/c/main.c
level_3/fss_basic_read/data/build/settings
level_3/fss_embedded_list_read/c/common.h
level_3/fss_embedded_list_read/c/main.c
level_3/fss_embedded_list_read/data/build/settings
level_3/fss_extended_list_read/c/common.h
level_3/fss_extended_list_read/c/main.c
level_3/fss_extended_list_read/data/build/settings
level_3/fss_extended_read/c/common.h
level_3/fss_extended_read/c/main.c
level_3/fss_extended_read/data/build/settings
level_3/fss_identify/c/common.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/main.c
level_3/fss_payload_read/data/build/settings
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/define.h
level_3/fss_write/c/main/common/enumeration.h
level_3/fss_write/c/main/main.c
level_3/fss_write/c/payload/main.c
level_3/fss_write/data/build/settings
level_3/fss_write/data/build/settings.basic
level_3/fss_write/data/build/settings.basic_list
level_3/fss_write/data/build/settings.embedded_list
level_3/fss_write/data/build/settings.extended
level_3/fss_write/data/build/settings.extended_list
level_3/fss_write/data/build/settings.main
level_3/fss_write/data/build/settings.payload
level_3/iki_read/c/main/common/define.h
level_3/iki_read/c/main/common/enumeration.h
level_3/iki_read/c/main/main.c
level_3/iki_read/data/build/settings
level_3/iki_write/c/main/common/define.h
level_3/iki_write/c/main/common/enumeration.h
level_3/iki_write/c/main/main.c
level_3/iki_write/data/build/settings
level_3/status_code/c/fss/main.c
level_3/status_code/c/main/common/define.h
level_3/status_code/c/main/common/enumeration.h
level_3/status_code/c/main/main.c
level_3/status_code/c/main/status_code.h
level_3/status_code/data/build/settings
level_3/status_code/data/build/settings.fss
level_3/status_code/data/build/settings.main
level_3/utf8/c/main/common/define.h
level_3/utf8/c/main/common/enumeration.h
level_3/utf8/c/main/common/type.h
level_3/utf8/c/main/main.c
level_3/utf8/data/build/settings