]> Kevux Git Server - fll/commit
Update: Remove *_decrease() and *_decimate() macros and functions.
authorKevin Day <thekevinday@gmail.com>
Sat, 9 Jan 2021 21:00:23 +0000 (15:00 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 9 Jan 2021 22:17:17 +0000 (16:17 -0600)
commit24adddffc0b490587b2a8d62d14630342b8cfe85
tree7131da73d51845079756e75b243c8357c67acfb6
parent5e7942e4c73caf97057b20ef8c9fdaa768dc0cac
Update: Remove *_decrease() and *_decimate() macros and functions.

My general design goal is "completeness".
I originally looked at the *_decrease() or *_decimate() macros and functions as a completeness compliment of the increase() macros and functions.

There *incease_by() macros and functions as well as their compliments can already resize by 1 (or any given amount).
This means that the *_increase() (and similar) are not needed.
This puts the *_increase() in the position of an "exception" case.
As an exception case, I believe it does not necessarily need a completeness compliment.

Unlike the *_increase_by() macros and functions, the *_increase() increases by 1 or more (depending on the definition of the macro f_memory_default_allocation_step).
There is no logical compliment of this behavior for a decrease() macro/function.

Therefore, I believe it is more appropriate to remove all *_decrease() and *_decimate() macros and functions.
26 files changed:
level_0/f_account/c/account-common.h
level_0/f_fss/c/fss_comment.h
level_0/f_fss/c/fss_delimit.h
level_0/f_fss/c/fss_quote.h
level_0/f_limit/c/limit-common.h
level_0/f_memory/c/memory-common.h
level_0/f_memory/c/memory_structure.c
level_0/f_memory/c/memory_structure.h
level_0/f_memory/c/private-memory.h
level_0/f_status/c/status_array.h
level_0/f_string/c/private-string.c
level_0/f_string/c/private-string.h
level_0/f_string/c/string-common.h
level_0/f_string/c/string_dynamic.c
level_0/f_string/c/string_dynamic.h
level_0/f_string/c/string_map.c
level_0/f_string/c/string_map.h
level_0/f_string/c/string_quantity.c
level_0/f_string/c/string_quantity.h
level_0/f_string/c/string_range.c
level_0/f_string/c/string_range.h
level_0/f_string/c/string_triple.c
level_0/f_string/c/string_triple.h
level_0/f_thread/c/thread-common.h
level_0/f_type/c/type_array.h
level_0/f_utf/c/utf-common.h