]> Kevux Git Server - fll/commit
Progress: add support for determining quotes in use, other fixes and cleanups.
authorKevin Day <thekevinday@gmail.com>
Thu, 9 Jul 2020 05:13:15 +0000 (00:13 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 9 Jul 2020 05:13:15 +0000 (00:13 -0500)
commit9ea8bb6428f83e780caa03caaa868be6c44a1656
tree66f72452da45b69ac17c4721aeea7fcca7611d8a
parent965b00d2098375782a8a19c97f0a62546aaea2e6
Progress: add support for determining quotes in use, other fixes and cleanups.

While not enthusiastic about this, I believe that I need to report the quote used to the caller.
Make this an optional parameter.

This took some significant consideration.
Not all standards utilize quotes and I also do not want to make FSS object and content types more complex than ranges.
Using a separate variable, while a bit more tedious in having to maintain consistency, is an acceptable approach.

FSS-0000 objects, FSS-0001 objects, and FSS-0001 contents all use the same logic for identifying their types.
Reduce code by using the same function.
Because FSS-0001 contents is an array of contents, move delimit processing outside of the private function.

Replace (used + 1 > size) checks with (used == size) checks to increase performance by avoiding arithmetic operations.
Replace (used <= 0) checks with (used == 0) checks to remove unnecessary checks.
Replace (used != 0) checks with (used) checks to avoid extra processor work.

When incrementing and decrementing buffer, do not report used as an error, instead just return F_data_not.

Shorten pre_allocate_size to size_allocate.

Stop setting F_unterminated_group_stop and F_unterminated_group_eos as warnings.
This was not done consistently.

Rename buffer to destination for FSS write functions.

At some point in the past I was wanting to use while loops more exclusively.
After some some significant time and consideration, I have decided to abandon that idea.
Use for loops where they make more sense over while loops.

Continue work in Featureless Make.
56 files changed:
build/level_0/settings
build/monolithic/settings
documents/todo.txt
level_0/f_console/c/console.c
level_0/f_directory/c/directory.c
level_0/f_fss/c/fss-common.h
level_0/f_fss/c/fss-quoted.h [new file with mode: 0644]
level_0/f_fss/c/fss.c
level_0/f_fss/c/fss.h
level_0/f_fss/data/build/settings
level_0/f_iki/c/iki-common.h
level_0/f_iki/c/iki.c
level_0/f_print/c/print.c
level_0/f_status/c/status_array.h
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf.h
level_1/fl_color/c/color.c
level_1/fl_directory/c/private-directory.c
level_1/fl_fss/c/fss_basic.c
level_1/fl_fss/c/fss_basic.h
level_1/fl_fss/c/fss_basic_list.c
level_1/fl_fss/c/fss_basic_list.h
level_1/fl_fss/c/fss_extended.c
level_1/fl_fss/c/fss_extended.h
level_1/fl_fss/c/fss_extended_list.c
level_1/fl_fss/c/fss_extended_list.h
level_1/fl_fss/c/fss_macro.h
level_1/fl_fss/c/private-fss.c
level_1/fl_fss/c/private-fss.h
level_1/fl_print/c/print.c
level_1/fl_string/c/string.c
level_1/fl_utf/c/utf.c
level_1/fl_utf_file/c/private-utf_file.c
level_2/fll_execute/c/private-execute.c
level_2/fll_fss/c/fss.c
level_2/fll_fss/c/fss_basic.c
level_2/fll_fss/c/fss_basic.h
level_2/fll_fss/c/fss_basic_list.c
level_2/fll_fss/c/fss_extended.c
level_2/fll_fss/c/fss_extended.h
level_2/fll_fss/c/fss_extended_list.c
level_2/fll_program/c/program.c
level_3/fake/c/private-build.c
level_3/fake/c/private-make.c
level_3/fake/data/build/fakefile
level_3/firewall/c/private-firewall.c
level_3/firewall/c/private-firewall.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_read/c/private-fss_basic_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_extended_read/c/private-fss_extended_read.c
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_extended_write/c/fss_extended_write.h
level_3/init/c/private-init.c