From: Kevin Day Date: Thu, 10 Feb 2022 03:45:28 +0000 (-0600) Subject: Bugfix: The prepend option is being incorrectly applied. X-Git-Tag: 0.5.8~66 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d4986e57ae5db5ac9613716074b74a48adbf3da4;p=fll Bugfix: The prepend option is being incorrectly applied. This is a bug that results from a naming context conflict where the "prepend" string must be "appended" to the buffer. The f_string_dynamic_append() should be called instead of f_string_dynamic_prepend(). --- diff --git a/level_1/fl_fss/c/fss_basic_list.c b/level_1/fl_fss/c/fss_basic_list.c index 07b4980..5e7e3a2 100644 --- a/level_1/fl_fss/c/fss_basic_list.c +++ b/level_1/fl_fss/c/fss_basic_list.c @@ -827,7 +827,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -895,7 +895,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -951,7 +951,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; diff --git a/level_1/fl_fss/c/fss_embedded_list.c b/level_1/fl_fss/c/fss_embedded_list.c index e67e8bc..3eb6d88 100644 --- a/level_1/fl_fss/c/fss_embedded_list.c +++ b/level_1/fl_fss/c/fss_embedded_list.c @@ -1269,7 +1269,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -1350,7 +1350,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -1425,7 +1425,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; diff --git a/level_1/fl_fss/c/fss_extended_list.c b/level_1/fl_fss/c/fss_extended_list.c index 9b4509a..eee94f6 100644 --- a/level_1/fl_fss/c/fss_extended_list.c +++ b/level_1/fl_fss/c/fss_extended_list.c @@ -827,7 +827,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -906,7 +906,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -983,7 +983,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false;