From 49f2972279883c6f6f2ba109fb71af67baa31344 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 14 Nov 2019 20:44:17 -0600 Subject: [PATCH] Cleanup: minor cleanups --- level_2/fll_fss/c/fss_basic_list.c | 4 ++-- level_2/fll_fss/c/fss_extended.c | 6 +++--- level_2/fll_fss/c/fss_extended_list.c | 4 ++-- level_2/fll_fss/c/fss_status.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/level_2/fll_fss/c/fss_basic_list.c b/level_2/fll_fss/c/fss_basic_list.c index 087cc05..d66a340 100644 --- a/level_2/fll_fss/c/fss_basic_list.c +++ b/level_2/fll_fss/c/fss_basic_list.c @@ -100,7 +100,7 @@ extern "C" { } else if (status == f_no_data_on_eos || status == f_no_data_on_stop) { - // if at least some valid object was found, then return f_none equivalents + // If at least some valid object was found, then return f_none equivalents. if (objects->used > initial_used) { if (status == f_no_data_on_eos) return f_none_on_eos; if (status == f_no_data_on_stop) return f_none_on_stop; @@ -111,7 +111,7 @@ extern "C" { else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) { return status; } - // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop + // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop. else if (input->start >= input->stop || input->start >= buffer->used) { if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) { objects->used++; diff --git a/level_2/fll_fss/c/fss_extended.c b/level_2/fll_fss/c/fss_extended.c index 50f63da..35d091d 100644 --- a/level_2/fll_fss/c/fss_extended.c +++ b/level_2/fll_fss/c/fss_extended.c @@ -71,7 +71,7 @@ extern "C" { if (status == fl_fss_found_object) { found_data = f_true; - status = fl_fss_extended_content_read(buffer, input, &contents->array[contents->used]); + status = fl_fss_extended_content_read(buffer, input, &contents->array[contents->used]); break; } @@ -100,7 +100,7 @@ extern "C" { } else if (status == f_no_data_on_eos || status == f_no_data_on_stop) { - // if at least some valid object was found, then return f_none equivelents + // If at least some valid object was found, then return f_none equivelents. if (objects->used > initial_used) { if (status == f_no_data_on_eos) return f_none_on_eos; if (status == f_no_data_on_stop) return f_none_on_stop; @@ -111,7 +111,7 @@ extern "C" { else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) { return status; } - // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop + // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop. else if (input->start >= input->stop || input->start >= buffer->used) { if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) { objects->used++; diff --git a/level_2/fll_fss/c/fss_extended_list.c b/level_2/fll_fss/c/fss_extended_list.c index 2bef881..3a6a466 100644 --- a/level_2/fll_fss/c/fss_extended_list.c +++ b/level_2/fll_fss/c/fss_extended_list.c @@ -100,7 +100,7 @@ extern "C" { } else if (status == f_no_data_on_eos || status == f_no_data_on_stop) { - // if at least some valid object was found, then return f_none equivalents + // If at least some valid object was found, then return f_none equivalents. if (objects->used > initial_used) { if (status == f_no_data_on_eos) return f_none_on_eos; if (status == f_no_data_on_stop) return f_none_on_stop; @@ -111,7 +111,7 @@ extern "C" { else if (status != fl_fss_found_object && status != fl_fss_found_content && status != fl_fss_found_no_content && status != fl_fss_found_object_no_content) { return status; } - // when content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop + // When content is found, the input->start is incremented, if content is found at input->stop, then input->start will be > input.stop. else if (input->start >= input->stop || input->start >= buffer->used) { if (status == fl_fss_found_object || status == fl_fss_found_content || status == fl_fss_found_no_content || status == fl_fss_found_object_no_content) { objects->used++; diff --git a/level_2/fll_fss/c/fss_status.c b/level_2/fll_fss/c/fss_status.c index 639a53f..95fcb6a 100644 --- a/level_2/fll_fss/c/fss_status.c +++ b/level_2/fll_fss/c/fss_status.c @@ -17,7 +17,7 @@ extern "C" { return f_no_data; } - // numbers are not valid status code strings. + // Numbers are not valid status code strings. if ((status = f_conversion_character_is_decimal(string[0])) == f_true) { return f_status_set_error(f_invalid_data); } -- 1.8.3.1