]> Kevux Git Server - fll/commit
Update: Utilize the state.flag to allow for fss read to not fail out on invalid UTF...
authorKevin Day <thekevinday@gmail.com>
Wed, 11 May 2022 05:38:37 +0000 (00:38 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 11 May 2022 05:42:26 +0000 (00:42 -0500)
commitbdcbec45d5bec3fd926fdbf81ee02cc6c755dadc
tree3fc8c46f67ce4b4223f9a5babef55634c451d870
parentf6aa54cd5e5b576c7493689cec4e4a5e10550a8b
Update: Utilize the state.flag to allow for fss read to not fail out on invalid UTF-8 code sequence and fix naming problems.

One of the original goals of the FLL project is to achieve fail-through functionality.
Knowing that this is a lot of work, I have ignored a lot of situations where I can implement fail-through and simply performed fail-out or fail-over.

With the upcoming stable release, I believe that this must handle bad data files.
This adds the option to conditionally change the behavior between fail-through and fail-out for the fss read functions and related for invalid UTF-8 code sequences.
The default behavior is now changed from fail-out to fail-through.

This took longer than I hoped.
I will need to do additional reviewing of this code before the stable release is ready.
I also realized that I need to support raw printing of data in the fss read functions as well (and that means changing the existing -r/--raw parameter).

This also fixes the following naming problems:
- fl_fss_apply_delimit() should be f_fss_apply_delimit().
- fl_fss_apply_delimit_between() should be fl_fss_apply_delimit_between().
39 files changed:
level_0/f_fss/c/fss.c
level_0/f_fss/c/fss.h
level_0/f_fss/c/fss/common.h
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/embedded_list.c
level_1/fl_fss/c/fss/embedded_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/private-fss.c
level_1/fl_fss/c/private-fss.h
level_2/fll_fss/c/fss/basic.h
level_2/fll_fss/c/fss/basic_list.h
level_2/fll_fss/c/fss/embedded_list.h
level_2/fll_fss/c/fss/extended.h
level_2/fll_fss/c/fss/extended_list.h
level_2/fll_fss/c/fss/payload.h
level_3/control/c/private-control.c
level_3/control/c/private-control.h
level_3/controller/c/entry/private-entry.c
level_3/controller/c/entry/private-entry.h
level_3/controller/c/rule/private-rule.c
level_3/controller/c/rule/private-rule.h
level_3/controller/c/rule/private-rule_print.c
level_3/fake/c/private-build-load.c
level_3/fake/c/private-make-load_fakefile.c
level_3/fake/c/private-print.c
level_3/firewall/c/private-firewall.c
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_write/c/fss_basic_write.c
level_3/fss_embedded_list_write/c/fss_embedded_list_write.c
level_3/fss_extended_list_read/c/private-read.c
level_3/fss_extended_list_write/c/fss_extended_list_write.c
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_payload_write/c/fss_payload_write.c