From: Kevin Day Date: Sat, 18 Jul 2020 05:08:58 +0000 (-0500) Subject: Update: start counting line at 1. X-Git-Tag: 0.5.0~76 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9c7941a9b6350aea421dceb06a5f2cdc666f620c;p=fll Update: start counting line at 1. The fss files may start at 0, but report the starting line at 1 for friendliness with other programs. I may very well need to update the fss project to consider lines starting at 1 instead of 0 for consistency. --- diff --git a/level_3/fake/c/private-print.c b/level_3/fake/c/private-print.c index 088318c..d81c48a 100644 --- a/level_3/fake/c/private-print.c +++ b/level_3/fake/c/private-print.c @@ -300,7 +300,7 @@ extern "C" { void fake_print_error_fakefile_section_operation_failed(const fake_data data, const f_string_static buffer, const f_string_range section_name, const f_string_range operation_name) { if (data.verbosity == fake_verbosity_quiet) return; - f_string_length line = 0; + f_string_length line = 1; f_fss_count_lines(buffer, operation_name.start, &line); @@ -327,7 +327,7 @@ extern "C" { void fake_print_error_fakefile_section_operation_stack_max(const fake_data data, const f_string_static buffer, const f_string_range section_name, const f_string_range operation_name, const f_array_length stack_max) { if (data.verbosity == fake_verbosity_quiet) return; - f_string_length line = 0; + f_string_length line = 1; f_fss_count_lines(buffer, operation_name.start, &line); @@ -356,7 +356,7 @@ extern "C" { void fake_print_error_fakefile_section_operation_unknown(const fake_data data, const f_string_static buffer, const f_string_range section_name, const f_string_range operation_name) { if (data.verbosity == fake_verbosity_quiet) return; - f_string_length line = 0; + f_string_length line = 1; f_fss_count_lines(buffer, operation_name.start, &line);