]> Kevux Git Server - fll/commit
Update: implement *_delete_simple() and *_destroy_simple() macros and related changes
authorKevin Day <thekevinday@gmail.com>
Fri, 22 Nov 2019 02:24:43 +0000 (20:24 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 22 Nov 2019 02:24:43 +0000 (20:24 -0600)
commit46addfad2d354ab7a23b930debbb8334135cd786
treee0a0dafd5760a31d4cb663d0a1265c2ee4a4fe1f
parent1f73f886e7ed6c50faf611366535e11804a99091
Update: implement *_delete_simple() and *_destroy_simple() macros and related changes

I do not want a *_delete() and *_destroy() that doesn't provide the ability to handle a status code.
However, in practice, the *_delete() and *_destroy() macros rarely needed the status response checked.
Additional f_status variables were created only to be provided for the status parameter of the stated macros.
This is a waste.

This provides and utilizes alternative *_delete() and *_destroy() macros called *_delete_simple() and *_destroy_simple().
These simple macros do not accept or process the status code.
The resulting code is simpler and easier.

I am on the fence whether or not to throw away the *_delete() and *_destroy() macros that utilize a status parameter.
Future versions may or may not replace the *_delete() and *_destroy() with the *_delete_simple() and *_destroy_simple() macros.

Update *_delete() and *_destroy() macros as needed.
31 files changed:
level_0/f_console/c/console.c
level_0/f_fss/c/fss.h
level_0/f_memory/c/memory.h
level_0/f_string/c/string.h
level_0/f_type/c/type_array.h
level_1/fl_color/c/color.h
level_1/fl_directory/c/directory.c
level_1/fl_fss/c/fss_basic.c
level_1/fl_fss/c/fss_basic_list.c
level_1/fl_fss/c/fss_extended.c
level_1/fl_fss/c/fss_extended_list.c
level_2/fll_execute/c/execute.c
level_2/fll_program/c/program.c
level_3/byte_dump/c/byte_dump.c
level_3/firewall/c/firewall.c
level_3/firewall/c/private-firewall.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_list_read/c/private-fss_basic_list_read.c
level_3/fss_basic_list_read/c/private-fss_basic_list_read.h
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_basic_read/c/private-fss_basic_read.c
level_3/fss_basic_read/c/private-fss_basic_read.h
level_3/fss_basic_write/c/fss_basic_write.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_extended_read/c/private-fss_extended_read.c
level_3/fss_extended_read/c/private-fss_extended_read.h
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_status_code/c/fss_status_code.c
level_3/init/c/private-init.c
level_3/status_code/c/status_code.c