From 9c7941a9b6350aea421dceb06a5f2cdc666f620c Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 18 Jul 2020 00:08:58 -0500 Subject: [PATCH] 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. --- level_3/fake/c/private-print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 1.8.3.1