]> Kevux Git Server - fll/commit
Update: FSS Embedded Read memory allocation logic.
authorKevin Day <Kevin@kevux.org>
Mon, 19 Aug 2024 02:41:00 +0000 (21:41 -0500)
committerKevin Day <Kevin@kevux.org>
Mon, 19 Aug 2024 02:41:00 +0000 (21:41 -0500)
commit104ed789a759a344146431ded54cde9fefb063ec
treef450990658dde0c7cae17c6ac179602f5d982fbf
parent7c61bc182f4a412d07462943e0e59162775cddd0
Update: FSS Embedded Read memory allocation logic.

Move the internally managed allocation into externally managed allocation.
This allows for better memory control and optimization by the caller.

The use of `f_memory_array_increase()` is incorrect in several cases.
Switch to `f_memory_array_resize()`.
Add 2 when resizing to account for the depth position but also an additional element as a minor memory allocation optimization.

Get rid of headers that should not be included.

This does not address any of the other problems with the FSS Embedded Read functions.
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_list.h
level_2/fll_fss/c/fss/embedded_list.h
level_3/fss_read/c/embedded_list/fss_read.c
level_3/fss_read/c/main/common/type.c
level_3/fss_read/c/main/common/type.h