From 6de068557c50c0dc5027056a9fd60aa24fd1bfb6 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 9 Mar 2023 22:03:22 -0600 Subject: [PATCH] Cleanup: Minor syntax and style issues. --- level_3/fake/c/private-make-operate_validate.h | 3 +++ level_3/fake/c/private-make-operate_validate_type.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/level_3/fake/c/private-make-operate_validate.h b/level_3/fake/c/private-make-operate_validate.h index baaff65..52c36e7 100644 --- a/level_3/fake/c/private-make-operate_validate.h +++ b/level_3/fake/c/private-make-operate_validate.h @@ -50,6 +50,9 @@ extern "C" { * F_true on valid. * F_false on invalid. * F_none if there is no string to validate (used = 0). + * + * @see isalpha() + * @see isalnum() */ #ifndef _di_fake_make_operate_validate_define_name_ extern f_status_t fake_make_operate_validate_define_name(const f_string_static_t name) F_attribute_visibility_internal_d; diff --git a/level_3/fake/c/private-make-operate_validate_type.c b/level_3/fake/c/private-make-operate_validate_type.c index 921f305..bd385ad 100644 --- a/level_3/fake/c/private-make-operate_validate_type.c +++ b/level_3/fake/c/private-make-operate_validate_type.c @@ -720,8 +720,9 @@ extern "C" { if (data_make->cache_arguments.used > 1) { f_status_t status = F_none; f_status_t status_file = F_none; + f_array_length_t i = 0; - for (f_array_length_t i = 0; i < data_make->cache_arguments.used; ++i) { + for (; i < data_make->cache_arguments.used; ++i) { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); @@ -732,7 +733,7 @@ extern "C" { } } // for - for (f_array_length_t i = 0; i < data_make->cache_arguments.used - 1; ++i) { + for (i = 0; i < data_make->cache_arguments.used - 1; ++i) { if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) { if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { @@ -1446,7 +1447,7 @@ extern "C" { status = F_status_set_error(F_failure); } - } + } // for return status; } -- 1.8.3.1