From: Kevin Day Date: Fri, 18 Aug 2023 00:21:46 +0000 (-0500) Subject: Update: Existing F_none and similar uses are now F_okay. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ad1a94c963f6451dc8fb4a5db8b824656982b36a;p=fll Update: Existing F_none and similar uses are now F_okay. This is the second part of changing the status codes. This is a massive regex based change and so there is a lot of potential for mistakes. Time will tell. --- diff --git a/documents/cygwin.txt b/documents/cygwin.txt index e687cab..2590763 100644 --- a/documents/cygwin.txt +++ b/documents/cygwin.txt @@ -57,7 +57,7 @@ Cygwin: return F_status_set_error(F_failure); } - return F_none; + return F_okay; " to\: block:" diff --git a/documents/return_codes.txt b/documents/return_codes.txt index e07c445..4492d23 100644 --- a/documents/return_codes.txt +++ b/documents/return_codes.txt @@ -33,7 +33,7 @@ Implicit Return Types for f_status_t: Common Return Types for f_status_t: There are some code:"f_status_t" return types that are not required to be returned but are used quite often that they might seem required. - code:"F_none"\: + code:"F_okay"\: This general designates that no error occurred. This is a generic status code used all over the place. diff --git a/documents/style_guide.txt b/documents/style_guide.txt index ccd8e68..cbe42c6 100644 --- a/documents/style_guide.txt +++ b/documents/style_guide.txt @@ -167,7 +167,7 @@ Return Code Names: These are enumerations but they do not follow the enumeration style guide and are an exception to it. Examples\: - - code:"F_none". + - code:"F_okay". - code:"F_signal_file_size_limit". Global String Constant Names: diff --git a/level_0/f_account/c/account.c b/level_0/f_account/c/account.c index 4c3fee1..cba191e 100644 --- a/level_0/f_account/c/account.c +++ b/level_0/f_account/c/account.c @@ -206,7 +206,7 @@ extern "C" { *id = group_data.gr_gid; - return F_none; + return F_okay; } } @@ -231,7 +231,7 @@ extern "C" { *id = group_data.gr_gid; - return F_none; + return F_okay; } #endif // _di_f_account_group_id_by_name_ @@ -243,7 +243,7 @@ extern "C" { name->used = 0; - f_status_t status = F_none; + f_status_t status = F_okay; const size_t length_max = sysconf(_SC_GETPW_R_SIZE_MAX); @@ -294,7 +294,7 @@ extern "C" { name->string[name_length] = 0; name->used = name_length; - return F_none; + return F_okay; } } @@ -329,7 +329,7 @@ extern "C" { name->string[name_length] = 0; name->used = name_length; - return F_none; + return F_okay; } #endif // _di_f_account_group_name_by_id_ @@ -378,7 +378,7 @@ extern "C" { *id = password.pw_uid; - return F_none; + return F_okay; } } @@ -403,7 +403,7 @@ extern "C" { *id = password.pw_uid; - return F_none; + return F_okay; } #endif // _di_f_account_id_by_name_ @@ -415,7 +415,7 @@ extern "C" { name->used = 0; - f_status_t status = F_none; + f_status_t status = F_okay; const size_t length_max = sysconf(_SC_GETPW_R_SIZE_MAX); @@ -466,7 +466,7 @@ extern "C" { name->string[name_length] = 0; name->used = name_length; - return F_none; + return F_okay; } } @@ -501,7 +501,7 @@ extern "C" { name->string[name_length] = 0; name->used = name_length; - return F_none; + return F_okay; } #endif // _di_f_account_name_by_id_ diff --git a/level_0/f_account/c/account.h b/level_0/f_account/c/account.h index cfa7fa0..599c185 100644 --- a/level_0/f_account/c/account.h +++ b/level_0/f_account/c/account.h @@ -43,7 +43,7 @@ extern "C" { * All strings will be NULL terminated. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -76,7 +76,7 @@ extern "C" { * All strings will be NULL terminated. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -107,7 +107,7 @@ extern "C" { * The id associated with the given name. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -134,7 +134,7 @@ extern "C" { * The name will be NULL terminated after the name.used. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -165,7 +165,7 @@ extern "C" { * The id associated with the given name. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -192,7 +192,7 @@ extern "C" { * The name will be NULL terminated after the name.used. * * @return - * F_none on success. + * F_okay on success. * * F_buffer_too_small (with error bit) if the buffer is too small to store the account data. * F_file_descriptor_max (with error bit) if max file descriptors is reached. diff --git a/level_0/f_account/c/account/accounts.c b/level_0/f_account/c/account/accounts.c index 07eebac..9ba76a3 100644 --- a/level_0/f_account/c/account/accounts.c +++ b/level_0/f_account/c/account/accounts.c @@ -28,7 +28,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_account_delete_ @@ -58,7 +58,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_account_destroy_ @@ -67,7 +67,7 @@ extern "C" { { f_account_t * const array = (f_account_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -88,7 +88,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_accounts_delete_callback_ @@ -97,7 +97,7 @@ extern "C" { { f_account_t * const array = (f_account_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -121,7 +121,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_accounts_destroy_callback_ @@ -130,7 +130,7 @@ extern "C" { { f_accounts_t * const array = (f_accounts_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -160,7 +160,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_accountss_delete_callback_ @@ -169,7 +169,7 @@ extern "C" { { f_accounts_t * const array = (f_accounts_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -199,7 +199,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_accountss_destroy_callback_ diff --git a/level_0/f_account/c/account/accounts.h b/level_0/f_account/c/account/accounts.h index 7dea123..4383023 100644 --- a/level_0/f_account/c/account/accounts.h +++ b/level_0/f_account/c/account/accounts.h @@ -23,7 +23,7 @@ extern "C" { * The account to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -42,7 +42,7 @@ extern "C" { * The account to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -70,7 +70,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -98,7 +98,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -156,7 +156,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_account/c/account/private-accounts.c b/level_0/f_account/c/account/private-accounts.c index 8f14e41..646c722 100644 --- a/level_0/f_account/c/account/private-accounts.c +++ b/level_0/f_account/c/account/private-accounts.c @@ -36,7 +36,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_accounts_append_) || !defined(_di_f_accounts_append_all_) || !defined(_di_f_accountss_append_all_) diff --git a/level_0/f_account/c/account/private-accounts.h b/level_0/f_account/c/account/private-accounts.h index deb26c5..4a07bcc 100644 --- a/level_0/f_account/c/account/private-accounts.h +++ b/level_0/f_account/c/account/private-accounts.h @@ -26,7 +26,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_resize(). * Errors (with error bit) from: f_string_dynamic_append(). diff --git a/level_0/f_account/c/private-account.c b/level_0/f_account/c/private-account.c index 2132172..8a31d94 100644 --- a/level_0/f_account/c/private-account.c +++ b/level_0/f_account/c/private-account.c @@ -9,7 +9,7 @@ extern "C" { #if !defined(_di_f_account_by_name_) || !defined(_di_f_account_by_id_) f_status_t private_f_account_from_passwd(const struct passwd password, const f_number_unsigned_t password_length, f_account_t * const account) { - f_status_t status = F_none; + f_status_t status = F_okay; // Account UID and GID. account->id_user = password.pw_uid; @@ -80,7 +80,7 @@ extern "C" { account->shell.string[string_length] = 0; account->shell.used = string_length; - return F_none; + return F_okay; } #endif // !defined(_di_f_account_by_name_) || !defined(_di_f_account_by_id_) diff --git a/level_0/f_account/c/private-account.h b/level_0/f_account/c/private-account.h index f594699..4f7fb72 100644 --- a/level_0/f_account/c/private-account.h +++ b/level_0/f_account/c/private-account.h @@ -30,7 +30,7 @@ extern "C" { * This assumes that all strings in account have their used set to the desired length, such as 0. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_increase_by(). * diff --git a/level_0/f_account/tests/unit/c/test-account-by_id.c b/level_0/f_account/tests/unit/c/test-account-by_id.c index 673d83d..60d52b6 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-by_id.c @@ -105,7 +105,7 @@ void test__f_account_by_id__works(void **state) { const f_status_t status = f_account_by_id(uid, &account); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(account.id_user, password.pw_uid); assert_int_equal(account.id_group, password.pw_gid); assert_string_equal(account.home.string, password.pw_dir); diff --git a/level_0/f_account/tests/unit/c/test-account-by_name.c b/level_0/f_account/tests/unit/c/test-account-by_name.c index 07775c7..8e5245a 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-by_name.c @@ -115,7 +115,7 @@ void test__f_account_by_name__works(void **state) { const f_status_t status = f_account_by_name(name, &account); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(account.id_user, password.pw_uid); assert_int_equal(account.id_group, password.pw_gid); assert_string_equal(account.home.string, password.pw_dir); diff --git a/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c b/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c index 1700f45..6e07edb 100644 --- a/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c @@ -107,7 +107,7 @@ void test__f_account_group_id_by_name__works(void **state) { const f_status_t status = f_account_group_id_by_name(name, &gid); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(gid, group_data.gr_gid); } } diff --git a/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c b/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c index fb352e6..881ef16 100644 --- a/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c @@ -99,7 +99,7 @@ void test__f_account_group_name_by_id__works(void **state) { const f_status_t status = f_account_group_name_by_id(gid, &name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(name.string, group_data.gr_name); } diff --git a/level_0/f_account/tests/unit/c/test-account-id_by_name.c b/level_0/f_account/tests/unit/c/test-account-id_by_name.c index 2d71032..400f472 100644 --- a/level_0/f_account/tests/unit/c/test-account-id_by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-id_by_name.c @@ -109,7 +109,7 @@ void test__f_account_id_by_name__works(void **state) { const f_status_t status = f_account_id_by_name(name, &uid); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(uid, password.pw_uid); } } diff --git a/level_0/f_account/tests/unit/c/test-account-name_by_id.c b/level_0/f_account/tests/unit/c/test-account-name_by_id.c index 5bbc093..af129eb 100644 --- a/level_0/f_account/tests/unit/c/test-account-name_by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-name_by_id.c @@ -101,7 +101,7 @@ void test__f_account_name_by_id__works(void **state) { const f_status_t status = f_account_name_by_id(uid, &name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(name.string, password.pw_name); } diff --git a/level_0/f_account/tests/unit/c/test-account-s_delete_callback.c b/level_0/f_account/tests/unit/c/test-account-s_delete_callback.c index 5eedd3d..ce0694c 100644 --- a/level_0/f_account/tests/unit/c/test-account-s_delete_callback.c +++ b/level_0/f_account/tests/unit/c/test-account-s_delete_callback.c @@ -24,7 +24,7 @@ void test__f_accounts_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -36,10 +36,10 @@ void test__f_accounts_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -51,13 +51,13 @@ void test__f_accounts_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -69,16 +69,16 @@ void test__f_accounts_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -100,28 +100,28 @@ void test__f_accounts_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_account_t), (void **) &datas.array, &datas.used, &datas.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].home); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].label); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].password); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].shell); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_accounts_delete_callback(0, length, (void *) datas.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datas.array[0].home.size, 0); assert_int_equal(datas.array[0].label.size, 0); assert_int_equal(datas.array[0].name.size, 0); diff --git a/level_0/f_account/tests/unit/c/test-account-s_destroy_callback.c b/level_0/f_account/tests/unit/c/test-account-s_destroy_callback.c index fcf7d40..ca16372 100644 --- a/level_0/f_account/tests/unit/c/test-account-s_destroy_callback.c +++ b/level_0/f_account/tests/unit/c/test-account-s_destroy_callback.c @@ -24,7 +24,7 @@ void test__f_accounts_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -36,10 +36,10 @@ void test__f_accounts_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -51,13 +51,13 @@ void test__f_accounts_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -69,16 +69,16 @@ void test__f_accounts_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -100,28 +100,28 @@ void test__f_accounts_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_account_t), (void **) &datas.array, &datas.used, &datas.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].home); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].label); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].password); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datas.array[0].shell); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_accounts_destroy_callback(0, length, (void *) datas.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datas.array[0].home.size, 0); assert_int_equal(datas.array[0].label.size, 0); assert_int_equal(datas.array[0].name.size, 0); diff --git a/level_0/f_account/tests/unit/c/test-account-ss_delete_callback.c b/level_0/f_account/tests/unit/c/test-account-ss_delete_callback.c index c209be7..230ae7b 100644 --- a/level_0/f_account/tests/unit/c/test-account-ss_delete_callback.c +++ b/level_0/f_account/tests/unit/c/test-account-ss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_accountss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_accountss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_accountss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_accountss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_accountss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -126,31 +126,31 @@ void test__f_accountss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_accounts_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_account_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].home); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].label); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].password); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].shell); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_accountss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_account/tests/unit/c/test-account-ss_destroy_callback.c b/level_0/f_account/tests/unit/c/test-account-ss_destroy_callback.c index 1074810..4566213 100644 --- a/level_0/f_account/tests/unit/c/test-account-ss_destroy_callback.c +++ b/level_0/f_account/tests/unit/c/test-account-ss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_accountss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_accountss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_accountss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_accountss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_accountss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -126,31 +126,31 @@ void test__f_accountss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_accounts_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_account_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].home); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].label); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].password); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].shell); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_accountss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_capability/c/capability.c b/level_0/f_capability/c/capability.c index 1c8a2cd..6a6e239 100644 --- a/level_0/f_capability/c/capability.c +++ b/level_0/f_capability/c/capability.c @@ -397,7 +397,7 @@ extern "C" { return F_status_set_error(F_support_not); } - return F_none; + return F_okay; } #endif // _di_f_capability_ambient_get_ @@ -414,7 +414,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_ambient_reset_ @@ -429,7 +429,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_ambient_set_ @@ -451,7 +451,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_clear_ @@ -467,7 +467,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_clear_flag_ @@ -507,7 +507,7 @@ extern "C" { *destination = cap_dup(source); if (*destination) { - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -535,7 +535,7 @@ extern "C" { if (size) *size = result; - return F_none; + return F_okay; } #endif // _di_f_capability_copy_external_ @@ -549,7 +549,7 @@ extern "C" { *capability = cap_copy_int(external); if (*capability) { - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -575,7 +575,7 @@ extern "C" { *capability = 0; - return F_none; + return F_okay; } #endif // _di_f_capability_delete_ @@ -588,7 +588,7 @@ extern "C" { *capability = cap_get_fd(descriptor); if (*capability) { - return F_none; + return F_okay; } if (errno == EACCES) return F_status_set_error(F_access_denied); @@ -622,7 +622,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_file_descriptor_set_ @@ -635,7 +635,7 @@ extern "C" { *capability = cap_get_file(path.string); if (*capability) { - return F_none; + return F_okay; } if (errno == EACCES) return F_status_set_error(F_access_denied); @@ -669,7 +669,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_file_set_ @@ -685,7 +685,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_flag_get_ @@ -701,7 +701,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_flag_set_ @@ -718,7 +718,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_from_name_ @@ -731,7 +731,7 @@ extern "C" { *capability = cap_from_text(text.string); if (*capability) { - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -756,7 +756,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_groups_set_ @@ -773,7 +773,7 @@ extern "C" { *capability = cap_init(); if (*capability) { - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -795,7 +795,7 @@ extern "C" { *mode = cap_get_mode(); - return F_none; + return F_okay; } #endif // _di_f_capability_mode_get_ @@ -808,7 +808,7 @@ extern "C" { *name = cap_mode_name(mode); - return F_none; + return F_okay; } #endif // _di_f_capability_mode_get_name_ @@ -823,7 +823,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_mode_set_ @@ -835,7 +835,7 @@ extern "C" { *id_user = cap_get_nsowner(capability); - return F_none; + return F_okay; } #endif // _di_f_capability_owner_get_ @@ -855,7 +855,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_owner_set_ @@ -879,7 +879,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_process_bound_drop_ @@ -895,7 +895,7 @@ extern "C" { return F_status_set_error(F_known_not); } - return F_none; + return F_okay; } #endif // _di_f_capability_process_bound_get_ @@ -908,7 +908,7 @@ extern "C" { *capability = cap_get_proc(); if (*capability) { - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -927,7 +927,7 @@ extern "C" { *capability = cap_get_pid(id); if (*capability) { - return F_none; + return F_okay; } return F_status_set_error(F_failure); @@ -945,7 +945,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_process_set_ @@ -961,7 +961,7 @@ extern "C" { *bits = cap_get_secbits(); - return F_none; + return F_okay; } #endif // _di_f_capability_security_bits_get_ @@ -976,7 +976,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_security_bits_set_ @@ -1000,7 +1000,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_size_ @@ -1071,7 +1071,7 @@ extern "C" { cap_free(result); - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -1112,7 +1112,7 @@ extern "C" { cap_free(result); - return F_none; + return F_okay; } if (errno == EINVAL) return F_status_set_error(F_parameter); @@ -1137,7 +1137,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_capability_user_set_ diff --git a/level_0/f_capability/c/capability.h b/level_0/f_capability/c/capability.h index 453c242..0a0dde0 100644 --- a/level_0/f_capability/c/capability.h +++ b/level_0/f_capability/c/capability.h @@ -57,7 +57,7 @@ extern "C" { * The retrieved ambient value. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -75,7 +75,7 @@ extern "C" { * Reset the ambient capability. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -99,7 +99,7 @@ extern "C" { * The capability flag value. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -121,7 +121,7 @@ extern "C" { * The capability to clear. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -143,7 +143,7 @@ extern "C" { * The capability to clear the flag of. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -193,7 +193,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -222,7 +222,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -247,7 +247,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -269,7 +269,7 @@ extern "C" { * Pointer address is set to 0 on success. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory (which doesn't make sense here but man page includes this). @@ -293,7 +293,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_descriptor_not (with error bit) if the file descriptor is invalid. @@ -323,7 +323,7 @@ extern "C" { * The capability to set. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_descriptor_not (with error bit) if the file descriptor is invalid. @@ -354,7 +354,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_descriptor_not (with error bit) if the file descriptor is invalid. @@ -384,7 +384,7 @@ extern "C" { * The capability to set. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_descriptor_not (with error bit) if the file descriptor is invalid. @@ -419,7 +419,7 @@ extern "C" { * This is TRUE when the flag is enabled and FALSE otherwise. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -446,7 +446,7 @@ extern "C" { * The capability to set the flag of. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -469,7 +469,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -494,7 +494,7 @@ extern "C" { * This must be freed via f_capability_delete(). * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -523,7 +523,7 @@ extern "C" { * The array of supplementary group IDs (as in setgroups()). * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -548,7 +548,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -569,7 +569,7 @@ extern "C" { * The capability mode. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * @@ -591,7 +591,7 @@ extern "C" { * This is a NULL terminated string. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * @@ -610,7 +610,7 @@ extern "C" { * The capability mode. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -634,7 +634,7 @@ extern "C" { * The ID of the user. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * @@ -655,7 +655,7 @@ extern "C" { * The ID of the user. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_descriptor_not (with error bit) if the file descriptor is invalid. @@ -692,7 +692,7 @@ extern "C" { * The determined bound value. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -716,7 +716,7 @@ extern "C" { * The determined bound value. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_known_not (with error bit) if the code is unknown to the current system. @@ -738,7 +738,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -762,7 +762,7 @@ extern "C" { * This must be freed via f_capability_delete() when finished with. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -782,7 +782,7 @@ extern "C" { * The capability to assign. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -804,7 +804,7 @@ extern "C" { * The security bits. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * @@ -823,7 +823,7 @@ extern "C" { * The security bits. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -848,7 +848,7 @@ extern "C" { * Size may be set to -1 on error. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_parameter (with error bit) if a parameter is invalid. @@ -916,7 +916,7 @@ extern "C" { * This is NULL terminated after the name.used. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -948,7 +948,7 @@ extern "C" { * This is NULL terminated after the text.used. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. @@ -980,7 +980,7 @@ extern "C" { * The ID of the user. * * @return - * F_none on success. + * F_okay on success. * * F_implement_not (with error bit) if this function is not available (due to not having libcap support compiled in). * F_memory_not (with error bit) if a out of memory. diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c index 7f35a25..4013156 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c @@ -50,7 +50,7 @@ void test__f_capability_ambient_get__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(ambient, 1); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c index 131777e..77c5b92 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c @@ -55,7 +55,7 @@ void test__f_capability_ambient_reset__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c index 5b37b37..507a667 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c @@ -52,7 +52,7 @@ void test__f_capability_ambient_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-clear.c b/level_0/f_capability/tests/unit/c/test-capability-clear.c index 207991d..eee8d7b 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-clear.c +++ b/level_0/f_capability/tests/unit/c/test-capability-clear.c @@ -61,7 +61,7 @@ void test__f_capability_clear__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c b/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c index 56513d9..65cc9bb 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c +++ b/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c @@ -35,7 +35,7 @@ void test__f_capability_clear_flag__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy.c b/level_0/f_capability/tests/unit/c/test-capability-copy.c index afd7576..af0e786 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy.c @@ -51,7 +51,7 @@ void test__f_capability_copy__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(capability_2, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy_external.c b/level_0/f_capability/tests/unit/c/test-capability-copy_external.c index d9a1724..8eca127 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy_external.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy_external.c @@ -69,7 +69,7 @@ void test__f_capability_copy_external__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c b/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c index 4a028dd..3074f68 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c @@ -73,7 +73,7 @@ void test__f_capability_copy_internal__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(capability, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-delete.c b/level_0/f_capability/tests/unit/c/test-capability-delete.c index 06ba7e9..b177b15 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-delete.c +++ b/level_0/f_capability/tests/unit/c/test-capability-delete.c @@ -59,7 +59,7 @@ void test__f_capability_delete__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(capability, 0); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c index c2dc501..97266e3 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c @@ -75,7 +75,7 @@ void test__f_capability_file_descriptor_get__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c index bb07cd7..3f15151 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c @@ -64,7 +64,7 @@ void test__f_capability_file_descriptor_set__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_get.c b/level_0/f_capability/tests/unit/c/test-capability-file_get.c index 761f613..fb2a0a6 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_get.c @@ -75,7 +75,7 @@ void test__f_capability_file_get__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_set.c b/level_0/f_capability/tests/unit/c/test-capability-file_set.c index e9b3a7d..b72ce21 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_set.c @@ -64,7 +64,7 @@ void test__f_capability_file_set__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-flag_get.c b/level_0/f_capability/tests/unit/c/test-capability-flag_get.c index 0d7e868..75e3e14 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-flag_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-flag_get.c @@ -67,7 +67,7 @@ void test__f_capability_flag_get__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-flag_set.c b/level_0/f_capability/tests/unit/c/test-capability-flag_set.c index 37dd81b..452cd83 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-flag_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-flag_set.c @@ -67,7 +67,7 @@ void test__f_capability_flag_set__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-from_name.c b/level_0/f_capability/tests/unit/c/test-capability-from_name.c index ee37c01..bd7a04b 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-from_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-from_name.c @@ -63,7 +63,7 @@ void test__f_capability_from_name__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-from_text.c b/level_0/f_capability/tests/unit/c/test-capability-from_text.c index 752fd8e..d2e2582 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-from_text.c +++ b/level_0/f_capability/tests/unit/c/test-capability-from_text.c @@ -63,7 +63,7 @@ void test__f_capability_from_text__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-groups_set.c b/level_0/f_capability/tests/unit/c/test-capability-groups_set.c index 8a5cea4..2106fae 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-groups_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-groups_set.c @@ -56,7 +56,7 @@ void test__f_capability_groups_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-initialize.c b/level_0/f_capability/tests/unit/c/test-capability-initialize.c index 7eb5c3b..b5853ad 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-initialize.c +++ b/level_0/f_capability/tests/unit/c/test-capability-initialize.c @@ -59,7 +59,7 @@ void test__f_capability_initialize__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_get.c b/level_0/f_capability/tests/unit/c/test-capability-mode_get.c index 8e6451c..5bb1d85 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_get.c @@ -30,7 +30,7 @@ void test__f_capability_mode_get__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c b/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c index b0be435..214f748 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c @@ -33,7 +33,7 @@ void test__f_capability_mode_get_name__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_set.c b/level_0/f_capability/tests/unit/c/test-capability-mode_set.c index 457b633..cc011b3 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_set.c @@ -52,7 +52,7 @@ void test__f_capability_mode_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-owner_get.c b/level_0/f_capability/tests/unit/c/test-capability-owner_get.c index efcb6c7..d4aa33d 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-owner_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-owner_get.c @@ -33,7 +33,7 @@ void test__f_capability_owner_get__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, 1); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-owner_set.c b/level_0/f_capability/tests/unit/c/test-capability-owner_set.c index 1b2c8a0..d78d30c 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-owner_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-owner_set.c @@ -64,7 +64,7 @@ void test__f_capability_owner_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c b/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c index 1968c85..30d85e9 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c @@ -65,7 +65,7 @@ void test__f_capability_process_bound_drop__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(bound, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c b/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c index 013b2c6..fed1f5c 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c @@ -59,7 +59,7 @@ void test__f_capability_process_bound_get__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(bound, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_get.c b/level_0/f_capability/tests/unit/c/test-capability-process_get.c index 07bfedf..364da38 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_get.c @@ -59,7 +59,7 @@ void test__f_capability_process_get__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c b/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c index 7ed88ae..1fcf202 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c @@ -57,7 +57,7 @@ void test__f_capability_process_get_by_id__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(capability, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_set.c b/level_0/f_capability/tests/unit/c/test-capability-process_set.c index 606a133..2e65531 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_set.c @@ -52,7 +52,7 @@ void test__f_capability_process_set__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c b/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c index 3bb6cd1..24cf7c2 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c @@ -61,7 +61,7 @@ void test__f_capability_security_bits_get__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c b/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c index 47fbc24..8dd3cb1 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c @@ -62,7 +62,7 @@ void test__f_capability_security_bits_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_capability/tests/unit/c/test-capability-size.c b/level_0/f_capability/tests/unit/c/test-capability-size.c index 6807a1d..3b3333e 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-size.c +++ b/level_0/f_capability/tests/unit/c/test-capability-size.c @@ -65,7 +65,7 @@ void test__f_capability_size__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, 1); #endif // defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-to_name.c b/level_0/f_capability/tests/unit/c/test-capability-to_name.c index eeaeddf..34d61aa 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-to_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-to_name.c @@ -67,7 +67,7 @@ void test__f_capability_to_name__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(name.string, string); assert_int_equal(name.used, 9); #endif // defined(_di_libcap_) diff --git a/level_0/f_capability/tests/unit/c/test-capability-to_text.c b/level_0/f_capability/tests/unit/c/test-capability-to_text.c index dc76d61..08855d2 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-to_text.c +++ b/level_0/f_capability/tests/unit/c/test-capability-to_text.c @@ -68,7 +68,7 @@ void test__f_capability_to_text__works(void **state) { #if defined(_di_libcap_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(text.string, string); assert_int_equal(text.used, 9); #endif // defined(_di_libcap_) diff --git a/level_0/f_capability/tests/unit/c/test-capability-user_set.c b/level_0/f_capability/tests/unit/c/test-capability-user_set.c index 609e9b5..b6f8f0d 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-user_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-user_set.c @@ -21,7 +21,7 @@ void test__f_capability_user_set__works(void **state) { #if defined(_di_libcap_) || defined(_libcap_legacy_only_) assert_int_equal(F_status_set_fine(status), F_implement_not); #else - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); #endif // defined(_di_libcap_) || defined(_libcap_legacy_only_) } } diff --git a/level_0/f_color/c/color.c b/level_0/f_color/c/color.c index 080ecb4..a9bdf83 100644 --- a/level_0/f_color/c/color.c +++ b/level_0/f_color/c/color.c @@ -31,7 +31,7 @@ extern "C" { context->set.title = f_color_set_empty_s; context->set.warning = f_color_set_empty_s; - f_status_t status = F_none; + f_status_t status = F_okay; if (context->error.size) { status = f_string_dynamic_resize(0, &context->error); @@ -113,7 +113,7 @@ extern "C" { context->warning.used = 0; } - return F_none; + return F_okay; } if (mode != f_color_mode_dark_e && mode != f_color_mode_light_e) return F_data_not; @@ -206,7 +206,7 @@ extern "C" { context->set.warning.before = &context->warning; context->set.warning.after = &context->reset; - status = F_none; + status = F_okay; } return status; @@ -282,7 +282,7 @@ extern "C" { buffer->string[buffer->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_color_save_3_ @@ -347,7 +347,7 @@ extern "C" { buffer->string[buffer->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_color_save_4_ @@ -430,7 +430,7 @@ extern "C" { buffer->string[buffer->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_color_save_5_ diff --git a/level_0/f_color/c/color.h b/level_0/f_color/c/color.h index 14cdc08..26d7ee3 100644 --- a/level_0/f_color/c/color.h +++ b/level_0/f_color/c/color.h @@ -52,7 +52,7 @@ extern "C" { * The context.mode is always set to the specified mode, even if it is not supported (except when there is an invalid parameter). * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but mode is f_color_mode_none_e or not a supported mode. * * F_parameter (with error bit) if a parameter is invalid. @@ -83,7 +83,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -116,7 +116,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -152,7 +152,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -191,7 +191,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -235,7 +235,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_color/c/color/common.c b/level_0/f_color/c/color/common.c index d3017c8..32bc621 100644 --- a/level_0/f_color/c/color/common.c +++ b/level_0/f_color/c/color/common.c @@ -190,7 +190,7 @@ extern "C" { if (!context) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; status = f_string_dynamic_resize(0, &context->error); @@ -234,7 +234,7 @@ extern "C" { macro_f_color_context_t_clear((*context)) - return F_none; + return F_okay; } #endif // _di_f_color_context_delete_ @@ -244,7 +244,7 @@ extern "C" { if (!context) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; status = f_string_dynamic_adjust(0, &context->error); @@ -288,7 +288,7 @@ extern "C" { macro_f_color_context_t_clear((*context)) - return F_none; + return F_okay; } #endif // _di_f_color_context_destroy_ diff --git a/level_0/f_color/c/color/common.h b/level_0/f_color/c/color/common.h index fe0e027..2fd87db 100644 --- a/level_0/f_color/c/color/common.h +++ b/level_0/f_color/c/color/common.h @@ -1014,7 +1014,7 @@ extern "C" { * The context object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1033,7 +1033,7 @@ extern "C" { * The context object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_color/c/private-color.c b/level_0/f_color/c/private-color.c index 919994b..bfea5b1 100644 --- a/level_0/f_color/c/private-color.c +++ b/level_0/f_color/c/private-color.c @@ -33,7 +33,7 @@ extern "C" { buffer->string[buffer->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_color_load_context_) || !defined(_di_f_color_save_2_) @@ -77,7 +77,7 @@ extern "C" { buffer->string[buffer->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_color_load_context_) || !defined(_di_f_color_save_2_) diff --git a/level_0/f_color/c/private-color.h b/level_0/f_color/c/private-color.h index b036075..6a88b4d 100644 --- a/level_0/f_color/c/private-color.h +++ b/level_0/f_color/c/private-color.h @@ -29,7 +29,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_increase_by() * @@ -58,7 +58,7 @@ extern "C" { * The buffer will become NULL terminated after the appended string length. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_increase_by() * diff --git a/level_0/f_color/tests/unit/c/test-color-context_delete.c b/level_0/f_color/tests/unit/c/test-color-context_delete.c index 567b35f..52454dd 100644 --- a/level_0/f_color/tests/unit/c/test-color-context_delete.c +++ b/level_0/f_color/tests/unit/c/test-color-context_delete.c @@ -14,7 +14,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.reset); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.reset.size, 0); assert_non_null(context.reset.string); } @@ -22,7 +22,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.warning); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.warning.size, 0); assert_non_null(context.warning.string); } @@ -30,7 +30,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.error); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.error.size, 0); assert_non_null(context.error.string); } @@ -38,7 +38,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.title); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.title.size, 0); assert_non_null(context.title.string); } @@ -46,7 +46,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.notable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.notable.size, 0); assert_non_null(context.notable.string); } @@ -54,7 +54,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.important); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.important.size, 0); assert_non_null(context.important.string); } @@ -62,7 +62,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.standout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.standout.size, 0); assert_non_null(context.standout.string); } @@ -70,7 +70,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.success); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.success.size, 0); assert_non_null(context.success.string); } @@ -78,7 +78,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.normal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.normal.size, 0); assert_non_null(context.normal.string); } @@ -86,7 +86,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.normal_reset); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.normal_reset.size, 0); assert_non_null(context.normal_reset.string); } @@ -94,7 +94,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_color_context_delete(&context); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(context.reset.size, 0); assert_int_equal(context.warning.size, 0); assert_int_equal(context.error.size, 0); diff --git a/level_0/f_color/tests/unit/c/test-color-context_destroy.c b/level_0/f_color/tests/unit/c/test-color-context_destroy.c index 0d768f0..c3a5a76 100644 --- a/level_0/f_color/tests/unit/c/test-color-context_destroy.c +++ b/level_0/f_color/tests/unit/c/test-color-context_destroy.c @@ -14,7 +14,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.reset); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.reset.size, 0); assert_non_null(context.reset.string); } @@ -22,7 +22,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.warning); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.warning.size, 0); assert_non_null(context.warning.string); } @@ -30,7 +30,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.error); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.error.size, 0); assert_non_null(context.error.string); } @@ -38,7 +38,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.title); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.title.size, 0); assert_non_null(context.title.string); } @@ -46,7 +46,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.notable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.notable.size, 0); assert_non_null(context.notable.string); } @@ -54,7 +54,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.important); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.important.size, 0); assert_non_null(context.important.string); } @@ -62,7 +62,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.standout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.standout.size, 0); assert_non_null(context.standout.string); } @@ -70,7 +70,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.success); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.success.size, 0); assert_non_null(context.success.string); } @@ -78,7 +78,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.normal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.normal.size, 0); assert_non_null(context.normal.string); } @@ -86,7 +86,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamic_resize(size, &context.normal_reset); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(context.normal_reset.size, 0); assert_non_null(context.normal_reset.string); } @@ -94,7 +94,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_color_context_destroy(&context); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(context.reset.size, 0); assert_int_equal(context.warning.size, 0); assert_int_equal(context.error.size, 0); diff --git a/level_0/f_color/tests/unit/c/test-color-load_context.c b/level_0/f_color/tests/unit/c/test-color-load_context.c index 7a6f555..b32395f 100644 --- a/level_0/f_color/tests/unit/c/test-color-load_context.c +++ b/level_0/f_color/tests/unit/c/test-color-load_context.c @@ -34,13 +34,13 @@ void test__f_color_load_context__works(void **state) { f_status_t statuss[4] = { F_data_not, - F_none, - F_none, - F_none, + F_okay, + F_okay, + F_okay, }; { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } diff --git a/level_0/f_color/tests/unit/c/test-color-save_1.c b/level_0/f_color/tests/unit/c/test-color-save_1.c index 10e9489..9cebbdf 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_1.c +++ b/level_0/f_color/tests/unit/c/test-color-save_1.c @@ -25,7 +25,7 @@ void test__f_color_save_1_works(void **state) { const f_string_static_t color1 = macro_f_string_static_t_initialize_2("color1", 6); { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } @@ -33,7 +33,7 @@ void test__f_color_save_1_works(void **state) { { const f_status_t status = f_color_save_1(format, color1, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(buffer.string, "color1"); } diff --git a/level_0/f_color/tests/unit/c/test-color-save_2.c b/level_0/f_color/tests/unit/c/test-color-save_2.c index 0e22f04..ffbe2d7 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_2.c +++ b/level_0/f_color/tests/unit/c/test-color-save_2.c @@ -26,7 +26,7 @@ void test__f_color_save_2_works(void **state) { const f_string_static_t color2 = macro_f_string_static_t_initialize_2("color2", 6); { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } @@ -34,7 +34,7 @@ void test__f_color_save_2_works(void **state) { { const f_status_t status = f_color_save_2(format, color1, color2, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(buffer.string, "color1color2"); } diff --git a/level_0/f_color/tests/unit/c/test-color-save_3.c b/level_0/f_color/tests/unit/c/test-color-save_3.c index 34f09e5..95ab609 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_3.c +++ b/level_0/f_color/tests/unit/c/test-color-save_3.c @@ -27,7 +27,7 @@ void test__f_color_save_3_works(void **state) { const f_string_static_t color3 = macro_f_string_static_t_initialize_2("color3", 6); { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } @@ -35,7 +35,7 @@ void test__f_color_save_3_works(void **state) { { const f_status_t status = f_color_save_3(format, color1, color2, color3, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(buffer.string, "color1color2color3"); } diff --git a/level_0/f_color/tests/unit/c/test-color-save_4.c b/level_0/f_color/tests/unit/c/test-color-save_4.c index 1f176af..48438ae 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_4.c +++ b/level_0/f_color/tests/unit/c/test-color-save_4.c @@ -28,7 +28,7 @@ void test__f_color_save_4_works(void **state) { const f_string_static_t color4 = macro_f_string_static_t_initialize_2("color4", 6); { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } @@ -36,7 +36,7 @@ void test__f_color_save_4_works(void **state) { { const f_status_t status = f_color_save_4(format, color1, color2, color3, color4, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(buffer.string, "color1color2color3color4"); } diff --git a/level_0/f_color/tests/unit/c/test-color-save_5.c b/level_0/f_color/tests/unit/c/test-color-save_5.c index c50c3ec..7ad6d33 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_5.c +++ b/level_0/f_color/tests/unit/c/test-color-save_5.c @@ -29,7 +29,7 @@ void test__f_color_save_5_works(void **state) { const f_string_static_t color5 = macro_f_string_static_t_initialize_2("color5", 6); { - f_status_t status = F_none; + f_status_t status = F_okay; macro_f_color_context_t_new(status, context); } @@ -37,7 +37,7 @@ void test__f_color_save_5_works(void **state) { { const f_status_t status = f_color_save_5(format, color1, color2, color3, color4, color5, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(buffer.string, "color1color2color3color4color5"); } diff --git a/level_0/f_compare/c/compare/private-utf.c b/level_0/f_compare/c/compare/private-utf.c index e6c778c..f431194 100644 --- a/level_0/f_compare/c/compare/private-utf.c +++ b/level_0/f_compare/c/compare/private-utf.c @@ -112,7 +112,7 @@ extern "C" { f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace in string1. for (; i1 < stop1; ++i1) { @@ -355,7 +355,7 @@ extern "C" { f_number_unsigned_t i1 = offset1; f_number_unsigned_t i2 = offset2; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace in string1. for (; i1 < stop1; i1 += macro_f_utf_byte_width(string1[i1])) { diff --git a/level_0/f_compare/c/private-compare.c b/level_0/f_compare/c/private-compare.c index 9c4ba27..6b750d3 100644 --- a/level_0/f_compare/c/private-compare.c +++ b/level_0/f_compare/c/private-compare.c @@ -114,7 +114,7 @@ extern "C" { f_number_unsigned_t width_max = 0; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace in string1. for (; i1 < stop1; i1 += width) { @@ -392,7 +392,7 @@ extern "C" { f_number_unsigned_t i1 = offset1; f_number_unsigned_t i2 = offset2; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace in string1. for (; i1 < stop1; i1 += macro_f_utf_byte_width(string1[i1])) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial.c index d6fed2c..13a1e0b 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial.c @@ -260,7 +260,7 @@ void test__f_compare_dynamic_partial__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_dynamic.c index a1b2bca..757d2b6 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_dynamic.c @@ -259,7 +259,7 @@ void test__f_compare_dynamic_partial_dynamic__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except.c index 05b8e08..8e682bf 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except.c @@ -265,7 +265,7 @@ void test__f_compare_dynamic_partial_except__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_dynamic.c index ffcdebb..5aaa4f0 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_dynamic.c @@ -264,7 +264,7 @@ void test__f_compare_dynamic_partial_except_dynamic__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_string.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_string.c index 2478e80..0de3ecb 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_string.c @@ -265,7 +265,7 @@ void test__f_compare_dynamic_partial_except_string__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim.c index 948461e..111869b 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim.c @@ -278,7 +278,7 @@ void test__f_compare_dynamic_partial_except_trim__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_dynamic.c index 95c234d..151cda5 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_dynamic.c @@ -277,7 +277,7 @@ void test__f_compare_dynamic_partial_except_trim_dynamic__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_string.c index 0e1273b..9a9bedd 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_except_trim_string.c @@ -278,7 +278,7 @@ void test__f_compare_dynamic_partial_except_trim_string__works(void **state) { const f_number_unsigneds_t excepts_1 = macro_f_number_unsigneds_t_initialize_1(except_1, 0, 4); const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_string.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_string.c index 6d8d9ab..59470d8 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_string.c @@ -260,7 +260,7 @@ void test__f_compare_dynamic_partial_string__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim.c index f02d05b..390dabf 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim.c @@ -273,7 +273,7 @@ void test__f_compare_dynamic_partial_trim__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_dynamic.c index 3fe3766..787b31a 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_dynamic.c @@ -272,7 +272,7 @@ void test__f_compare_dynamic_partial_trim_dynamic__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_string.c index fd57efa..e08eeb0 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-dynamic_partial_trim_string.c @@ -273,7 +273,7 @@ void test__f_compare_dynamic_partial_trim_string__works(void **state) { }; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // First eight are against empty strings for first argument. for (; i < 8; ++i) { diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf.c b/level_0/f_compare/tests/unit/c/test-compare-utf.c index 0a5ba36..ad64908 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf.c @@ -256,7 +256,7 @@ void test__f_compare_utf__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -266,10 +266,10 @@ void test__f_compare_utf__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf(utf_string_1.string, utf_string_2.string, utf_string_1.used, utf_string_2.used); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic.c index 00ef426..936cfb7 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic.c @@ -256,7 +256,7 @@ void test__f_compare_utf_dynamic__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -266,10 +266,10 @@ void test__f_compare_utf_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic(utf_string_1, utf_string_2); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except.c index 03ced6e..41dd391 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except.c @@ -263,7 +263,7 @@ void test__f_compare_utf_dynamic_except__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -273,10 +273,10 @@ void test__f_compare_utf_dynamic_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except(utf_string_1, utf_string_2, excepts_1, excepts_2); @@ -289,10 +289,10 @@ void test__f_compare_utf_dynamic_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except(utf_string_2, utf_string_1, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_string.c index 072ac55..956ce9f 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_string.c @@ -263,7 +263,7 @@ void test__f_compare_utf_dynamic_except_string__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -273,10 +273,10 @@ void test__f_compare_utf_dynamic_except_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_string(utf_string_1.string, utf_string_2, utf_string_1.used, excepts_1, excepts_2); @@ -289,10 +289,10 @@ void test__f_compare_utf_dynamic_except_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_string(utf_string_2.string, utf_string_1, utf_string_2.used, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim.c index 16c9f7f..ce95d43 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim.c @@ -276,7 +276,7 @@ void test__f_compare_utf_dynamic_except_trim__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -286,10 +286,10 @@ void test__f_compare_utf_dynamic_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_trim(utf_string_1, utf_string_2, excepts_1, excepts_2); @@ -302,10 +302,10 @@ void test__f_compare_utf_dynamic_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_trim(utf_string_2, utf_string_1, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim_string.c index 89bffd2..377e80f 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_except_trim_string.c @@ -276,7 +276,7 @@ void test__f_compare_utf_dynamic_except_trim_string__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -286,10 +286,10 @@ void test__f_compare_utf_dynamic_except_trim_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_trim_string(utf_string_1.string, utf_string_2, utf_string_1.used, excepts_1, excepts_2); @@ -302,10 +302,10 @@ void test__f_compare_utf_dynamic_except_trim_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_except_trim_string(utf_string_2.string, utf_string_1, utf_string_2.used, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial.c index ff6494b..362d46e 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial.c @@ -261,7 +261,7 @@ void test__f_compare_utf_dynamic_partial__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -272,10 +272,10 @@ void test__f_compare_utf_dynamic_partial__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial(utf_string_1, utf_string_2, f_string_range_empty_c, f_string_range_empty_c); @@ -295,10 +295,10 @@ void test__f_compare_utf_dynamic_partial__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 4; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_dynamic.c index 6cd1336..3e1f099 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_dynamic.c @@ -260,7 +260,7 @@ void test__f_compare_utf_dynamic_partial_dynamic__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -271,10 +271,10 @@ void test__f_compare_utf_dynamic_partial_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c); @@ -294,10 +294,10 @@ void test__f_compare_utf_dynamic_partial_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except.c index 7dad0eb..6608aeb 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except.c @@ -266,7 +266,7 @@ void test__f_compare_utf_dynamic_partial_except__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -277,10 +277,10 @@ void test__f_compare_utf_dynamic_partial_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2); @@ -300,10 +300,10 @@ void test__f_compare_utf_dynamic_partial_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_dynamic.c index 9acba79..dc0d053 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_dynamic.c @@ -265,7 +265,7 @@ void test__f_compare_utf_dynamic_partial_except_dynamic__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -276,10 +276,10 @@ void test__f_compare_utf_dynamic_partial_except_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2); @@ -299,10 +299,10 @@ void test__f_compare_utf_dynamic_partial_except_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_string.c index 6bd052a..08adac5 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_string.c @@ -266,7 +266,7 @@ void test__f_compare_utf_dynamic_partial_except_string__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -277,10 +277,10 @@ void test__f_compare_utf_dynamic_partial_except_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c, excepts_1, excepts_2); @@ -300,10 +300,10 @@ void test__f_compare_utf_dynamic_partial_except_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim.c index e3b6331..7387fee 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim.c @@ -279,7 +279,7 @@ void test__f_compare_utf_dynamic_partial_except_trim__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -290,10 +290,10 @@ void test__f_compare_utf_dynamic_partial_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_trim(utf_string_1, utf_string_2, range_1, f_string_range_empty_c, excepts_1, excepts_2); @@ -313,10 +313,10 @@ void test__f_compare_utf_dynamic_partial_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_dynamic.c index 08c904e..de48681 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_dynamic.c @@ -278,7 +278,7 @@ void test__f_compare_utf_dynamic_partial_except_trim_dynamic__works(void **state const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -289,10 +289,10 @@ void test__f_compare_utf_dynamic_partial_except_trim_dynamic__works(void **state utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2); @@ -312,10 +312,10 @@ void test__f_compare_utf_dynamic_partial_except_trim_dynamic__works(void **state utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c, excepts_1, excepts_2); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_string.c index bac0089..b170d15 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_except_trim_string.c @@ -279,7 +279,7 @@ void test__f_compare_utf_dynamic_partial_except_trim_string__works(void **state) const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -290,10 +290,10 @@ void test__f_compare_utf_dynamic_partial_except_trim_string__works(void **state) utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_except_trim_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c, excepts_1, excepts_2); @@ -313,10 +313,10 @@ void test__f_compare_utf_dynamic_partial_except_trim_string__works(void **state) utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_string.c index 4c25950..26c7f3c 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_string.c @@ -261,7 +261,7 @@ void test__f_compare_utf_dynamic_partial_string__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -272,10 +272,10 @@ void test__f_compare_utf_dynamic_partial_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c); @@ -295,10 +295,10 @@ void test__f_compare_utf_dynamic_partial_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim.c index fbce31b..dcab577 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim.c @@ -274,7 +274,7 @@ void test__f_compare_utf_dynamic_partial_trim__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -285,10 +285,10 @@ void test__f_compare_utf_dynamic_partial_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_trim(utf_string_1, utf_string_2, f_string_range_empty_c, f_string_range_empty_c); @@ -308,10 +308,10 @@ void test__f_compare_utf_dynamic_partial_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 4; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_dynamic.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_dynamic.c index c1d3b37..ae2bd0c 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_dynamic.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_dynamic.c @@ -273,7 +273,7 @@ void test__f_compare_utf_dynamic_partial_trim_dynamic__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -284,10 +284,10 @@ void test__f_compare_utf_dynamic_partial_trim_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c); @@ -307,10 +307,10 @@ void test__f_compare_utf_dynamic_partial_trim_dynamic__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_trim_dynamic(utf_string_1, utf_string_2, f_string_range_empty_c); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_string.c index 651aec1..50e1928 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_partial_trim_string.c @@ -274,7 +274,7 @@ void test__f_compare_utf_dynamic_partial_trim_string__works(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -285,10 +285,10 @@ void test__f_compare_utf_dynamic_partial_trim_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); if (i % 8 == 0) { status = f_compare_utf_dynamic_partial_trim_string(utf_string_1.string, utf_string_2, 0, f_string_range_empty_c); @@ -308,10 +308,10 @@ void test__f_compare_utf_dynamic_partial_trim_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); range_1.stop = string_1s[i].used - 1; diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_string.c index 4d1b1e0..f45a05e 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_string.c @@ -256,7 +256,7 @@ void test__f_compare_utf_dynamic_string__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -266,10 +266,10 @@ void test__f_compare_utf_dynamic_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_string(utf_string_1.string, utf_string_2, utf_string_1.used); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim.c index 35b597f..77040fe 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim.c @@ -57,7 +57,7 @@ void test__f_compare_utf_dynamic_trim__trims(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -67,10 +67,10 @@ void test__f_compare_utf_dynamic_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_1, utf_string_2); @@ -83,10 +83,10 @@ void test__f_compare_utf_dynamic_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_2, utf_string_1); @@ -98,7 +98,7 @@ void test__f_compare_utf_dynamic_trim__trims(void **state) { utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_1, utf_string_1); @@ -110,7 +110,7 @@ void test__f_compare_utf_dynamic_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_2, utf_string_2); @@ -136,7 +136,7 @@ void test__f_compare_utf_dynamic_trim__something_misses_nothing(void **state) { macro_f_string_static_t_initialize_1("\t\0\tspace\t\0 space \0 ", 0, 19), }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; for (uint8_t i = 0; i < 10; ++i) { @@ -144,7 +144,7 @@ void test__f_compare_utf_dynamic_trim__something_misses_nothing(void **state) { utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_1, f_utf_string_empty_s); @@ -405,7 +405,7 @@ void test__f_compare_utf_dynamic_trim__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -415,10 +415,10 @@ void test__f_compare_utf_dynamic_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim(utf_string_1, utf_string_2); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim_string.c b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim_string.c index db2be12..b09ef71 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim_string.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_dynamic_trim_string.c @@ -57,7 +57,7 @@ void test__f_compare_utf_dynamic_trim_string__trims(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -67,10 +67,10 @@ void test__f_compare_utf_dynamic_trim_string__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_1.string, utf_string_2, utf_string_1.used); @@ -83,10 +83,10 @@ void test__f_compare_utf_dynamic_trim_string__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_2.string, utf_string_1, utf_string_2.used); @@ -98,7 +98,7 @@ void test__f_compare_utf_dynamic_trim_string__trims(void **state) { utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_1.string, utf_string_1, utf_string_1.used); @@ -110,7 +110,7 @@ void test__f_compare_utf_dynamic_trim_string__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_2.string, utf_string_2, utf_string_2.used); @@ -136,7 +136,7 @@ void test__f_compare_utf_dynamic_trim_string__something_misses_nothing(void **st macro_f_string_static_t_initialize_1("\t\0\tspace\t\0 space \0 ", 0, 19), }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; for (uint8_t i = 0; i < 10; ++i) { @@ -144,7 +144,7 @@ void test__f_compare_utf_dynamic_trim_string__something_misses_nothing(void **st utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_1.string, f_utf_string_empty_s, utf_string_1.used); @@ -405,7 +405,7 @@ void test__f_compare_utf_dynamic_trim_string__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -415,10 +415,10 @@ void test__f_compare_utf_dynamic_trim_string__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_dynamic_trim_string(utf_string_1.string, utf_string_2, utf_string_1.used); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_except.c b/level_0/f_compare/tests/unit/c/test-compare-utf_except.c index d4a1a16..f4c536d 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_except.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_except.c @@ -263,7 +263,7 @@ void test__f_compare_utf_except__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -273,10 +273,10 @@ void test__f_compare_utf_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_except(utf_string_1.string, utf_string_2.string, utf_string_1.used, utf_string_2.used, excepts_1, excepts_2); @@ -289,10 +289,10 @@ void test__f_compare_utf_except__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_except(utf_string_2.string, utf_string_1.string, utf_string_2.used, utf_string_1.used, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_except_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_except_trim.c index fc87ac4..d8f6997 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_except_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_except_trim.c @@ -276,7 +276,7 @@ void test__f_compare_utf_except_trim__works(void **state) { const f_number_unsigneds_t excepts_2 = f_number_unsigneds_t_initialize; uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -286,10 +286,10 @@ void test__f_compare_utf_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_except_trim(utf_string_1.string, utf_string_2.string, utf_string_1.used, utf_string_2.used, excepts_1, excepts_2); @@ -302,10 +302,10 @@ void test__f_compare_utf_except_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_except_trim(utf_string_2.string, utf_string_1.string, utf_string_2.used, utf_string_1.used, excepts_2, excepts_1); diff --git a/level_0/f_compare/tests/unit/c/test-compare-utf_trim.c b/level_0/f_compare/tests/unit/c/test-compare-utf_trim.c index 7acee08..4f675b4 100644 --- a/level_0/f_compare/tests/unit/c/test-compare-utf_trim.c +++ b/level_0/f_compare/tests/unit/c/test-compare-utf_trim.c @@ -57,7 +57,7 @@ void test__f_compare_utf_trim__trims(void **state) { uint8_t i = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -67,10 +67,10 @@ void test__f_compare_utf_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_1.string, utf_string_2.string, utf_string_1.used, utf_string_2.used); @@ -83,10 +83,10 @@ void test__f_compare_utf_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_2.string, utf_string_1.string, utf_string_2.used, utf_string_1.used); @@ -98,7 +98,7 @@ void test__f_compare_utf_trim__trims(void **state) { utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_1.string, utf_string_1.string, utf_string_1.used, utf_string_1.used); @@ -110,7 +110,7 @@ void test__f_compare_utf_trim__trims(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_2.string, utf_string_2.string, utf_string_2.used, utf_string_2.used); @@ -136,7 +136,7 @@ void test__f_compare_utf_trim__something_misses_nothing(void **state) { macro_f_string_static_t_initialize_1("\t\0\tspace\t\0 space \0 ", 0, 19), }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; for (uint8_t i = 0; i < 10; ++i) { @@ -144,7 +144,7 @@ void test__f_compare_utf_trim__something_misses_nothing(void **state) { utf_string_1.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_1.string, f_utf_string_empty_s.string, utf_string_1.used, f_utf_string_empty_s.used); @@ -405,7 +405,7 @@ void test__f_compare_utf_trim__works(void **state) { F_equal_to, }; - f_status_t status = F_none; + f_status_t status = F_okay; f_utf_string_dynamic_t utf_string_1 = f_utf_string_dynamic_t_initialize; f_utf_string_dynamic_t utf_string_2 = f_utf_string_dynamic_t_initialize; @@ -415,10 +415,10 @@ void test__f_compare_utf_trim__works(void **state) { utf_string_2.used = 0; status = test_convert_dynamic_to_utf(string_1s[i], &utf_string_1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = test_convert_dynamic_to_utf(string_2s[i], &utf_string_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_compare_utf_trim(utf_string_1.string, utf_string_2.string, utf_string_1.used, utf_string_2.used); diff --git a/level_0/f_compare/tests/unit/c/test-compare.c b/level_0/f_compare/tests/unit/c/test-compare.c index 493676e..a22395d 100644 --- a/level_0/f_compare/tests/unit/c/test-compare.c +++ b/level_0/f_compare/tests/unit/c/test-compare.c @@ -147,7 +147,7 @@ f_status_t test_convert_dynamic_to_utf(const f_string_static_t dynamic, f_utf_st if (F_status_is_error(status)) return status; } // for - return F_none; + return F_okay; } #ifdef __cplusplus diff --git a/level_0/f_compare/tests/unit/c/test-compare.h b/level_0/f_compare/tests/unit/c/test-compare.h index 2f9a5d7..aa6347d 100644 --- a/level_0/f_compare/tests/unit/c/test-compare.h +++ b/level_0/f_compare/tests/unit/c/test-compare.h @@ -122,7 +122,7 @@ extern int main(void); * The UTF destination string. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_utf_char_to_character(). * Errors (with error bit) from: f_utf_string_dynamic_resize(). diff --git a/level_0/f_console/c/console.c b/level_0/f_console/c/console.c index 29fb36c..5d5ac09 100644 --- a/level_0/f_console/c/console.c +++ b/level_0/f_console/c/console.c @@ -56,7 +56,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_console_environment_process_ @@ -105,7 +105,7 @@ extern "C" { *decision = priority; - return F_none; + return F_okay; } #endif // _di_f_console_parameter_prioritize_left_ @@ -144,7 +144,7 @@ extern "C" { *decision = priority; - return F_none; + return F_okay; } #endif // _di_f_console_parameter_prioritize_right_ @@ -230,7 +230,7 @@ extern "C" { process.needs.array[i] = process.needs.array[i + 1]; } // for - state->status = F_none; + state->status = F_okay; continue; } @@ -254,7 +254,7 @@ extern "C" { } process.found = F_false; - state->status = F_none; + state->status = F_okay; if (process.result & f_console_result_short_e) { @@ -293,7 +293,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -333,7 +333,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -347,7 +347,7 @@ extern "C" { if (state->status == F_break || state->status == F_continue) { process.depth = 0; - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -411,7 +411,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -446,7 +446,7 @@ extern "C" { if (F_status_is_error(state->status)) break; } - state->status = F_none; + state->status = F_okay; break; } // for @@ -460,7 +460,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -472,7 +472,7 @@ extern "C" { if (state->status == F_break || state->status == F_continue) { process.depth = 0; - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -513,7 +513,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -556,7 +556,7 @@ extern "C" { break; } - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -577,7 +577,7 @@ extern "C" { if (state->status == F_break || state->status == F_continue) { process.depth = 0; - state->status = F_none; + state->status = F_okay; if (state->status == F_break) break; @@ -605,7 +605,7 @@ extern "C" { if (F_status_is_error(state->status)) break; } - state->status = F_none; + state->status = F_okay; } if (F_status_is_error(state->status)) break; @@ -632,7 +632,7 @@ extern "C" { parameters->remaining.array[parameters->remaining.used++] = process.location; } - state->status = F_none; + state->status = F_okay; } ++process.location; @@ -650,7 +650,7 @@ extern "C" { } if (state->status == F_process) { - state->status = F_none; + state->status = F_okay; for (; process.location < arguments.argc && arguments.argv[process.location]; ++process.location) { @@ -665,7 +665,7 @@ extern "C" { } // for if (F_status_is_error_not(state->status)) { - state->status = process.needs.used ? F_complete_not : F_none; + state->status = process.needs.used ? F_complete_not : F_okay; } } diff --git a/level_0/f_console/c/console.h b/level_0/f_console/c/console.h index 9e74921..d614475 100644 --- a/level_0/f_console/c/console.h +++ b/level_0/f_console/c/console.h @@ -41,7 +41,7 @@ extern "C" { * Both the name and the value strings may be pointers to the envp memory addresses. * * @return - * F_none on success. + * F_okay on success. * F_data_not if the arguments.envp pointer is NULL or there are no environment variables in arguments.envp. * * Errors (with error bit) from: f_string_maps_increase_by(). @@ -61,7 +61,7 @@ extern "C" { * The flag with the console type bits determined by this function. * * @return - * F_none on success. + * F_okay on success. * F_data_not the input string is empty. */ #ifndef _di_f_console_identify_ @@ -90,7 +90,7 @@ extern "C" { * If none of the parameters are found, then this will not be updated (therefore it is safe to have it pre-initialized to the default). * * @return - * F_none on success. + * F_okay on success. * F_data_not if no parameters were matched with the available choices. * * F_parameter (with error bit) if a parameter is invalid. @@ -121,7 +121,7 @@ extern "C" { * If none of the parameters are found, then this will not be updated (therefore it is safe to have it pre-initialized to the default). * * @return - * F_none on success. + * F_okay on success. * F_data_not if no parameters were matched with the available choices. * * F_parameter (with error bit) if a parameter is invalid. @@ -163,7 +163,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not if argc is 0, argv is a NULL pointer, or if argv[0] is NULL. * F_complete_not if "values" parameters were expected but not found. * diff --git a/level_0/f_console/c/console/common.c b/level_0/f_console/c/console/common.c index 52b78f1..09800bc 100644 --- a/level_0/f_console/c/console/common.c +++ b/level_0/f_console/c/console/common.c @@ -170,7 +170,7 @@ extern "C" { if (!parameters) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < parameters->used; ++i) { @@ -190,7 +190,7 @@ extern "C" { status = f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) ¶meters->remaining.array, ¶meters->remaining.used, ¶meters->remaining.size); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_console_parameters_delete_ @@ -200,7 +200,7 @@ extern "C" { if (!parameters) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < parameters->used; ++i) { @@ -221,7 +221,7 @@ extern "C" { status = f_memory_array_adjust(0, sizeof(f_number_unsigned_t), (void **) ¶meters->remaining.array, ¶meters->remaining.used, ¶meters->remaining.size); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_console_parameters_destroy_ diff --git a/level_0/f_console/c/console/common.h b/level_0/f_console/c/console/common.h index 908a846..c9fb2ce 100644 --- a/level_0/f_console/c/console/common.h +++ b/level_0/f_console/c/console/common.h @@ -516,7 +516,7 @@ extern "C" { * - data: The structure determined by the caller for passing to the parameter processing function and is intended to be used for updating based on results. * * The callback function state.status interpretations: - * - F_none: On no error and processing complete. + * - F_okay: On no error and processing complete. * - F_break: To tell the caller to break out of the loop (based on depth, when applicable). * - F_continue: To tell the caller to continue the loop (based on depth, when applicable). * - F_process: To tell the caller to perform the built in functionality. @@ -811,7 +811,7 @@ extern "C" { * The state object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -830,7 +830,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -849,7 +849,7 @@ extern "C" { * The parameters object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -870,7 +870,7 @@ extern "C" { * The parameters object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_console/c/private-console.c b/level_0/f_console/c/private-console.c index 53cbe86..091788c 100644 --- a/level_0/f_console/c/private-console.c +++ b/level_0/f_console/c/private-console.c @@ -55,7 +55,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_f_console_identify_) || !defined(_di_f_console_parameter_process_) diff --git a/level_0/f_console/c/private-console.h b/level_0/f_console/c/private-console.h index 62a4af8..24fe297 100644 --- a/level_0/f_console/c/private-console.h +++ b/level_0/f_console/c/private-console.h @@ -26,7 +26,7 @@ extern "C" { * The flag with the console type bits determined by this function. * * @return - * F_none on success. + * F_okay on success. * F_data_not the input string is empty. * * diff --git a/level_0/f_console/tests/unit/c/test-console-environment_process.c b/level_0/f_console/tests/unit/c/test-console-environment_process.c index 84c8424..8a6f841 100644 --- a/level_0/f_console/tests/unit/c/test-console-environment_process.c +++ b/level_0/f_console/tests/unit/c/test-console-environment_process.c @@ -76,7 +76,7 @@ void test__f_console_environment_process__works(void **state) { { const f_status_t status = f_console_environment_process(arguments, &maps); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(maps.used, 5); assert_int_equal(maps.array[0].name.used, 1); assert_int_equal(maps.array[0].value.used, 1); diff --git a/level_0/f_console/tests/unit/c/test-console-identify.c b/level_0/f_console/tests/unit/c/test-console-identify.c index 07ba532..4c1556d 100644 --- a/level_0/f_console/tests/unit/c/test-console-identify.c +++ b/level_0/f_console/tests/unit/c/test-console-identify.c @@ -32,63 +32,63 @@ void test__f_console_identify__works(void **state) { { const f_status_t status = f_console_identify("input", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_none_e); } { const f_status_t status = f_console_identify("-", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_normal_e | f_console_result_short_e | f_console_result_alone_e); } { const f_status_t status = f_console_identify("+", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_inverse_e | f_console_result_short_e | f_console_result_alone_e); } { const f_status_t status = f_console_identify("-i", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_normal_e | f_console_result_short_e); } { const f_status_t status = f_console_identify("+i", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_inverse_e | f_console_result_short_e); } { const f_status_t status = f_console_identify("--input", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_normal_e | f_console_result_long_e); } { const f_status_t status = f_console_identify("++input", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_inverse_e | f_console_result_long_e); } { const f_status_t status = f_console_identify("--", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_normal_e | f_console_result_long_e | f_console_result_alone_e); } { const f_status_t status = f_console_identify("++", &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, f_console_result_found_e | f_console_result_inverse_e | f_console_result_long_e | f_console_result_alone_e); } } diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c index 05dd24a..d36d19e 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c @@ -103,7 +103,7 @@ void test__f_console_parameter_prioritize_left__works(void **state) { const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, &decision); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(decision, 1); } diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c index 083276b..0b7cc39 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c @@ -103,7 +103,7 @@ void test__f_console_parameter_prioritize_right__works(void **state) { const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, &decision); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(decision, 0); } diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_process.c b/level_0/f_console/tests/unit/c/test-console-parameter_process.c index 53d0b26..96ca436 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_process.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_process.c @@ -267,7 +267,7 @@ void test__f_console_parameter_process__no_arguments(void **state) { f_state_t state = f_state_t_initialize; f_console_parameter_process(arguments, ¶meters, &state, 0); - assert_int_equal(state.status, argc ? F_none : F_data_not); + assert_int_equal(state.status, argc ? F_okay : F_data_not); assert_int_equal(parameter[0].result, f_console_result_none_e); assert_int_equal(parameter[0].locations.used, 0); @@ -510,7 +510,7 @@ void test__f_console_parameter_process__only_remaining(void **state) { f_state_t state = f_state_t_initialize; f_console_parameter_process(arguments, ¶meters, &state, 0); - assert_int_equal(state.status, F_none); + assert_int_equal(state.status, F_okay); assert_int_equal(parameter[0].result, f_console_result_none_e); assert_int_equal(parameter[0].locations.used, 0); @@ -691,7 +691,7 @@ void test__f_console_parameter_process__works(void **state) { f_state_t state = f_state_t_initialize; f_console_parameter_process(arguments, ¶meters, &state, 0); - assert_int_equal(state.status, F_none); + assert_int_equal(state.status, F_okay); assert_int_equal(parameter[0].result & f_console_result_value_e, f_console_result_value_e); assert_int_equal(parameter[0].locations.used, 1); diff --git a/level_0/f_console/tests/unit/c/test-console-parameters_delete.c b/level_0/f_console/tests/unit/c/test-console-parameters_delete.c index 9578bec..9f65011 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameters_delete.c +++ b/level_0/f_console/tests/unit/c/test-console-parameters_delete.c @@ -19,7 +19,7 @@ void test__f_console_parameters_delete__frees_memory(void **state) { { const f_status_t status = f_string_dynamics_resize(size, ¶meters.arguments); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.arguments.size, 0); assert_non_null(parameters.arguments.array); } @@ -27,7 +27,7 @@ void test__f_console_parameters_delete__frees_memory(void **state) { { const f_status_t status = f_memory_array_resize(size, sizeof(f_number_unsigned_t), (void **) ¶meters.array[0].locations.array, ¶meters.array[0].locations.used, ¶meters.array[0].locations.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.array[0].locations.size, 0); assert_non_null(parameters.array[0].locations.array); } @@ -35,7 +35,7 @@ void test__f_console_parameters_delete__frees_memory(void **state) { { const f_status_t status = f_memory_array_resize(size, sizeof(f_number_unsigned_t), (void **) ¶meters.array[0].locations_sub.array, ¶meters.array[0].locations_sub.used, ¶meters.array[0].locations_sub.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.array[0].locations_sub.size, 0); assert_non_null(parameters.array[0].locations_sub.array); } @@ -43,7 +43,7 @@ void test__f_console_parameters_delete__frees_memory(void **state) { { const f_status_t status = f_console_parameters_delete(¶meters); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(parameters.arguments.size, 0); assert_int_equal(parameters.array[0].locations.size, 0); assert_int_equal(parameters.array[0].locations_sub.size, 0); diff --git a/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c b/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c index 7877702..90286ac 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c +++ b/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c @@ -19,7 +19,7 @@ void test__f_console_parameters_destroy__frees_memory(void **state) { { const f_status_t status = f_string_dynamics_resize(size, ¶meters.arguments); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.arguments.size, 0); assert_non_null(parameters.arguments.array); } @@ -27,7 +27,7 @@ void test__f_console_parameters_destroy__frees_memory(void **state) { { const f_status_t status = f_memory_array_resize(size, sizeof(f_number_unsigned_t), (void **) ¶meters.array[0].locations.array, ¶meters.array[0].locations.used, ¶meters.array[0].locations.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.array[0].locations.size, 0); assert_non_null(parameters.array[0].locations.array); } @@ -35,7 +35,7 @@ void test__f_console_parameters_destroy__frees_memory(void **state) { { const f_status_t status = f_memory_array_resize(size, sizeof(f_number_unsigned_t), (void **) ¶meters.array[0].locations_sub.array, ¶meters.array[0].locations_sub.used, ¶meters.array[0].locations_sub.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_not_equal(parameters.array[0].locations_sub.size, 0); assert_non_null(parameters.array[0].locations_sub.array); } @@ -43,7 +43,7 @@ void test__f_console_parameters_destroy__frees_memory(void **state) { { const f_status_t status = f_console_parameters_destroy(¶meters); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(parameters.arguments.size, 0); assert_int_equal(parameters.array[0].locations.size, 0); assert_int_equal(parameters.array[0].locations_sub.size, 0); diff --git a/level_0/f_control_group/c/control_group.c b/level_0/f_control_group/c/control_group.c index d947009..26ddce0 100644 --- a/level_0/f_control_group/c/control_group.c +++ b/level_0/f_control_group/c/control_group.c @@ -14,7 +14,7 @@ extern "C" { destination->path.used = 0; destination->groups.used = 0; - f_status_t status = F_none; + f_status_t status = F_okay; if (source.path.used) { status = f_string_dynamic_append(source.path, &destination->path); @@ -26,7 +26,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_control_group_copy_ diff --git a/level_0/f_control_group/c/control_group.h b/level_0/f_control_group/c/control_group.h index af40859..bdfa34d 100644 --- a/level_0/f_control_group/c/control_group.h +++ b/level_0/f_control_group/c/control_group.h @@ -40,7 +40,7 @@ extern "C" { * The destination the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_control_group/tests/unit/c/test-control_group-copy.c b/level_0/f_control_group/tests/unit/c/test-control_group-copy.c index 17cd086..a0d094a 100644 --- a/level_0/f_control_group/tests/unit/c/test-control_group-copy.c +++ b/level_0/f_control_group/tests/unit/c/test-control_group-copy.c @@ -27,7 +27,7 @@ void test__f_control_group_copy__works(void **state) { const f_status_t status = f_control_group_copy(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); macro_f_control_group_t_delete_simple(destination); @@ -50,7 +50,7 @@ void test__f_control_group_copy__works(void **state) { const f_status_t status = f_control_group_copy(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.as_new, source.as_new); @@ -90,7 +90,7 @@ void test__f_control_group_copy__works(void **state) { const f_status_t status = f_control_group_copy(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.as_new, source.as_new); @@ -141,7 +141,7 @@ void test__f_control_group_copy__works(void **state) { const f_status_t status = f_control_group_copy(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.as_new, source.as_new); diff --git a/level_0/f_conversion/c/conversion.c b/level_0/f_conversion/c/conversion.c index 0eeedeb..38df8e3 100644 --- a/level_0/f_conversion/c/conversion.c +++ b/level_0/f_conversion/c/conversion.c @@ -62,7 +62,7 @@ extern "C" { return F_status_set_error(F_number); } - return F_none; + return F_okay; } #endif // _di_f_conversion_character_to_binary_ @@ -75,7 +75,7 @@ extern "C" { if (character > 0x2f && character < 0x3a) { *number = 0xf & character; - return F_none; + return F_okay; } return F_status_set_error(F_number); @@ -91,13 +91,13 @@ extern "C" { if (character > 0x2f && character < 0x3a) { *number = 0xf & character; - return F_none; + return F_okay; } if ((character > 0x40 && character < 0x43) || (character > 0x60 && character < 0x63)) { *number = 9 + (0xf & character); - return F_none; + return F_okay; } return F_status_set_error(F_number); @@ -113,13 +113,13 @@ extern "C" { if (character > 0x2f && character < 0x3a) { *number = 0xf & character; - return F_none; + return F_okay; } if ((character > 0x40 && character < 0x47) || (character > 0x60 && character < 0x67)) { *number = 9 + (0xf & character); - return F_none; + return F_okay; } return F_status_set_error(F_number); @@ -136,7 +136,7 @@ extern "C" { *number = 0xf & character; - return F_none; + return F_okay; } #endif // _di_f_conversion_character_to_octal_ diff --git a/level_0/f_conversion/c/conversion.h b/level_0/f_conversion/c/conversion.h index 4bb8a51..4f2f1fa 100644 --- a/level_0/f_conversion/c/conversion.h +++ b/level_0/f_conversion/c/conversion.h @@ -138,7 +138,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if character was converted to a binary. + * F_okay if character was converted to a binary. * * F_number (with error bit) if no conversion was made due to non-binary values being found. * F_parameter (with error bit) if a parameter is invalid. @@ -157,7 +157,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if character was converted to a decimal. + * F_okay if character was converted to a decimal. * * F_number (with error bit) if no conversion was made due to non-decimal values being found. * F_parameter (with error bit) if a parameter is invalid. @@ -176,7 +176,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if character was converted to a duodecimal. + * F_okay if character was converted to a duodecimal. * * F_number (with error bit) if no conversion was made due to non-duodecimal values being found. * F_parameter (with error bit) if a parameter is invalid. @@ -195,7 +195,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if character was converted to a hexidecimal. + * F_okay if character was converted to a hexidecimal. * * F_number (with error bit) if no conversion was made due to non-hexidecimal values being found. * F_parameter (with error bit) if a parameter is invalid. @@ -214,7 +214,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if character was converted to a hexidecimal. + * F_okay if character was converted to a hexidecimal. * * F_number (with error bit) if no conversion was made due to non-hexidecimal values being found. * F_parameter (with error bit) if a parameter is invalid. @@ -241,7 +241,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none if the number was converted to a string. + * F_okay if the number was converted to a string. * * F_block (with error bit) if file stream is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. @@ -274,7 +274,7 @@ extern "C" { * The destination the converted string is saved into. * * @return - * F_none if the number was converted to a string. + * F_okay if the number was converted to a string. * * F_parameter (with error bit) if a parameter is invalid. * @@ -306,7 +306,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none if the number was converted to a string. + * F_okay if the number was converted to a string. * * F_block (with error bit) if file stream is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. @@ -339,7 +339,7 @@ extern "C" { * The destination the converted string is saved into. * * @return - * F_none if the number was converted to a string. + * F_okay if the number was converted to a string. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_conversion/c/private-conversion.c b/level_0/f_conversion/c/private-conversion.c index 3affaa8..818ad3b 100644 --- a/level_0/f_conversion/c/private-conversion.c +++ b/level_0/f_conversion/c/private-conversion.c @@ -80,7 +80,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) @@ -136,7 +136,7 @@ extern "C" { } } // while - return F_none; + return F_okay; } f_char_t c = 0; @@ -171,7 +171,7 @@ extern "C" { } // while } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) @@ -189,7 +189,7 @@ extern "C" { } // while } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) @@ -277,7 +277,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) @@ -337,7 +337,7 @@ extern "C" { destination->string[destination->used++] = f_string_ascii_0_s.string[0]; } - return F_none; + return F_okay; } #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) diff --git a/level_0/f_conversion/c/private-conversion.h b/level_0/f_conversion/c/private-conversion.h index 54842d3..30048d1 100644 --- a/level_0/f_conversion/c/private-conversion.h +++ b/level_0/f_conversion/c/private-conversion.h @@ -32,7 +32,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * * F_output (with error bit) on failure. * F_parameter (with error bit) if a parameter is invalid. @@ -66,7 +66,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * * F_output (with error bit) on failure. * F_parameter (with error bit) if a parameter is invalid. @@ -95,7 +95,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * * F_output (with error bit) on failure. * F_parameter (with error bit) if a parameter is invalid. @@ -125,7 +125,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * * F_output (with error bit) on failure. * F_parameter (with error bit) if a parameter is invalid. @@ -157,7 +157,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_increase_by() * diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c index 2b34e77..0d9a6e1 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c @@ -94,7 +94,7 @@ void test__f_conversion_number_signed_print__works(void **state) { const f_status_t status = f_conversion_number_signed_print(1, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -113,7 +113,7 @@ void test__f_conversion_number_signed_print__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_print(0, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -126,7 +126,7 @@ void test__f_conversion_number_signed_print__works_for_zero_with_width_zero(void const f_status_t status = f_conversion_number_signed_print(0, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c index 50eb7d5..0950ca4 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c @@ -34,7 +34,7 @@ void test__f_conversion_number_signed_to_string__works(void **state) { const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "1"); } @@ -50,7 +50,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0b1"); } @@ -62,7 +62,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0B1"); } @@ -74,7 +74,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0o1"); } @@ -86,7 +86,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0O1"); } @@ -98,7 +98,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0t1"); } @@ -110,7 +110,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0T1"); } @@ -122,7 +122,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0d1"); } @@ -134,7 +134,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0D1"); } @@ -146,7 +146,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0x1"); } @@ -158,7 +158,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state) const f_status_t status = f_conversion_number_signed_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0X1"); } @@ -174,7 +174,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -186,7 +186,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0"); } @@ -198,7 +198,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0"); } @@ -210,7 +210,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -222,7 +222,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "00"); } @@ -234,7 +234,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -246,7 +246,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -258,7 +258,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -270,7 +270,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -282,7 +282,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 00"); } diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c index baa40bc..4ef8732 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c @@ -94,7 +94,7 @@ void test__f_conversion_number_unsigned_print__works(void **state) { const f_status_t status = f_conversion_number_unsigned_print(1, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -113,7 +113,7 @@ void test__f_conversion_number_unsigned_print__works_for_zero(void **state) { const f_status_t status = f_conversion_number_unsigned_print(0, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -126,7 +126,7 @@ void test__f_conversion_number_unsigned_print__works_for_zero_with_width_zero(vo const f_status_t status = f_conversion_number_unsigned_print(0, data, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c index 4e652b9..168a69a 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c @@ -34,7 +34,7 @@ void test__f_conversion_number_unsigned_to_string__works(void **state) { const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "1"); } @@ -50,7 +50,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0b1"); } @@ -62,7 +62,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0B1"); } @@ -74,7 +74,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0o1"); } @@ -86,7 +86,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0O1"); } @@ -98,7 +98,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0t1"); } @@ -110,7 +110,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0T1"); } @@ -122,7 +122,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0d1"); } @@ -134,7 +134,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0D1"); } @@ -146,7 +146,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0x1"); } @@ -158,7 +158,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat const f_status_t status = f_conversion_number_unsigned_to_string(1, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0X1"); } @@ -174,7 +174,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -186,7 +186,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0"); } @@ -198,7 +198,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "0"); } @@ -210,7 +210,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -222,7 +222,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, "00"); } @@ -234,7 +234,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -246,7 +246,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -258,7 +258,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, ""); } @@ -270,7 +270,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 0"); } @@ -282,7 +282,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state) const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, " 00"); } diff --git a/level_0/f_directory/c/directory.c b/level_0/f_directory/c/directory.c index 11f5379..3350ab0 100644 --- a/level_0/f_directory/c/directory.c +++ b/level_0/f_directory/c/directory.c @@ -146,7 +146,7 @@ extern "C" { if (!path.used) return F_data_not; struct dirent **listing = 0; - f_status_t status = F_none; + f_status_t status = F_okay; const size_t length = scandir(path.string, &listing, filter, sort); @@ -209,7 +209,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (!length) return F_directory_empty; - return F_none; + return F_okay; } #endif // _di_f_directory_list_ @@ -248,7 +248,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_open_ @@ -288,7 +288,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_open_at_ @@ -312,7 +312,7 @@ extern "C" { else { // Not recursively deleting and the path is requested to be preserved, so there is nothing to delete. - if (preserve) return F_none; + if (preserve) return F_okay; result = remove(path.string); } @@ -338,7 +338,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_remove_ @@ -362,7 +362,7 @@ extern "C" { else { // Not recursively deleting and the path is requested to be preserved, so there is nothing to delete. - if (preserve) return F_none; + if (preserve) return F_okay; result = remove(path.string); } @@ -388,7 +388,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_remove_custom_ @@ -430,7 +430,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_touch_ @@ -473,7 +473,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_directory_touch_at_ diff --git a/level_0/f_directory/c/directory.h b/level_0/f_directory/c/directory.h index 3793cdc..fecd046 100644 --- a/level_0/f_directory/c/directory.h +++ b/level_0/f_directory/c/directory.h @@ -55,7 +55,7 @@ extern "C" { * The directory mode to use when creating. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -90,7 +90,7 @@ extern "C" { * The directory mode to use when creating. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -243,7 +243,7 @@ extern "C" { * Will be populated with the names of each file and/or directory inside path. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_directory_empty if directory is empty. * @@ -275,7 +275,7 @@ extern "C" { * This is updated with the result of open() or openat(). * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -317,7 +317,7 @@ extern "C" { * This is updated with the result of open() or openat(). * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -357,7 +357,7 @@ extern "C" { * When depth_max is 0, then this should only be FALSE (setting this to TRUE would be a no-op). * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -401,7 +401,7 @@ extern "C" { * Such as a custom function for verbose printing of removed files. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -439,7 +439,7 @@ extern "C" { * The file mode to use when (directory) file is created. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -483,7 +483,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. diff --git a/level_0/f_directory/c/directory/listing.c b/level_0/f_directory/c/directory/listing.c index f8772e0..7810e39 100644 --- a/level_0/f_directory/c/directory/listing.c +++ b/level_0/f_directory/c/directory/listing.c @@ -36,7 +36,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_listing_delete_ @@ -72,7 +72,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_listing_destroy_ @@ -81,7 +81,7 @@ extern "C" { { f_directory_listing_t * const array = (f_directory_listing_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -111,7 +111,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_listings_delete_callback_ @@ -120,7 +120,7 @@ extern "C" { { f_directory_listing_t * const array = (f_directory_listing_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -150,7 +150,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_listings_destroy_callback_ @@ -159,7 +159,7 @@ extern "C" { { f_directory_listings_t * const array = (f_directory_listings_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -198,7 +198,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_listingss_delete_callback_ @@ -207,7 +207,7 @@ extern "C" { { f_directory_listings_t * const array = (f_directory_listings_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -246,7 +246,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_listingss_destroy_callback_ diff --git a/level_0/f_directory/c/directory/listing.h b/level_0/f_directory/c/directory/listing.h index c5d7f1d..5ebdf2a 100644 --- a/level_0/f_directory/c/directory/listing.h +++ b/level_0/f_directory/c/directory/listing.h @@ -119,7 +119,7 @@ extern "C" { * The listing to fully delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -138,7 +138,7 @@ extern "C" { * The listing to fully destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -166,7 +166,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -194,7 +194,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -222,7 +222,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -250,7 +250,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_directory/c/directory/recurse_do.c b/level_0/f_directory/c/directory/recurse_do.c index 066bc7f..a07bd36 100644 --- a/level_0/f_directory/c/directory/recurse_do.c +++ b/level_0/f_directory/c/directory/recurse_do.c @@ -42,7 +42,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_do_delete_ @@ -92,7 +92,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_do_destroy_ @@ -101,7 +101,7 @@ extern "C" { { f_directory_recurse_do_t * const array = (f_directory_recurse_do_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -137,7 +137,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_dos_delete_callback_ @@ -146,7 +146,7 @@ extern "C" { { f_directory_recurse_do_t * const array = (f_directory_recurse_do_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -191,7 +191,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_dos_destroy_callback_ @@ -200,7 +200,7 @@ extern "C" { { f_directory_recurse_dos_t * const array = (f_directory_recurse_dos_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -245,7 +245,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_doss_delete_callback_ @@ -254,7 +254,7 @@ extern "C" { { f_directory_recurse_dos_t * const array = (f_directory_recurse_dos_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -308,7 +308,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_recurse_doss_destroy_callback_ diff --git a/level_0/f_directory/c/directory/recurse_do.h b/level_0/f_directory/c/directory/recurse_do.h index 36c0ac1..811af12 100644 --- a/level_0/f_directory/c/directory/recurse_do.h +++ b/level_0/f_directory/c/directory/recurse_do.h @@ -170,7 +170,7 @@ extern "C" { * The recurse to fully delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -191,7 +191,7 @@ extern "C" { * The recurse to fully destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -221,7 +221,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -251,7 +251,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -281,7 +281,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -311,7 +311,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_directory/c/directory/status.c b/level_0/f_directory/c/directory/status.c index 5538fe5..b73a7d6 100644 --- a/level_0/f_directory/c/directory/status.c +++ b/level_0/f_directory/c/directory/status.c @@ -15,7 +15,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_status_delete_ @@ -32,7 +32,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_directory_status_destroy_ @@ -41,7 +41,7 @@ extern "C" { { f_directory_status_t * const array = (f_directory_status_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -50,7 +50,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_statuss_delete_callback_ @@ -59,18 +59,18 @@ extern "C" { { f_directory_status_t * const array = (f_directory_status_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { - array[i].status = F_none; + array[i].status = F_okay; status = f_string_dynamic_adjust(0, &array[i].path); if (F_status_is_error(status)) return status; } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_statuss_destroy_callback_ @@ -79,7 +79,7 @@ extern "C" { { f_directory_statuss_t * const array = (f_directory_statuss_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -97,7 +97,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_statusss_delete_callback_ @@ -106,14 +106,14 @@ extern "C" { { f_directory_statuss_t * const array = (f_directory_statuss_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { for (j = 0; j < array[i].size; ++j) { - array[i].array[j].status = F_none; + array[i].array[j].status = F_okay; status = f_string_dynamic_adjust(0, &array[i].array[j].path); if (F_status_is_error(status)) return status; @@ -126,7 +126,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_directory_statusss_destroy_callback_ diff --git a/level_0/f_directory/c/directory/status.h b/level_0/f_directory/c/directory/status.h index 65af472..cba3204 100644 --- a/level_0/f_directory/c/directory/status.h +++ b/level_0/f_directory/c/directory/status.h @@ -103,7 +103,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -131,7 +131,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -159,7 +159,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -187,7 +187,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_directory/c/private-directory.c b/level_0/f_directory/c/private-directory.c index 218650b..557dcad 100644 --- a/level_0/f_directory/c/private-directory.c +++ b/level_0/f_directory/c/private-directory.c @@ -27,7 +27,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_directory_create_) || !defined(_di_f_directory_touch_) @@ -54,7 +54,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_directory_create_at_) || !defined(_di_f_directory_touch_at_) diff --git a/level_0/f_directory/c/private-directory.h b/level_0/f_directory/c/private-directory.h index 1c75860..6703833 100644 --- a/level_0/f_directory/c/private-directory.h +++ b/level_0/f_directory/c/private-directory.h @@ -25,7 +25,7 @@ extern "C" { * The directory mode to use when creating. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. @@ -62,7 +62,7 @@ extern "C" { * The directory mode to use when creating. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. diff --git a/level_0/f_directory/tests/unit/c/test-directory-create.c b/level_0/f_directory/tests/unit/c/test-directory-create.c index a6d6fe9..c2a37ff 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-create.c +++ b/level_0/f_directory/tests/unit/c/test-directory-create.c @@ -75,7 +75,7 @@ void test__f_directory_create__works(void **state) { const f_status_t status = f_directory_create(path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-create_at.c b/level_0/f_directory/tests/unit/c/test-directory-create_at.c index 13a1227..b3a49d4 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-create_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-create_at.c @@ -77,7 +77,7 @@ void test__f_directory_create_at__works(void **state) { const f_status_t status = f_directory_create_at(0, path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-list.c b/level_0/f_directory/tests/unit/c/test-directory-list.c index 5047034..861de6a 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-list.c +++ b/level_0/f_directory/tests/unit/c/test-directory-list.c @@ -106,7 +106,7 @@ void test__f_directory_list__works(void **state) { const f_status_t status = f_directory_list(path, 0, 0, &names); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } f_string_dynamics_resize(0, &names); diff --git a/level_0/f_directory/tests/unit/c/test-directory-listings_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-listings_delete_callback.c index 0a5007c..27f397d 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-listings_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-listings_delete_callback.c @@ -25,7 +25,7 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -37,10 +37,10 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -52,13 +52,13 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -70,16 +70,16 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -91,19 +91,19 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -115,22 +115,22 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -142,25 +142,25 @@ void test__f_directory_listings_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -183,32 +183,32 @@ void test__f_directory_listings_delete_callback__works(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); const f_status_t status = f_directory_listings_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-listings_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-listings_destroy_callback.c index 8bf4859..6bb2777 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-listings_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-listings_destroy_callback.c @@ -25,7 +25,7 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -37,10 +37,10 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -52,13 +52,13 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -70,16 +70,16 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -91,19 +91,19 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -115,22 +115,22 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -142,25 +142,25 @@ void test__f_directory_listings_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -183,32 +183,32 @@ void test__f_directory_listings_destroy_callback__works(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); const f_status_t status = f_directory_listings_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-listingss_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-listingss_delete_callback.c index 0ad401e..e9a4921 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-listingss_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-listingss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -116,22 +116,22 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -143,25 +143,25 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -173,28 +173,28 @@ void test__f_directory_listingss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -216,40 +216,40 @@ void test__f_directory_listingss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_directory_listings_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_directory_listing_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].block); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].character); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].directory); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].regular); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].link); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].fifo); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].unknown); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_listingss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-listingss_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-listingss_destroy_callback.c index 2aa5368..d5565a3 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-listingss_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-listingss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -116,22 +116,22 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -143,25 +143,25 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -173,28 +173,28 @@ void test__f_directory_listingss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -216,40 +216,40 @@ void test__f_directory_listingss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_directory_listings_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_directory_listing_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].block); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].character); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].directory); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].regular); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].link); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].fifo); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].unknown); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_listingss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-open.c b/level_0/f_directory/tests/unit/c/test-directory-open.c index 0871abb..e81a6c6 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-open.c +++ b/level_0/f_directory/tests/unit/c/test-directory-open.c @@ -94,7 +94,7 @@ void test__f_directory_open__works(void **state) { const f_status_t status = f_directory_open(path, F_false, &id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, 5); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-open_at.c b/level_0/f_directory/tests/unit/c/test-directory-open_at.c index c93ae32..ed36192 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-open_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-open_at.c @@ -101,7 +101,7 @@ void test__f_directory_open_at__works(void **state) { const f_status_t status = f_directory_open_at(at, path, F_false, &id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, 5); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_delete_callback.c index 1c34c95..0a2d04e 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_delete_callback.c @@ -25,7 +25,7 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -37,10 +37,10 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -52,13 +52,13 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -70,16 +70,16 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -91,19 +91,19 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -115,22 +115,22 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -142,25 +142,25 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -172,28 +172,28 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -205,31 +205,31 @@ void test__f_directory_recurse_dos_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -252,38 +252,38 @@ void test__f_directory_recurse_dos_delete_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); const f_status_t status = f_directory_recurse_dos_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_destroy_callback.c index 5dd9b4c..ee867af 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-recurse_dos_destroy_callback.c @@ -25,7 +25,7 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -37,10 +37,10 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -52,13 +52,13 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -70,16 +70,16 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -91,19 +91,19 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -115,22 +115,22 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -142,25 +142,25 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -172,28 +172,28 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -205,31 +205,31 @@ void test__f_directory_recurse_dos_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -252,38 +252,38 @@ void test__f_directory_recurse_dos_destroy_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); const f_status_t status = f_directory_recurse_dos_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_delete_callback.c index be47516..3e64686 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, true); will_return(__wrap_f_string_dynamic_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -116,22 +116,22 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -143,25 +143,25 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -173,28 +173,28 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -206,31 +206,31 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, true); will_return(__wrap_f_string_dynamics_resize, F_status_set_error(F_failure)); @@ -242,34 +242,34 @@ void test__f_directory_recurse_doss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_string_dynamics_resize, false); - will_return(__wrap_f_string_dynamics_resize, F_none); + will_return(__wrap_f_string_dynamics_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -291,46 +291,46 @@ void test__f_directory_recurse_doss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_directory_recurse_dos_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_directory_recurse_do_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].path_cache); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.block); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.character); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.directory); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.regular); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.link); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.fifo); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_resize(1, &datass.array[0].array[0].listing.unknown); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_recurse_doss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_destroy_callback.c index 3e3fd88..c3d49db 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-recurse_doss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, true); will_return(__wrap_f_string_dynamic_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -71,16 +71,16 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -92,19 +92,19 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -116,22 +116,22 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -143,25 +143,25 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -173,28 +173,28 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -206,31 +206,31 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, true); will_return(__wrap_f_string_dynamics_adjust, F_status_set_error(F_failure)); @@ -242,34 +242,34 @@ void test__f_directory_recurse_doss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_string_dynamics_adjust, false); - will_return(__wrap_f_string_dynamics_adjust, F_none); + will_return(__wrap_f_string_dynamics_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -291,46 +291,46 @@ void test__f_directory_recurse_doss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_directory_recurse_dos_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_directory_recurse_do_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_adjust(1, &datass.array[0].array[0].path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_adjust(1, &datass.array[0].array[0].path_cache); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.block); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.character); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.directory); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.regular); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.link); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.fifo); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamics_adjust(1, &datass.array[0].array[0].listing.unknown); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_recurse_doss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-remove.c b/level_0/f_directory/tests/unit/c/test-directory-remove.c index 232da85..e919dac 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-remove.c +++ b/level_0/f_directory/tests/unit/c/test-directory-remove.c @@ -118,13 +118,13 @@ void test__f_directory_remove__works(void **state) { const f_status_t status = f_directory_remove(path, 0, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_remove(path, 0, F_true); - assert_int_equal(F_status_set_fine(status), F_none); + assert_int_equal(F_status_set_fine(status), F_okay); } { @@ -135,7 +135,7 @@ void test__f_directory_remove__works(void **state) { const f_status_t status = f_directory_remove(path, 1, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -144,7 +144,7 @@ void test__f_directory_remove__works(void **state) { const f_status_t status = f_directory_remove(path, 1, F_true); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c b/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c index 90b18d3..3a4a540 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c +++ b/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c @@ -118,13 +118,13 @@ void test__f_directory_remove_custom__works(void **state) { const f_status_t status = f_directory_remove_custom(path, 0, F_false, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_remove_custom(path, 0, F_true, 0); - assert_int_equal(F_status_set_fine(status), F_none); + assert_int_equal(F_status_set_fine(status), F_okay); } { @@ -135,7 +135,7 @@ void test__f_directory_remove_custom__works(void **state) { const f_status_t status = f_directory_remove_custom(path, 1, F_false, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -144,7 +144,7 @@ void test__f_directory_remove_custom__works(void **state) { const f_status_t status = f_directory_remove_custom(path, 1, F_true, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-statuss_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-statuss_delete_callback.c index f1a700a..747a184 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-statuss_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-statuss_delete_callback.c @@ -36,11 +36,11 @@ void test__f_directory_statuss_delete_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); const f_status_t status = f_directory_statuss_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-statuss_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-statuss_destroy_callback.c index f1fe76a..7253c33 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-statuss_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-statuss_destroy_callback.c @@ -36,11 +36,11 @@ void test__f_directory_statuss_destroy_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); const f_status_t status = f_directory_statuss_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-statusss_delete_callback.c b/level_0/f_directory/tests/unit/c/test-directory-statusss_delete_callback.c index 2082685..186da03 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-statusss_delete_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-statusss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_directory_statusss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_directory_statusss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_directory_statuss_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_directory_status_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_statusss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-statusss_destroy_callback.c b/level_0/f_directory/tests/unit/c/test-directory-statusss_destroy_callback.c index b660722..d87d321 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-statusss_destroy_callback.c +++ b/level_0/f_directory/tests/unit/c/test-directory-statusss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_directory_statusss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_directory_statusss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_directory_statuss_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_directory_status_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_adjust(1, &datass.array[0].array[0].path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_directory_statusss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_directory/tests/unit/c/test-directory-touch.c b/level_0/f_directory/tests/unit/c/test-directory-touch.c index 7f2e695..99bfd52 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-touch.c +++ b/level_0/f_directory/tests/unit/c/test-directory-touch.c @@ -173,7 +173,7 @@ void test__f_directory_touch__works(void **state) { const f_status_t status = f_directory_touch(path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -184,7 +184,7 @@ void test__f_directory_touch__works(void **state) { const f_status_t status = f_directory_touch(path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-touch_at.c b/level_0/f_directory/tests/unit/c/test-directory-touch_at.c index 2d5d4d3..4c9164d 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-touch_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-touch_at.c @@ -173,7 +173,7 @@ void test__f_directory_touch_at__works(void **state) { const f_status_t status = f_directory_touch_at(1, path, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -184,7 +184,7 @@ void test__f_directory_touch_at__works(void **state) { const f_status_t status = f_directory_touch_at(1, path, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_environment/c/environment.c b/level_0/f_environment/c/environment.c index 7c80399..207d6d3 100644 --- a/level_0/f_environment/c/environment.c +++ b/level_0/f_environment/c/environment.c @@ -11,7 +11,7 @@ extern char **environ; f_status_t f_environment_clear(void) { if (!clearenv()) { - return F_none; + return F_okay; } return F_status_set_error(F_failure); @@ -68,7 +68,7 @@ extern char **environ; value->used = 0; } - return F_none; + return F_okay; } #endif // _di_f_environment_get_ @@ -78,7 +78,7 @@ extern char **environ; if (!environment) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; char *at = 0; f_string_map_t map = f_string_map_t_initialize; @@ -104,7 +104,7 @@ extern char **environ; if (F_status_is_error(status)) return status; } // for - return F_none; + return F_okay; } #endif // _di_f_environment_get_all_ @@ -163,7 +163,7 @@ extern char **environ; return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_environment_set_ @@ -181,7 +181,7 @@ extern char **environ; return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_environment_unset_ diff --git a/level_0/f_environment/c/environment.h b/level_0/f_environment/c/environment.h index dfb8045..24f92a6 100644 --- a/level_0/f_environment/c/environment.h +++ b/level_0/f_environment/c/environment.h @@ -37,7 +37,7 @@ extern "C" { * Delete all environment variables. * * @return - * F_none on success. + * F_okay on success. * F_failure (with error bit) on failure. * * @see clearenv() @@ -86,7 +86,7 @@ extern "C" { * The value is be appended (set value->used to 0 before calling this to fully replace). * * @return - * F_none on success. + * F_okay on success. * F_data_not if name.used is 0. * F_exist_not if name does not exist. * @@ -111,7 +111,7 @@ extern "C" { * An array of maps containing all available environment variable name and value pairs. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -173,7 +173,7 @@ extern "C" { * Set to FALSE to not replace value if name already exists. * * @return - * F_none on success. + * F_okay on success. * F_data_not if name.used is 0. * * F_memory_not (with error bit) on out of memory. @@ -196,7 +196,7 @@ extern "C" { * The name must be NULL terminated. * * @return - * F_none on success. + * F_okay on success. * F_data_not if name.used is 0. * * F_memory_not (with error bit) on out of memory. diff --git a/level_0/f_environment/tests/unit/c/test-environment-clear.c b/level_0/f_environment/tests/unit/c/test-environment-clear.c index 449d07a..c3325ca 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-clear.c +++ b/level_0/f_environment/tests/unit/c/test-environment-clear.c @@ -23,7 +23,7 @@ void test__f_environment_clear__works(void **state) { const f_status_t status = f_environment_clear(); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_environment/tests/unit/c/test-environment-get.c b/level_0/f_environment/tests/unit/c/test-environment-get.c index 4d64d50..3df70d1 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-get.c +++ b/level_0/f_environment/tests/unit/c/test-environment-get.c @@ -57,7 +57,7 @@ void test__f_environment_get__works(void **state) { const f_status_t status = f_environment_get(path, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(buffer.used, path.used); assert_string_equal(buffer.string, path.string); } @@ -69,7 +69,7 @@ void test__f_environment_get__works(void **state) { const f_status_t status = f_environment_get(path, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(buffer.used, f_string_empty_s.used); assert_string_equal(buffer.string, f_string_empty_s.string); } diff --git a/level_0/f_environment/tests/unit/c/test-environment-get_all.c b/level_0/f_environment/tests/unit/c/test-environment-get_all.c index 256b79d..32cfff3 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-get_all.c +++ b/level_0/f_environment/tests/unit/c/test-environment-get_all.c @@ -28,7 +28,7 @@ void test__f_environment_get_all__works(void **state) { const f_status_t status = f_environment_get_all(&environment); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(environment.used, 1); assert_string_equal(environment.array[0].name.string, name.string); assert_string_equal(environment.array[0].value.string, value.string); diff --git a/level_0/f_environment/tests/unit/c/test-environment-set.c b/level_0/f_environment/tests/unit/c/test-environment-set.c index f788482..0b5a2bf 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-set.c +++ b/level_0/f_environment/tests/unit/c/test-environment-set.c @@ -61,7 +61,7 @@ void test__f_environment_set__works(void **state) { const f_status_t status = f_environment_set(path, path, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_environment/tests/unit/c/test-environment-unset.c b/level_0/f_environment/tests/unit/c/test-environment-unset.c index be36b78..f6f8519 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-unset.c +++ b/level_0/f_environment/tests/unit/c/test-environment-unset.c @@ -53,7 +53,7 @@ void test__f_environment_unset__works(void **state) { const f_status_t status = f_environment_unset(path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_execute/tests/unit/c/test-execute-status_from_status.c b/level_0/f_execute/tests/unit/c/test-execute-status_from_status.c index 3fd438a..9bf3532 100644 --- a/level_0/f_execute/tests/unit/c/test-execute-status_from_status.c +++ b/level_0/f_execute/tests/unit/c/test-execute-status_from_status.c @@ -10,7 +10,7 @@ void test__f_execute_status_from_status__fails(void **state) { for (f_status_t i = 0; i < F_status_code_last; ++i) { // Skip past all valid status codes. - if (i == F_none) continue; + if (i == F_okay) continue; if (i == F_access) continue; if (i == F_execute_not) continue; if (i == F_buffer) continue; @@ -122,7 +122,7 @@ void test__f_execute_status_from_status__fails(void **state) { void test__f_execute_status_from_status__works(void **state) { const uint8_t status_executes[] = { - F_execute_none, + F_execute_okay, F_execute_access, F_execute_bad, F_execute_buffer, @@ -227,7 +227,7 @@ void test__f_execute_status_from_status__works(void **state) { }; const f_status_t statuss[] = { - F_none, + F_okay, F_access, F_execute_not, F_buffer, diff --git a/level_0/f_execute/tests/unit/c/test-execute-status_to_status.c b/level_0/f_execute/tests/unit/c/test-execute-status_to_status.c index 3223197..8178890 100644 --- a/level_0/f_execute/tests/unit/c/test-execute-status_to_status.c +++ b/level_0/f_execute/tests/unit/c/test-execute-status_to_status.c @@ -10,7 +10,7 @@ void test__f_execute_status_to_status__fails(void **state) { for (uint8_t i = 0; i < 0xff; ++i) { // Skip past all valid execute codes. - if (i == F_execute_none) continue; + if (i == F_execute_okay) continue; if (i == F_execute_access) continue; if (i == F_execute_bad) continue; if (i == F_execute_buffer) continue; @@ -122,7 +122,7 @@ void test__f_execute_status_to_status__fails(void **state) { void test__f_execute_status_to_status__works(void **state) { const uint8_t status_executes[] = { - F_execute_none, + F_execute_okay, F_execute_access, F_execute_bad, F_execute_buffer, @@ -227,7 +227,7 @@ void test__f_execute_status_to_status__works(void **state) { }; const f_status_t statuss[] = { - F_none, + F_okay, F_access, F_execute_not, F_buffer, diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index b6e8f76..e9724a9 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -113,7 +113,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } return F_support_not; @@ -149,7 +149,7 @@ extern "C" { if (!source.used || !destination.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; struct stat source_stat; memset(&source_stat, 0, sizeof(struct stat)); @@ -179,7 +179,7 @@ extern "C" { status = private_f_file_mode_set(destination, (~F_file_type_mask_d) & mode.directory); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } if (macro_f_file_type_is_link(source_stat.st_mode)) { @@ -203,7 +203,7 @@ extern "C" { } } - return F_none; + return F_okay; } if (macro_f_file_type_is_fifo(source_stat.st_mode)) { @@ -218,7 +218,7 @@ extern "C" { status = private_f_file_mode_set(destination, (~F_file_type_mask_d) & mode.fifo); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } if (macro_f_file_type_is_socket(source_stat.st_mode)) { @@ -233,7 +233,7 @@ extern "C" { status = private_f_file_mode_set(destination, (~F_file_type_mask_d) & mode.socket); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } if (macro_f_file_type_is_block(source_stat.st_mode) || macro_f_file_type_is_character(source_stat.st_mode)) { @@ -248,7 +248,7 @@ extern "C" { status = private_f_file_mode_set(destination, (~F_file_type_mask_d) & mode.block); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } return F_support_not; @@ -335,7 +335,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_create_fifo_at_ @@ -378,7 +378,7 @@ extern "C" { if (file->id == -1) return F_status_set_error(F_file_descriptor_not); - return F_none; + return F_okay; } #endif // _di_f_file_descriptor_ @@ -453,7 +453,7 @@ extern "C" { *group = stat_file.st_gid; - return F_none; + return F_okay; } #endif // _di_f_file_group_read_ @@ -561,7 +561,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_link_hard_ @@ -593,7 +593,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_link_hard_at_ @@ -662,7 +662,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_manipulate_ @@ -965,7 +965,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_file_mode_determine_ @@ -1326,7 +1326,7 @@ extern "C" { *replace = replace_result; } - return F_none; + return F_okay; } return F_status_set_error(F_syntax); @@ -1352,7 +1352,7 @@ extern "C" { *mode = stat_file.st_mode; - return F_none; + return F_okay; } #endif // _di_f_file_mode_read_ @@ -1376,7 +1376,7 @@ extern "C" { *mode = stat_file.st_mode; - return F_none; + return F_okay; } #endif // _di_f_file_mode_read_at_ @@ -1411,7 +1411,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_mode_set_at_ @@ -1473,7 +1473,7 @@ extern "C" { *to |= F_file_mode_world_x_d; } - return F_none; + return F_okay; } #endif // _di_f_file_mode_to_mode_ @@ -1502,7 +1502,7 @@ extern "C" { name_base->used += size; name_base->string[name_base->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_file_name_base_ @@ -1538,7 +1538,7 @@ extern "C" { name_directory->used += size; name_directory->string[name_directory->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_file_name_directory_ @@ -1586,7 +1586,7 @@ extern "C" { *owner = stat_file.st_uid; - return F_none; + return F_okay; } #endif // _di_f_file_owner_read_ @@ -1606,7 +1606,7 @@ extern "C" { return F_status_set_error(F_failure); } - return result ? F_none : F_time_out; + return result ? F_okay : F_time_out; } #endif // _di_f_file_poll_ @@ -1619,7 +1619,7 @@ extern "C" { if (file.id == -1) return F_file_descriptor_not; - f_status_t status = F_none; + f_status_t status = F_okay; ssize_t size_read = 0; do { @@ -1644,7 +1644,7 @@ extern "C" { } while (size_read); - return F_none_eof; + return F_okay_eof; } #endif // _di_f_file_read_ @@ -1682,9 +1682,9 @@ extern "C" { return F_status_set_error(F_failure); } - if (size_read) return F_none; + if (size_read) return F_okay; - return F_none_eof; + return F_okay_eof; } #endif // _di_f_file_read_block_ @@ -1701,7 +1701,7 @@ extern "C" { f_number_unsigned_t buffer_size = file.size_read; f_number_unsigned_t buffer_count = 0; - f_status_t status = F_none; + f_status_t status = F_okay; ssize_t size_read = 0; for (;;) { @@ -1729,14 +1729,14 @@ extern "C" { buffer->used += size_read; - if (!size_read) return F_none_eof; + if (!size_read) return F_okay_eof; buffer_count += size_read; if (buffer_count >= total) break; } // for - return F_none_stop; + return F_okay_stop; } #endif // _di_f_file_read_until_ @@ -1762,7 +1762,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_remove_ @@ -1790,7 +1790,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_remove_at_ @@ -1822,7 +1822,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_rename_ @@ -1860,7 +1860,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_rename_at_ @@ -1904,7 +1904,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_seek_ @@ -1923,7 +1923,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_select_ @@ -1942,7 +1942,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_select_signal_ @@ -1965,7 +1965,7 @@ extern "C" { *size = stat_file.st_size; - return F_none; + return F_okay; } #endif // _di_f_file_size_ @@ -1989,7 +1989,7 @@ extern "C" { *size = stat_file.st_size; - return F_none; + return F_okay; } #endif // _di_f_file_size_at_ @@ -2012,7 +2012,7 @@ extern "C" { *size = stat_file.st_size; - return F_none; + return F_okay; } #endif // _di_f_file_size_by_id_ @@ -2088,7 +2088,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_touch_ @@ -2128,7 +2128,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_touch_at_ @@ -2151,7 +2151,7 @@ extern "C" { *type = macro_f_file_type_get(stat_file.st_mode); - return F_none; + return F_okay; } #endif // _di_f_file_type_ @@ -2175,7 +2175,7 @@ extern "C" { *type = macro_f_file_type_get(stat_file.st_mode); - return F_none; + return F_okay; } #endif // _di_f_file_type_at_ @@ -2191,7 +2191,7 @@ extern "C" { // Restore umask. umask(*mask); - return F_none; + return F_okay; } #endif // _di_f_file_umask_get_ @@ -2200,7 +2200,7 @@ extern "C" { umask(mask); - return F_none; + return F_okay; } #endif // _di_f_file_umask_set_ @@ -2217,7 +2217,7 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, buffer.used, written); if (F_status_is_error(status)) return status; - if (status == F_none && *written == buffer.used) return F_none_eos; + if (status == F_okay && *written == buffer.used) return F_okay_eos; } else { f_number_unsigned_t written_local = 0; @@ -2225,10 +2225,10 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, buffer.used, &written_local); if (F_status_is_error(status)) return status; - if (status == F_none && written_local == buffer.used) return F_none_eos; + if (status == F_okay && written_local == buffer.used) return F_okay_eos; } - return F_none; + return F_okay; } #endif // _di_f_file_write_ @@ -2247,9 +2247,9 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (*written == buffer.used) return F_none_eos; - if (*written == write_max) return F_none_stop; + if (status == F_okay) { + if (*written == buffer.used) return F_okay_eos; + if (*written == write_max) return F_okay_stop; } } else { @@ -2258,13 +2258,13 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, write_max, &written_local); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (written_local == buffer.used) return F_none_eos; - if (written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (written_local == buffer.used) return F_okay_eos; + if (written_local == write_max) return F_okay_stop; } } - return F_none; + return F_okay; } #endif // _di_f_file_write_block_ @@ -2283,9 +2283,9 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (*written == buffer.used) return F_none_eos; - if (*written == write_max) return F_none_stop; + if (status == F_okay) { + if (*written == buffer.used) return F_okay_eos; + if (*written == write_max) return F_okay_stop; } } else { @@ -2294,13 +2294,13 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer, buffer.used, &written_local); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (written_local == buffer.used) return F_none_eos; - if (written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (written_local == buffer.used) return F_okay_eos; + if (written_local == write_max) return F_okay_stop; } } - return F_none; + return F_okay; } #endif // _di_f_file_write_until_ @@ -2323,9 +2323,9 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer_adjusted, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (range.start + *written == buffer.used) return F_none_eos; - if (range.start + *written == write_max) return F_none_stop; + if (status == F_okay) { + if (range.start + *written == buffer.used) return F_okay_eos; + if (range.start + *written == write_max) return F_okay_stop; } } else { @@ -2335,13 +2335,13 @@ extern "C" { const f_status_t status = private_f_file_write_until(file, buffer_adjusted, write_max, &written_local); if (F_status_is_error(status)) return status; - if (status == F_none) { - if (range.start + written_local == buffer.used) return F_none_eos; - if (range.start + written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (range.start + written_local == buffer.used) return F_okay_eos; + if (range.start + written_local == write_max) return F_okay_stop; } } - return F_none; + return F_okay; } #endif // _di_f_file_write_range_ diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 730061a..acdfa6c 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -146,7 +146,7 @@ extern "C" { * If neither f_file_stat_flag_group_e nor f_file_stat_flag_owner_e, will not copy the owner and group ids. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source.used or destination.used is 0. * * F_access_denied (with error bit) on access denied. @@ -185,7 +185,7 @@ extern "C" { * The file. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_file_close (with error bit) if fclose() failed for any other reason. @@ -211,7 +211,7 @@ extern "C" { * The file descriptor. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if id is -1. * * F_file_close (with error bit) if fclose() failed for any other reason. @@ -258,7 +258,7 @@ extern "C" { * If not f_file_stat_flag_reference_e, will dereference any links. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source.used or destination.used is 0. * * F_access_denied (with error bit) on access denied. @@ -299,7 +299,7 @@ extern "C" { * If FALSE, will not fail if file already exists. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -341,7 +341,7 @@ extern "C" { * If FALSE, will not fail if file already exists. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -386,7 +386,7 @@ extern "C" { * Is ignored by pipe file types. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -428,7 +428,7 @@ extern "C" { * Is ignored by pipe file types. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -462,7 +462,7 @@ extern "C" { * The file mode to assign. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -495,7 +495,7 @@ extern "C" { * The file mode to assign. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -531,7 +531,7 @@ extern "C" { * Is ignored by pipe file types. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -567,7 +567,7 @@ extern "C" { * Is ignored by pipe file types. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -598,7 +598,7 @@ extern "C" { * The file. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_stream_not if file.stream is NULL. * * F_parameter (with error bit) if a parameter is invalid. @@ -684,7 +684,7 @@ extern "C" { * The file. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_file_descriptor_not if file.id is -1. * * F_file_descriptor (with error bit) if file descriptor is invalid. @@ -713,7 +713,7 @@ extern "C" { * The id of the file's group. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) if access to the file was denied. @@ -830,7 +830,7 @@ extern "C" { * A path to the link that does the pointing. * * @return - * F_none on success. + * F_okay on success. * F_data_not if target.used or point.used is 0. * * F_access_denied (with error bit) on access denied. @@ -870,7 +870,7 @@ extern "C" { * A path to the link that does the pointing. * * @return - * F_none on success. + * F_okay on success. * F_data_not if target.used or point.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -909,7 +909,7 @@ extern "C" { * A path to the link that does the pointing. * * @return - * F_none on success. + * F_okay on success. * F_data_not if target.used or point.used is 0. * * F_access_denied (with error bit) on access denied. @@ -952,7 +952,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * F_data_not if target.used or point.used is 0. * F_file_descriptor_not if either file.id is -1. * @@ -997,7 +997,7 @@ extern "C" { * Will be NULL terminated with the NULL at target.string[target.used]; * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -1043,7 +1043,7 @@ extern "C" { * Will be NULL terminated with the NULL at target.string[target.used]; * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -1087,7 +1087,7 @@ extern "C" { * See fcntl() for details. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied (due to locks being held by other processes). * F_again (with error bit) on operation on file is prohibited (often due to file being memory mapped by another process). @@ -1129,7 +1129,7 @@ extern "C" { * The determined mode. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1226,7 +1226,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_syntax (with error bit) if the string fails to follow the syntax rules. @@ -1253,7 +1253,7 @@ extern "C" { * The read file mode. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) if access to the file was denied. @@ -1285,7 +1285,7 @@ extern "C" { * The read file mode. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -1317,7 +1317,7 @@ extern "C" { * The new mode to use. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -1352,7 +1352,7 @@ extern "C" { * The new mode to use. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -1386,7 +1386,7 @@ extern "C" { * The determined mode. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1408,7 +1408,7 @@ extern "C" { * This is NULL terminated after the name_directory.used. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_memory_not (with error bit) on out of memory. @@ -1439,7 +1439,7 @@ extern "C" { * This is NULL terminated after the name_directory.used. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_memory_not (with error bit) on out of memory. @@ -1473,7 +1473,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -1518,7 +1518,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -1545,7 +1545,7 @@ extern "C" { * The id of the file's owner. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) if access to the file was denied. @@ -1588,7 +1588,7 @@ extern "C" { * A value of 0 results in immediate return. * * @return - * F_none on success. + * F_okay on success. * F_data_not if polls.used is 0. * F_time_out if time out is reached befoe a signal is received. * @@ -1616,7 +1616,7 @@ extern "C" { * The contents of the file is appended into this buffer. * * @return - * F_none_eof on success and EOF was reached. + * F_okay_eof on success and EOF was reached. * F_file_descriptor_not if file.id is -1. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. @@ -1650,8 +1650,8 @@ extern "C" { * The contents of the file is appended into this buffer. * * @return - * F_none on success. - * F_none_eof on success and EOF was reached. + * F_okay on success. + * F_okay_eof on success and EOF was reached. * F_file_descriptor_not if file.id is -1. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. @@ -1687,8 +1687,8 @@ extern "C" { * The buffer the file is being read into. * * @return - * F_none_eof on success and EOF was reached. - * F_none_stop on success and total was reached. + * F_okay_eof on success and EOF was reached. + * F_okay_stop on success and total was reached. * F_data_not if total is 0. * F_file_descriptor_not if file.id is -1. * @@ -1714,7 +1714,7 @@ extern "C" { * The path file name. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_busy (with error bit) if file is busy. @@ -1747,7 +1747,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) on access denied. @@ -1789,7 +1789,7 @@ extern "C" { * The path to copy to. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -1842,7 +1842,7 @@ extern "C" { * If this is compiled with renameat2 support (), then flag is used otherwise flag is always 0 regardless of this property. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) on access denied. @@ -1887,7 +1887,7 @@ extern "C" { * Set to FALSE to operate on the symlink itself. * * @return - * F_none on success. + * F_okay on success. * F_data_not if either both uid and gid are -1 or path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -1928,7 +1928,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * F_data_not if either both uid and gid are -1 or path.used is 0. * F_file_descriptor_not if file.id is -1. * @@ -1967,7 +1967,7 @@ extern "C" { * To be compared against offset. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_bound_not (with error bit) if SEEK_DATA or SEEK_HOLE is specified as whence and offset is beyond the end of file. @@ -2008,7 +2008,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_data_not if all of read, write, except, and timeout are NULL (having at least one is required) or when highest_plus_one is 0. * * F_file_descriptor (with error bit) if the file descriptor is invalid. @@ -2054,7 +2054,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_data_not if all of read, write, except, and timeout are NULL (having at least one is required) or when highest_plus_one is 0. * * F_file_descriptor (with error bit) if the file descriptor is invalid. @@ -2081,7 +2081,7 @@ extern "C" { * This gets set to the size of the file. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if access to the file was denied. * F_directory_not (with error bit) on invalid directory. @@ -2112,7 +2112,7 @@ extern "C" { * This gets set to the size of the file. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) if access to the file was denied. @@ -2142,7 +2142,7 @@ extern "C" { * This gets set to the size of the file. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) if access to the file was denied. @@ -2176,7 +2176,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) if access to the file was denied. @@ -2209,7 +2209,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) if access to the file was denied. @@ -2239,7 +2239,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) if access to the file was denied. @@ -2273,7 +2273,7 @@ extern "C" { * Set to FALSE to operate on the symlink itself. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -2316,7 +2316,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) on access denied. @@ -2360,7 +2360,7 @@ extern "C" { * The type of the file. * * @return - * F_none if path was found and and the type was loaded in the type parameter. + * F_okay if path was found and and the type was loaded in the type parameter. * F_file_found_not if the path was not found. * * F_access_denied (with error bit) if access to the file was denied. @@ -2390,7 +2390,7 @@ extern "C" { * The type of the file. * * @return - * F_none if path was found and and the type was loaded in the type parameter. + * F_okay if path was found and and the type was loaded in the type parameter. * F_file_descriptor_not if file.id is -1. * F_file_found_not if the path was not found. * @@ -2421,7 +2421,7 @@ extern "C" { * (The name "mask" is used avoid a naming conflict with the umask() function.) * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -2439,7 +2439,7 @@ extern "C" { * (The name "mask" is used avoid a naming conflict with the umask() function.) * * @return - * F_none on success. + * F_okay on success. */ #ifndef _di_f_file_umask_set_ extern f_status_t f_file_umask_set(const mode_t mask); @@ -2457,8 +2457,8 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_eos on success and wrote up to buffer.used. + * F_okay on success. + * F_okay_eos on success and wrote up to buffer.used. * F_data_not if buffer.used is 0 or range.start > range.stop. * F_file_descriptor_not if file.id is -1. * @@ -2491,9 +2491,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_stop on success and wrote up to stop point. - * F_none_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). + * F_okay on success. + * F_okay_stop on success and wrote up to stop point. + * F_okay_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). * F_data_not if buffer.used is 0 or range.start > range.stop. * F_file_descriptor_not if file.id is -1. * @@ -2526,9 +2526,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_stop on success and wrote up to stop point. - * F_none_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). + * F_okay on success. + * F_okay_stop on success and wrote up to stop point. + * F_okay_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). * F_data_not if buffer.used is 0 or range.start > range.stop. * F_file_descriptor_not if file.id is -1. * @@ -2561,9 +2561,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_stop on success and wrote up to stop point. - * F_none_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). + * F_okay on success. + * F_okay_stop on success and wrote up to stop point. + * F_okay_eos on success and wrote up to buffer.used (buffer.used is reached before stop point). * F_data_not if buffer.used is 0 or range.start > range.stop. * F_file_descriptor_not if file.id is -1. * diff --git a/level_0/f_file/c/file/stream.c b/level_0/f_file/c/file/stream.c index 25b7ce4..97746cc 100644 --- a/level_0/f_file/c/file/stream.c +++ b/level_0/f_file/c/file/stream.c @@ -42,7 +42,7 @@ extern "C" { file->stream = 0; - return F_none; + return F_okay; } #endif // _di_f_file_stream_close_ @@ -64,7 +64,7 @@ extern "C" { return F_status_set_error(F_file_synchronize); } - return F_none; + return F_okay; } #endif // _di_f_file_stream_flush_ @@ -75,7 +75,7 @@ extern "C" { flockfile(file.stream); - return F_none; + return F_okay; } #endif // _di_f_file_stream_lock_ @@ -86,7 +86,7 @@ extern "C" { if (ftrylockfile(file.stream)) return F_busy; - return F_none; + return F_okay; } #endif // _di_f_file_stream_lock_try_ @@ -129,7 +129,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_stream_open_ @@ -172,7 +172,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_file_stream_open_descriptor_ @@ -190,7 +190,7 @@ extern "C" { if (feof_unlocked(file.stream)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } if (ferror_unlocked(file.stream)) { @@ -199,7 +199,7 @@ extern "C" { return F_status_set_error(F_error); } - f_status_t status = F_none; + f_status_t status = F_okay; size_t size_read = 0; do { @@ -225,7 +225,7 @@ extern "C" { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } #endif // _di_f_file_stream_read_ @@ -243,7 +243,7 @@ extern "C" { if (feof_unlocked(file.stream)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } if (ferror_unlocked(file.stream)) { @@ -277,12 +277,12 @@ extern "C" { if (feof_unlocked(file.stream)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } funlockfile(file.stream); - return F_none; + return F_okay; } #endif // _di_f_file_stream_read_block_ @@ -301,7 +301,7 @@ extern "C" { if (feof_unlocked(file.stream)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } if (ferror_unlocked(file.stream)) { @@ -316,7 +316,7 @@ extern "C" { if (F_status_is_error(status)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } } @@ -344,7 +344,7 @@ extern "C" { if (feof_unlocked(file.stream)) { funlockfile(file.stream); - return F_none_eof; + return F_okay_eof; } buffer_count += size_read; @@ -354,7 +354,7 @@ extern "C" { funlockfile(file.stream); - return F_none_stop; + return F_okay_stop; } #endif // _di_f_file_stream_read_until_ @@ -399,7 +399,7 @@ extern "C" { file->stream = result; - return F_none; + return F_okay; } #endif // _di_f_file_stream_reopen_ @@ -410,7 +410,7 @@ extern "C" { funlockfile(file.stream); - return F_none; + return F_okay; } #endif // _di_f_file_stream_unlock_ @@ -425,24 +425,24 @@ extern "C" { return file.stream ? F_data_not : F_stream_not; } - f_status_t status = F_none; + f_status_t status = F_okay; if (written) { status = private_f_file_stream_write_until(file, buffer, buffer.used, written); - if (status == F_none && *written == buffer.used) return F_none_eos; + if (status == F_okay && *written == buffer.used) return F_okay_eos; } else { f_number_unsigned_t written_local = 0; status = private_f_file_stream_write_until(file, buffer, buffer.used, &written_local); - if (status == F_none && written_local == buffer.used) return F_none_eos; + if (status == F_okay && written_local == buffer.used) return F_okay_eos; } if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_file_stream_write_ @@ -459,14 +459,14 @@ extern "C" { const f_number_unsigned_t write_max = file.size_write > buffer.used ? buffer.used : file.size_write; - f_status_t status = F_none; + f_status_t status = F_okay; if (written) { status = private_f_file_stream_write_until(file, buffer, write_max, written); - if (status == F_none) { - if (*written == buffer.used) return F_none_eos; - if (*written == write_max) return F_none_stop; + if (status == F_okay) { + if (*written == buffer.used) return F_okay_eos; + if (*written == write_max) return F_okay_stop; } } else { @@ -474,15 +474,15 @@ extern "C" { status = private_f_file_stream_write_until(file, buffer, write_max, &written_local); - if (status == F_none) { - if (written_local == buffer.used) return F_none_eos; - if (written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (written_local == buffer.used) return F_okay_eos; + if (written_local == write_max) return F_okay_stop; } } if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_file_stream_write_block_ @@ -499,14 +499,14 @@ extern "C" { const f_number_unsigned_t write_max = total > buffer.used ? buffer.used : total; - f_status_t status = F_none; + f_status_t status = F_okay; if (written) { status = private_f_file_stream_write_until(file, buffer, write_max, written); - if (status == F_none) { - if (*written == buffer.used) return F_none_eos; - if (*written == write_max) return F_none_stop; + if (status == F_okay) { + if (*written == buffer.used) return F_okay_eos; + if (*written == write_max) return F_okay_stop; } } else { @@ -514,15 +514,15 @@ extern "C" { status = private_f_file_stream_write_until(file, buffer, buffer.used, &written_local); - if (status == F_none) { - if (written_local == buffer.used) return F_none_eos; - if (written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (written_local == buffer.used) return F_okay_eos; + if (written_local == write_max) return F_okay_stop; } } if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_file_stream_write_until_ @@ -540,14 +540,14 @@ extern "C" { const f_number_unsigned_t write_max = (range.stop - range.start) + 1 > buffer.used ? buffer.used : (range.stop - range.start) + 1; const f_string_static_t buffer_adjusted = macro_f_string_static_t_initialize_1(buffer.string + range.start, 0, buffer.used - range.start); - f_status_t status = F_none; + f_status_t status = F_okay; if (written) { status = private_f_file_stream_write_until(file, buffer_adjusted, write_max, written); - if (status == F_none) { - if (range.start + *written == buffer.used) return F_none_eos; - if (range.start + *written == write_max) return F_none_stop; + if (status == F_okay) { + if (range.start + *written == buffer.used) return F_okay_eos; + if (range.start + *written == write_max) return F_okay_stop; } } else { @@ -555,15 +555,15 @@ extern "C" { status = private_f_file_stream_write_until(file, buffer_adjusted, write_max, &written_local); - if (status == F_none) { - if (range.start + written_local == buffer.used) return F_none_eos; - if (range.start + written_local == write_max) return F_none_stop; + if (status == F_okay) { + if (range.start + written_local == buffer.used) return F_okay_eos; + if (range.start + written_local == write_max) return F_okay_stop; } } if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_file_stream_write_range_ diff --git a/level_0/f_file/c/file/stream.h b/level_0/f_file/c/file/stream.h index f764f7d..028fd3b 100644 --- a/level_0/f_file/c/file/stream.h +++ b/level_0/f_file/c/file/stream.h @@ -24,7 +24,7 @@ extern "C" { * The file.stream is set to NULL, on both success or on failure. * * @return - * F_none on success. + * F_okay on success. * F_stream_not if file.stream is NULL. * * F_access_denied (with error bit) on access denied. @@ -59,7 +59,7 @@ extern "C" { * The file.id is updated with the file descriptor, if necessary and able. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_stream_not if file.stream is NULL. * F_file_descriptor_not if file.id is -1. * @@ -88,7 +88,7 @@ extern "C" { * The file to lock. * * @return - * F_none on success. + * F_okay on success. * F_stream_not if file.stream is NULL. * * @see flockfile() @@ -106,7 +106,7 @@ extern "C" { * The file to lock. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but the file.stream is already locked. * F_stream_not if file.stream is NULL. * @@ -145,7 +145,7 @@ extern "C" { * The file.id is updated with the file descriptor, if necessary and able. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_data_not if both path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -185,7 +185,7 @@ extern "C" { * The file with a valid file descriptor (file.id). * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_file_descriptor_not if file.id is -1. * * F_access_denied (with error bit) on access denied. @@ -223,7 +223,7 @@ extern "C" { * The contents of the file is appended into this buffer. * * @return - * F_none_eof on success and EOF was reached. + * F_okay_eof on success and EOF was reached. * F_stream_not if file.stream is NULL. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. @@ -259,8 +259,8 @@ extern "C" { * The contents of the file is appended into this buffer. * * @return - * F_none on success. - * F_none_eof on success and EOF was reached. + * F_okay on success. + * F_okay_eof on success and EOF was reached. * F_stream_not if file.stream is NULL. * * F_error (with error bit) if the file is already in the error state at the start of this function. @@ -297,8 +297,8 @@ extern "C" { * The buffer the file is being read into. * * @return - * F_none_eof on success and EOF was reached. - * F_none_stop on success and total was reached. + * F_okay_eof on success and EOF was reached. + * F_okay_stop on success and total was reached. * F_data_not if total is 0. * F_stream_not if file.stream is NULL. * @@ -340,7 +340,7 @@ extern "C" { * The file.stream is updated, if necessary. * * @return - * F_none is returned on success. + * F_okay is returned on success. * F_data_not if both path.used and mode.used are 0. * * F_access_denied (with error bit) on access denied. @@ -376,7 +376,7 @@ extern "C" { * The file to unlock. * * @return - * F_none on success. + * F_okay on success. * F_stream_not if file.stream is NULL. * * @see funlockfile() @@ -399,9 +399,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_eof when the file stream is at the end of the file. - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eof when the file stream is at the end of the file. + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_data_not on success but buffer.used is 0. * F_stream_not if file.stream is NULL. * @@ -435,9 +435,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_eof when the file stream is at the end of the file. - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eof when the file stream is at the end of the file. + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_data_not on success but buffer.used is 0. * F_stream_not if file.stream is NULL. * @@ -471,10 +471,10 @@ extern "C" { * Set to NULL to not use.. * * @return - * F_none on success. - * F_none_eof when the file stream is at the end of the file. - * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eof when the file stream is at the end of the file. + * F_okay_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_data_not on success but either buffer.used or total is 0. * F_stream_not if file.stream is NULL. * @@ -507,9 +507,9 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). - * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). + * F_okay on success. + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). * F_stream_not if file.stream is NULL. * * F_file_write (with error bit) on error during file write. diff --git a/level_0/f_file/c/private-file.c b/level_0/f_file/c/private-file.c index e69ccaf..815dea4 100644 --- a/level_0/f_file/c/private-file.c +++ b/level_0/f_file/c/private-file.c @@ -26,7 +26,7 @@ extern "C" { *id = -1; - return F_none; + return F_okay; } #endif // !defined(_di_f_file_clone_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_create_) || !defined(_di_f_file_create_at_) || !defined(_di_f_file_stream_close_) @@ -80,7 +80,7 @@ extern "C" { if (size_read < 0) return F_status_set_error(F_file_read); - return F_none; + return F_okay; } #endif // !defined(_di_f_file_copy_) || !defined(_di_f_file_clone_) @@ -105,7 +105,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_) || !defined(_di_f_file_copy_) @@ -130,7 +130,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_at_) @@ -156,7 +156,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_copy_) @@ -177,7 +177,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_fifo_) || !defined(_di_f_file_copy_) @@ -203,7 +203,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_device_) || !defined(_di_f_file_create_node_) || !defined(_di_f_file_copy_) @@ -230,7 +230,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_device_at_) || !defined(_di_f_file_create_node_at_) @@ -248,7 +248,7 @@ extern "C" { return F_status_set_error(F_file_synchronize); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_clone_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_create_) || !defined(_di_f_file_create_at_) || !defined(_di_f_file_stream_close_) @@ -276,7 +276,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_link_) || !defined(_di_f_file_copy_) @@ -305,7 +305,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_link_at_) @@ -338,7 +338,7 @@ extern "C" { status = f_string_dynamic_terminate_after(target); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_) @@ -372,7 +372,7 @@ extern "C" { status = f_string_dynamic_terminate_after(target); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_file_link_read_at_) @@ -394,7 +394,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_mode_set_) || !defined(_di_f_file_copy_) @@ -427,7 +427,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_open_) || !defined(_di_f_file_copy_) @@ -461,7 +461,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_create_at_) || !defined(_di_f_file_open_at_) @@ -510,7 +510,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_role_change_) || !defined(_di_f_file_copy_) @@ -550,7 +550,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_role_change_at_) @@ -571,7 +571,7 @@ extern "C" { return F_status_set_error(F_file_stat); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_clone_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_exists_) || !defined(_di_f_file_group_read_) || !defined(_di_f_file_is_) || !defined(_di_f_file_link_read_) || !defined(_di_f_file_mode_read_) || !defined(_di_f_file_owner_read_) || !defined(_di_f_file_size_) || !defined(_di_f_file_stat_) || !defined(_di_f_file_touch_) || !defined(_di_f_file_type_) @@ -593,7 +593,7 @@ extern "C" { return F_status_set_error(F_file_stat); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_exists_at_) || !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_mode_read_at_) || !defined(_di_f_file_size_at_) || !defined(_di_f_file_stat_at_) || !defined(_di_f_file_touch_at_) || !defined(_di_f_file_type_at_) @@ -615,7 +615,7 @@ extern "C" { return F_status_set_error(F_file_stat); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_) @@ -688,13 +688,13 @@ extern "C" { if (!size_write) { funlockfile(file.stream); - return F_none_stop; + return F_okay_stop; } } // while funlockfile(file.stream); - return F_none; + return F_okay; } #endif // !defined(_di_f_file_stream_write_) || !defined(_di_f_file_stream_write_block_) || !defined(_di_f_file_stream_write_until) || !defined(_di_f_file_stream_write_range) @@ -722,7 +722,7 @@ extern "C" { } // while if (!size_write) { - return F_none_stop; + return F_okay_stop; } if (size_write < 0) { @@ -737,7 +737,7 @@ extern "C" { return F_status_set_error(F_file_write); } - return F_none; + return F_okay; } #endif // !defined(_di_f_file_write_) || !defined(_di_f_file_write_block_) || !defined(_di_f_file_write_until) || !defined(_di_f_file_write_range) diff --git a/level_0/f_file/c/private-file.h b/level_0/f_file/c/private-file.h index cb4df82..8ebba9c 100644 --- a/level_0/f_file/c/private-file.h +++ b/level_0/f_file/c/private-file.h @@ -25,7 +25,7 @@ extern "C" { * The file descriptor gets set to -1. * * @return - * F_none on success. + * F_okay on success. * * F_file_close (with error bit) if fclose() failed for any other reason. * F_file_descriptor (with error bit) if file descriptor is invalid. @@ -70,7 +70,7 @@ extern "C" { * If FALSE, will not fail if file already exists (existing file will be replaced). * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_busy (with error bit) if file system is too busy to perform write. @@ -119,7 +119,7 @@ extern "C" { * If FALSE, will not fail if file already exists. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_busy (with error bit) if file system is too busy to perform write. @@ -167,7 +167,7 @@ extern "C" { * If FALSE, will not fail if file already exists. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_busy (with error bit) if file system is too busy to perform write. @@ -205,7 +205,7 @@ extern "C" { * The directory mode to use when creating. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -242,7 +242,7 @@ extern "C" { * The file mode to assign. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. @@ -283,7 +283,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. @@ -327,7 +327,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. @@ -361,7 +361,7 @@ extern "C" { * The file to flush. * * @return - * F_none is returned on success. + * F_okay is returned on success. * * F_file_descriptor (with error bit) if file descriptor is invalid. * F_filesystem_quota_block (with error bit) if file system's disk blocks or inodes are exhausted. @@ -396,7 +396,7 @@ extern "C" { * A path to the link that does the pointing. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -437,7 +437,7 @@ extern "C" { * A path to the link that does the pointing. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_busy (with error bit) if file system is too busy to perform write. @@ -479,7 +479,7 @@ extern "C" { * Will be NULL terminated with the NULL at target.string[target.used]; * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -520,7 +520,7 @@ extern "C" { * Will be NULL terminated with the NULL at target.string[target.used]; * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -556,7 +556,7 @@ extern "C" { * The new mode to use. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_mode (with error bit) if the current user does not have access to assign the file mode. @@ -593,7 +593,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none on success. + * F_okay on success. * * F_file_descriptor (with error bit) if unable to load the file descriptor (the file pointer may still be valid). * F_file_found_not (with error bit) if the file was not found. @@ -625,7 +625,7 @@ extern "C" { * This will be updated with the file descriptor. * * @return - * F_none on success. + * F_okay on success. * * F_directory_descriptor (with error bit) for bad directory descriptor for at_id. * F_file_found_not (with error bit) if the file was not found. @@ -657,7 +657,7 @@ extern "C" { * Set to FALSE to operate on the symlink itself. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_group (with error bit) if the current user does not have access to assign the specified group. @@ -700,7 +700,7 @@ extern "C" { * Any valid flag, such as F_file_at_path_empty_d, F_file_at_automount_no_d, or F_file_at_symlink_follow_no_d. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_group (with error bit) if the current user does not have access to assign the specified group. @@ -739,7 +739,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. @@ -785,7 +785,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. @@ -821,7 +821,7 @@ extern "C" { * The statistics read. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. @@ -875,8 +875,8 @@ extern "C" { * The total bytes to written. * * @return - * F_none on success. - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * * F_file_write (with error bit) on error during file write. * F_parameter (with error bit) if a parameter is invalid. @@ -909,8 +909,8 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. diff --git a/level_0/f_file/tests/unit/c/test-file-clone.c b/level_0/f_file/tests/unit/c/test-file-clone.c index 9be3da6..89bc065 100644 --- a/level_0/f_file/tests/unit/c/test-file-clone.c +++ b/level_0/f_file/tests/unit/c/test-file-clone.c @@ -142,7 +142,7 @@ void test__f_file_clone__fails_for_link(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -1112,7 +1112,7 @@ void test__f_file_clone__works_for_link(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1180,7 +1180,7 @@ void test__f_file_clone__works_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-close.c b/level_0/f_file/tests/unit/c/test-file-close.c index c9301c5..c068ada 100644 --- a/level_0/f_file/tests/unit/c/test-file-close.c +++ b/level_0/f_file/tests/unit/c/test-file-close.c @@ -78,7 +78,7 @@ void test__f_file_close__works(void **state) { const f_status_t status = f_file_close(&file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, -1); } } diff --git a/level_0/f_file/tests/unit/c/test-file-close_id.c b/level_0/f_file/tests/unit/c/test-file-close_id.c index 96b46b5..5cbcc04 100644 --- a/level_0/f_file/tests/unit/c/test-file-close_id.c +++ b/level_0/f_file/tests/unit/c/test-file-close_id.c @@ -78,7 +78,7 @@ void test__f_file_close_id__works(void **state) { const f_status_t status = f_file_close_id(&id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, -1); } } diff --git a/level_0/f_file/tests/unit/c/test-file-copy.c b/level_0/f_file/tests/unit/c/test-file-copy.c index 5d7b0e4..628c901 100644 --- a/level_0/f_file/tests/unit/c/test-file-copy.c +++ b/level_0/f_file/tests/unit/c/test-file-copy.c @@ -135,7 +135,7 @@ void test__f_file_copy__fails_for_block(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -197,7 +197,7 @@ void test__f_file_copy__fails_for_block(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -271,7 +271,7 @@ void test__f_file_copy__fails_for_character(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -333,7 +333,7 @@ void test__f_file_copy__fails_for_character(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -407,7 +407,7 @@ void test__f_file_copy__fails_for_directory(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -469,7 +469,7 @@ void test__f_file_copy__fails_for_directory(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -533,7 +533,7 @@ void test__f_file_copy__fails_for_fifo(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -595,7 +595,7 @@ void test__f_file_copy__fails_for_fifo(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -728,7 +728,7 @@ void test__f_file_copy__fails_for_link(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -1378,7 +1378,7 @@ void test__f_file_copy__fails_for_socket(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -1441,7 +1441,7 @@ void test__f_file_copy__fails_for_socket(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); if (statuss[i] == F_file_found) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -1499,7 +1499,7 @@ void test__f_file_copy__works_for_block(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1528,7 +1528,7 @@ void test__f_file_copy__works_for_character(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1557,7 +1557,7 @@ void test__f_file_copy__works_for_directory(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1586,7 +1586,7 @@ void test__f_file_copy__works_for_fifo(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1620,7 +1620,7 @@ void test__f_file_copy__works_for_link(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1690,7 +1690,7 @@ void test__f_file_copy__works_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -1719,7 +1719,7 @@ void test__f_file_copy__works_for_socket(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-create.c b/level_0/f_file/tests/unit/c/test-file-create.c index ec6d6b3..02716ba 100644 --- a/level_0/f_file/tests/unit/c/test-file-create.c +++ b/level_0/f_file/tests/unit/c/test-file-create.c @@ -131,7 +131,7 @@ void test__f_file_create__works(void **state) { const f_status_t status = f_file_create(path, 0, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_at.c b/level_0/f_file/tests/unit/c/test-file-create_at.c index d132528..9e29b13 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_at.c @@ -148,7 +148,7 @@ void test__f_file_create_at__works(void **state) { const f_status_t status = f_file_create_at(file, path, 0, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_device.c b/level_0/f_file/tests/unit/c/test-file-create_device.c index ea3c107..d713be0 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_device.c +++ b/level_0/f_file/tests/unit/c/test-file-create_device.c @@ -116,7 +116,7 @@ void test__f_file_create_device__works(void **state) { const f_status_t status = f_file_create_device(path, modes[i], 1, 1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_device_at.c b/level_0/f_file/tests/unit/c/test-file-create_device_at.c index ebea93d..78b5b64 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_device_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_device_at.c @@ -134,7 +134,7 @@ void test__f_file_create_device_at__works(void **state) { const f_status_t status = f_file_create_device_at(file, path, modes[i], 1, 1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_fifo.c b/level_0/f_file/tests/unit/c/test-file-create_fifo.c index d4425af..1837bad 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_fifo.c +++ b/level_0/f_file/tests/unit/c/test-file-create_fifo.c @@ -68,7 +68,7 @@ void test__f_file_create_fifo__works(void **state) { const f_status_t status = f_file_create_fifo(path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c b/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c index 968dbe9..a0e5087 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c @@ -85,7 +85,7 @@ void test__f_file_create_fifo_at__works(void **state) { const f_status_t status = f_file_create_fifo_at(file, path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create_node.c b/level_0/f_file/tests/unit/c/test-file-create_node.c index e468e02..8c7084b 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_node.c +++ b/level_0/f_file/tests/unit/c/test-file-create_node.c @@ -116,7 +116,7 @@ void test__f_file_create_node__works(void **state) { const f_status_t status = f_file_create_node(path, modes[i], 1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_node_at.c b/level_0/f_file/tests/unit/c/test-file-create_node_at.c index 6fdafcc..2a2c87e 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_node_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_node_at.c @@ -134,7 +134,7 @@ void test__f_file_create_node_at__works(void **state) { const f_status_t status = f_file_create_node_at(file, path, modes[i], 1); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-descriptor.c b/level_0/f_file/tests/unit/c/test-file-descriptor.c index 75ba142..da44fdd 100644 --- a/level_0/f_file/tests/unit/c/test-file-descriptor.c +++ b/level_0/f_file/tests/unit/c/test-file-descriptor.c @@ -47,7 +47,7 @@ void test__f_file_descriptor__works(void **state) { const f_status_t status = f_file_descriptor(&file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, F_type_descriptor_output_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-flush.c b/level_0/f_file/tests/unit/c/test-file-flush.c index 3af536d..7346b18 100644 --- a/level_0/f_file/tests/unit/c/test-file-flush.c +++ b/level_0/f_file/tests/unit/c/test-file-flush.c @@ -61,7 +61,7 @@ void test__f_file_flush__works(void **state) { const f_status_t status = f_file_flush(file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-group_read.c b/level_0/f_file/tests/unit/c/test-file-group_read.c index 801a791..b9fed65 100644 --- a/level_0/f_file/tests/unit/c/test-file-group_read.c +++ b/level_0/f_file/tests/unit/c/test-file-group_read.c @@ -85,7 +85,7 @@ void test__f_file_group_read__works(void **state) { const f_status_t status = f_file_group_read(path, F_true, &id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, 5); } } diff --git a/level_0/f_file/tests/unit/c/test-file-link.c b/level_0/f_file/tests/unit/c/test-file-link.c index 67b0e9e..1f4caba 100644 --- a/level_0/f_file/tests/unit/c/test-file-link.c +++ b/level_0/f_file/tests/unit/c/test-file-link.c @@ -95,7 +95,7 @@ void test__f_file_link__works(void **state) { const f_status_t status = f_file_link(path, path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-link_at.c b/level_0/f_file/tests/unit/c/test-file-link_at.c index 0ad7ff9..9f26764 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_at.c @@ -112,7 +112,7 @@ void test__f_file_link_at__works(void **state) { const f_status_t status = f_file_link_at(file, path, path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-link_hard.c b/level_0/f_file/tests/unit/c/test-file-link_hard.c index 22c8469..762cc52 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_hard.c +++ b/level_0/f_file/tests/unit/c/test-file-link_hard.c @@ -95,7 +95,7 @@ void test__f_file_link_hard__works(void **state) { const f_status_t status = f_file_link_hard(path, path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c index c954026..28eb691 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c @@ -125,7 +125,7 @@ void test__f_file_link_hard_at__works(void **state) { const f_status_t status = f_file_link_hard_at(target, point, path, path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-link_read.c b/level_0/f_file/tests/unit/c/test-file-link_read.c index 6f5ec1c..2afccd2 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_read.c +++ b/level_0/f_file/tests/unit/c/test-file-link_read.c @@ -124,7 +124,7 @@ void test__f_file_link_read__works(void **state) { const f_status_t status = f_file_link_read(path, F_true, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-link_read_at.c b/level_0/f_file/tests/unit/c/test-file-link_read_at.c index ec9a670..c0941e3 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_read_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_read_at.c @@ -131,7 +131,7 @@ void test__f_file_link_read_at__works(void **state) { const f_status_t status = f_file_link_read_at(file, path, 0, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-manipulate.c b/level_0/f_file/tests/unit/c/test-file-manipulate.c index 0b09ce1..7b6b7a7 100644 --- a/level_0/f_file/tests/unit/c/test-file-manipulate.c +++ b/level_0/f_file/tests/unit/c/test-file-manipulate.c @@ -75,7 +75,7 @@ void test__f_file_manipulate__works(void **state) { const f_status_t status = f_file_manipulate(file, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_determine.c b/level_0/f_file/tests/unit/c/test-file-mode_determine.c index cc9fe40..57e188e 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_determine.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_determine.c @@ -72,7 +72,7 @@ void test__f_file_mode_determine__works_basic(void **state) { const f_status_t status = f_file_mode_determine(existing, changes[i], 0, F_false, &changed); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(changed, changeds[i]); } // for } @@ -128,7 +128,7 @@ void test__f_file_mode_determine__works_basic(void **state) { const f_status_t status = f_file_mode_determine(existing, changes[i], 0, F_true, &changed); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(changed, changeds[i]); } // for } @@ -189,7 +189,7 @@ void test__f_file_mode_determine__works_basic_replace(void **state) { const f_status_t status = f_file_mode_determine(existing, changes[i], F_file_mode_t_replace_all_d, F_false, &changed); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(changed, changeds[i]); } // for } @@ -245,7 +245,7 @@ void test__f_file_mode_determine__works_basic_replace(void **state) { const f_status_t status = f_file_mode_determine(existing, changes[i], F_file_mode_t_replace_all_d, F_true, &changed); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(changed, changeds[i]); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_from_string.c b/level_0/f_file/tests/unit/c/test-file-mode_from_string.c index fe04aec..afb0e89 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_from_string.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_from_string.c @@ -1923,7 +1923,7 @@ void test__f_file_mode_from_string__works_basic_alphabet(void **state) { const f_status_t status = f_file_mode_from_string(codes[i], 0, &mode, &replace); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, modes[i]); assert_int_equal(replace, replaces[i]); } // for @@ -2475,7 +2475,7 @@ void test__f_file_mode_from_string__works_basic_digit(void **state) { const f_status_t status = f_file_mode_from_string(codes[i], 0, &mode, &replace); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, modes[i]); assert_int_equal(replace, replaces[i]); } // for diff --git a/level_0/f_file/tests/unit/c/test-file-mode_read.c b/level_0/f_file/tests/unit/c/test-file-mode_read.c index 3f07c91..1406555 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_read.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_read.c @@ -87,7 +87,7 @@ void test__f_file_mode_read__works(void **state) { const f_status_t status = f_file_mode_read(path, F_false, &mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, statistics.st_mode); } @@ -102,7 +102,7 @@ void test__f_file_mode_read__works(void **state) { const f_status_t status = f_file_mode_read(path, F_true, &mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, statistics.st_mode); } } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_read_at.c b/level_0/f_file/tests/unit/c/test-file-mode_read_at.c index 646ec00..654f42a 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_read_at.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_read_at.c @@ -107,7 +107,7 @@ void test__f_file_mode_read_at__works(void **state) { const f_status_t status = f_file_mode_read_at(file, path, 0, &mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, statistics.st_mode); } } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_set.c b/level_0/f_file/tests/unit/c/test-file-mode_set.c index 7d62b41..c59721a 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_set.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_set.c @@ -73,7 +73,7 @@ void test__f_file_mode_set__works(void **state) { const f_status_t status = f_file_mode_set(path, mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_set_at.c b/level_0/f_file/tests/unit/c/test-file-mode_set_at.c index 6c5da7a..2dc659b 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_set_at.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_set_at.c @@ -90,7 +90,7 @@ void test__f_file_mode_set_at__works(void **state) { const f_status_t status = f_file_mode_set_at(file, path, mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c b/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c index 46ece8b..fd4e2d3 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c @@ -86,7 +86,7 @@ void test__f_file_mode_to_mode__works(void **state) { const f_status_t status = f_file_mode_to_mode(file_modes[i], &mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, modes[i]); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-name_base.c b/level_0/f_file/tests/unit/c/test-file-name_base.c index cd9a1ff..b398be1 100644 --- a/level_0/f_file/tests/unit/c/test-file-name_base.c +++ b/level_0/f_file/tests/unit/c/test-file-name_base.c @@ -67,7 +67,7 @@ void test__f_file_name_base__works(void **state) { const f_status_t status = f_file_name_base(paths[i], &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(buffer.used, bases[i].used); assert_string_equal(buffer.string, bases[i].string); } // for diff --git a/level_0/f_file/tests/unit/c/test-file-name_directory.c b/level_0/f_file/tests/unit/c/test-file-name_directory.c index 25e9c4a..68c9820 100644 --- a/level_0/f_file/tests/unit/c/test-file-name_directory.c +++ b/level_0/f_file/tests/unit/c/test-file-name_directory.c @@ -67,7 +67,7 @@ void test__f_file_name_directory__works(void **state) { const f_status_t status = f_file_name_directory(paths[i], &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(buffer.used, bases[i].used); assert_string_equal(buffer.string, bases[i].string); } // for diff --git a/level_0/f_file/tests/unit/c/test-file-open.c b/level_0/f_file/tests/unit/c/test-file-open.c index 5ca28b5..7fa259a 100644 --- a/level_0/f_file/tests/unit/c/test-file-open.c +++ b/level_0/f_file/tests/unit/c/test-file-open.c @@ -104,7 +104,7 @@ void test__f_file_open__works(void **state) { const f_status_t status = f_file_open(path, 0, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, 5); } } diff --git a/level_0/f_file/tests/unit/c/test-file-open_at.c b/level_0/f_file/tests/unit/c/test-file-open_at.c index c9434de..2650672 100644 --- a/level_0/f_file/tests/unit/c/test-file-open_at.c +++ b/level_0/f_file/tests/unit/c/test-file-open_at.c @@ -117,7 +117,7 @@ void test__f_file_open_at__works(void **state) { const f_status_t status = f_file_open_at(file, path, F_false, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, 5); } } diff --git a/level_0/f_file/tests/unit/c/test-file-owner_read.c b/level_0/f_file/tests/unit/c/test-file-owner_read.c index b412953..64f3467 100644 --- a/level_0/f_file/tests/unit/c/test-file-owner_read.c +++ b/level_0/f_file/tests/unit/c/test-file-owner_read.c @@ -85,7 +85,7 @@ void test__f_file_owner_read__works(void **state) { const f_status_t status = f_file_owner_read(path, F_true, &id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(id, 5); } } diff --git a/level_0/f_file/tests/unit/c/test-file-poll.c b/level_0/f_file/tests/unit/c/test-file-poll.c index 60c72d9..cb45218 100644 --- a/level_0/f_file/tests/unit/c/test-file-poll.c +++ b/level_0/f_file/tests/unit/c/test-file-poll.c @@ -66,7 +66,7 @@ void test__f_file_poll__works(void **state) { const f_status_t status = f_file_poll(polls, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(poll.fd, fd); assert_int_equal(poll.events, total); assert_int_equal(poll.revents, revents); diff --git a/level_0/f_file/tests/unit/c/test-file-read.c b/level_0/f_file/tests/unit/c/test-file-read.c index c5d16b1..a5e1afe 100644 --- a/level_0/f_file/tests/unit/c/test-file-read.c +++ b/level_0/f_file/tests/unit/c/test-file-read.c @@ -125,7 +125,7 @@ void test__f_file_read__works(void **state) { f_string_dynamic_increase_by(1, &buffer); buffer.string[buffer.used] = 0; - assert_int_equal(status, F_none_eof); + assert_int_equal(status, F_okay_eof); assert_int_equal(buffer.used, 6); assert_string_equal(buffer.string, "abcdef"); } diff --git a/level_0/f_file/tests/unit/c/test-file-read_block.c b/level_0/f_file/tests/unit/c/test-file-read_block.c index 0d837af..627bec2 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_block.c +++ b/level_0/f_file/tests/unit/c/test-file-read_block.c @@ -115,7 +115,7 @@ void test__f_file_read_block__works(void **state) { f_string_dynamic_increase_by(1, &buffer); buffer.string[buffer.used] = 0; - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(buffer.used, 4); assert_string_equal(buffer.string, "abcd"); } @@ -128,7 +128,7 @@ void test__f_file_read_block__works(void **state) { const f_status_t status = f_file_read_block(file, &buffer); - assert_int_equal(status, F_none_eof); + assert_int_equal(status, F_okay_eof); assert_int_equal(buffer.used, 4); assert_string_equal(buffer.string, "abcd"); } diff --git a/level_0/f_file/tests/unit/c/test-file-read_until.c b/level_0/f_file/tests/unit/c/test-file-read_until.c index 909b1a0..3599c59 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_until.c +++ b/level_0/f_file/tests/unit/c/test-file-read_until.c @@ -120,7 +120,7 @@ void test__f_file_read_until__works(void **state) { f_string_dynamic_increase_by(1, &buffer); buffer.string[buffer.used] = 0; - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(buffer.used, 6); assert_string_equal(buffer.string, "abcdef"); } @@ -144,7 +144,7 @@ void test__f_file_read_until__works(void **state) { f_string_dynamic_increase_by(1, &buffer); buffer.string[buffer.used] = 0; - assert_int_equal(status, F_none_eof); + assert_int_equal(status, F_okay_eof); assert_int_equal(buffer.used, 4); assert_string_equal(buffer.string, "abcd"); } diff --git a/level_0/f_file/tests/unit/c/test-file-remove.c b/level_0/f_file/tests/unit/c/test-file-remove.c index 283f7a5..498899a 100644 --- a/level_0/f_file/tests/unit/c/test-file-remove.c +++ b/level_0/f_file/tests/unit/c/test-file-remove.c @@ -73,7 +73,7 @@ void test__f_file_remove__works(void **state) { const f_status_t status = f_file_remove(path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-remove_at.c b/level_0/f_file/tests/unit/c/test-file-remove_at.c index 7ba4cbe..0a5c6bc 100644 --- a/level_0/f_file/tests/unit/c/test-file-remove_at.c +++ b/level_0/f_file/tests/unit/c/test-file-remove_at.c @@ -90,7 +90,7 @@ void test__f_file_remove_at__works(void **state) { const f_status_t status = f_file_remove_at(file, path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-rename.c b/level_0/f_file/tests/unit/c/test-file-rename.c index fa133b4..2bfa4f0 100644 --- a/level_0/f_file/tests/unit/c/test-file-rename.c +++ b/level_0/f_file/tests/unit/c/test-file-rename.c @@ -99,7 +99,7 @@ void test__f_file_rename__works(void **state) { const f_status_t status = f_file_rename(path, path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-rename_at.c b/level_0/f_file/tests/unit/c/test-file-rename_at.c index 798b3b2..8851220 100644 --- a/level_0/f_file/tests/unit/c/test-file-rename_at.c +++ b/level_0/f_file/tests/unit/c/test-file-rename_at.c @@ -139,7 +139,7 @@ void test__f_file_rename_at__works(void **state) { const f_status_t status = f_file_rename_at(source, destination, path, path, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-role_change.c b/level_0/f_file/tests/unit/c/test-file-role_change.c index ec75524..eeec7fe 100644 --- a/level_0/f_file/tests/unit/c/test-file-role_change.c +++ b/level_0/f_file/tests/unit/c/test-file-role_change.c @@ -221,7 +221,7 @@ void test__f_file_role_change__works_for_dereference(void **state) { const f_status_t status = f_file_role_change(path, 0, 0, F_true); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -230,7 +230,7 @@ void test__f_file_role_change__works_for_dereference(void **state) { const f_status_t status = f_file_role_change(path, -1, 0, F_true); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -239,7 +239,7 @@ void test__f_file_role_change__works_for_dereference(void **state) { const f_status_t status = f_file_role_change(path, 0, -1, F_true); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -256,7 +256,7 @@ void test__f_file_role_change__works_for_reference(void **state) { const f_status_t status = f_file_role_change(path, 0, 0, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -265,7 +265,7 @@ void test__f_file_role_change__works_for_reference(void **state) { const f_status_t status = f_file_role_change(path, -1, 0, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -274,7 +274,7 @@ void test__f_file_role_change__works_for_reference(void **state) { const f_status_t status = f_file_role_change(path, 0, -1, F_false); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-role_change_at.c b/level_0/f_file/tests/unit/c/test-file-role_change_at.c index ca80f89..999ef92 100644 --- a/level_0/f_file/tests/unit/c/test-file-role_change_at.c +++ b/level_0/f_file/tests/unit/c/test-file-role_change_at.c @@ -243,7 +243,7 @@ void test__f_file_role_change_at__works_for_dereference(void **state) { const f_status_t status = f_file_role_change_at(file, path, 0, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -252,7 +252,7 @@ void test__f_file_role_change_at__works_for_dereference(void **state) { const f_status_t status = f_file_role_change_at(file, path, -1, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -261,7 +261,7 @@ void test__f_file_role_change_at__works_for_dereference(void **state) { const f_status_t status = f_file_role_change_at(file, path, 0, -1, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -279,7 +279,7 @@ void test__f_file_role_change_at__works_for_reference(void **state) { const f_status_t status = f_file_role_change_at(file, path, 0, 0, F_file_at_symlink_follow_no_d); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -288,7 +288,7 @@ void test__f_file_role_change_at__works_for_reference(void **state) { const f_status_t status = f_file_role_change_at(file, path, -1, 0, F_file_at_symlink_follow_no_d); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -297,7 +297,7 @@ void test__f_file_role_change_at__works_for_reference(void **state) { const f_status_t status = f_file_role_change_at(file, path, 0, -1, F_file_at_symlink_follow_no_d); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-seek.c b/level_0/f_file/tests/unit/c/test-file-seek.c index ef361f2..ca85c02 100644 --- a/level_0/f_file/tests/unit/c/test-file-seek.c +++ b/level_0/f_file/tests/unit/c/test-file-seek.c @@ -89,7 +89,7 @@ void test__f_file_seek__works(void **state) { const f_status_t status = f_file_seek(file, 0, 0, &seeked); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-select.c b/level_0/f_file/tests/unit/c/test-file-select.c index 737c9c4..fc05d12 100644 --- a/level_0/f_file/tests/unit/c/test-file-select.c +++ b/level_0/f_file/tests/unit/c/test-file-select.c @@ -179,7 +179,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, &write, &except, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -188,7 +188,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, &write, 0, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -197,7 +197,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, 0, &except, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -206,7 +206,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, &write, &except, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -215,7 +215,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, 0, 0, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -224,7 +224,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, &write, 0, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -233,7 +233,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, 0, &except, &timeout); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -242,7 +242,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, &write, &except, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -251,7 +251,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, &write, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -260,7 +260,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, 0, &except, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -269,7 +269,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, &write, &except, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -278,7 +278,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, &read, 0, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -287,7 +287,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, &write, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -296,7 +296,7 @@ void test__f_file_select__works(void **state) { const f_status_t status = f_file_select(1, 0, 0, &except, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-select_signal.c b/level_0/f_file/tests/unit/c/test-file-select_signal.c index bd5da91..60d59a1 100644 --- a/level_0/f_file/tests/unit/c/test-file-select_signal.c +++ b/level_0/f_file/tests/unit/c/test-file-select_signal.c @@ -243,7 +243,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, &except, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -252,7 +252,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -261,7 +261,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -270,7 +270,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, 0, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -279,7 +279,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, &except, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -288,7 +288,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, &except, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -297,7 +297,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, 0, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -306,7 +306,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -315,7 +315,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -324,7 +324,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, 0, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -333,7 +333,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -342,7 +342,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -351,7 +351,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, &except, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -360,7 +360,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &read, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -369,7 +369,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &read, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -378,7 +378,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, 0, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -387,7 +387,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, &write, 0, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -396,7 +396,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -405,7 +405,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -414,7 +414,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -423,7 +423,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -432,7 +432,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, 0, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -441,7 +441,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, 0, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -450,7 +450,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, &except, 0, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -459,7 +459,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, 0, &timeout, &signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -468,7 +468,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, 0, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -477,7 +477,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, 0, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -486,7 +486,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, &except, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -495,7 +495,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, 0, &timeout, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -504,7 +504,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, 0, &except, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -513,7 +513,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, 0, &write, 0, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -522,7 +522,7 @@ void test__f_file_select_signal__works(void **state) { const f_status_t status = f_file_select_signal(1, &read, 0, 0, 0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-size.c b/level_0/f_file/tests/unit/c/test-file-size.c index 2e02de6..bb2f717 100644 --- a/level_0/f_file/tests/unit/c/test-file-size.c +++ b/level_0/f_file/tests/unit/c/test-file-size.c @@ -88,7 +88,7 @@ void test__f_file_size__works(void **state) { const f_status_t status = f_file_size(path, F_true, &size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, statistics.st_size); } } diff --git a/level_0/f_file/tests/unit/c/test-file-size_at.c b/level_0/f_file/tests/unit/c/test-file-size_at.c index 2346e87..7f30c80 100644 --- a/level_0/f_file/tests/unit/c/test-file-size_at.c +++ b/level_0/f_file/tests/unit/c/test-file-size_at.c @@ -109,7 +109,7 @@ void test__f_file_size_at__works(void **state) { const f_status_t status = f_file_size_at(file, path, F_false, &size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, statistics.st_size); } @@ -125,7 +125,7 @@ void test__f_file_size_at__works(void **state) { const f_status_t status = f_file_size_at(file, path, F_true, &size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, statistics.st_size); } } diff --git a/level_0/f_file/tests/unit/c/test-file-size_by_id.c b/level_0/f_file/tests/unit/c/test-file-size_by_id.c index 1929b22..be6523c 100644 --- a/level_0/f_file/tests/unit/c/test-file-size_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-size_by_id.c @@ -94,7 +94,7 @@ void test__f_file_size_by_id__works(void **state) { const f_status_t status = f_file_size_by_id(file, &size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(size, statistics.st_size); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stat.c b/level_0/f_file/tests/unit/c/test-file-stat.c index 6e58bd6..c46f687 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat.c +++ b/level_0/f_file/tests/unit/c/test-file-stat.c @@ -94,7 +94,7 @@ void test__f_file_stat__works(void **state) { const f_status_t status = f_file_stat(path, F_true, &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result.st_mode, statistics.st_mode); assert_int_equal(result.st_size, statistics.st_size); } diff --git a/level_0/f_file/tests/unit/c/test-file-stat_at.c b/level_0/f_file/tests/unit/c/test-file-stat_at.c index a81881f..a5add47 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat_at.c +++ b/level_0/f_file/tests/unit/c/test-file-stat_at.c @@ -117,7 +117,7 @@ void test__f_file_stat_at__works(void **state) { const f_status_t status = f_file_stat_at(file, path, F_false, &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result.st_mode, statistics.st_mode); assert_int_equal(result.st_size, statistics.st_size); } @@ -136,7 +136,7 @@ void test__f_file_stat_at__works(void **state) { const f_status_t status = f_file_stat_at(file, path, F_true, &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result.st_mode, statistics.st_mode); assert_int_equal(result.st_size, statistics.st_size); } diff --git a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c index 6eaa98f..99b9875 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c @@ -100,7 +100,7 @@ void test__f_file_stat_by_id__works(void **state) { const f_status_t status = f_file_stat_by_id(file, &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result.st_mode, statistics.st_mode); assert_int_equal(result.st_size, statistics.st_size); } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_close.c b/level_0/f_file/tests/unit/c/test-file-stream_close.c index c54460f..ca575f2 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_close.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_close.c @@ -98,7 +98,7 @@ void test__f_file_stream_close__works(void **state) { const f_status_t status = f_file_stream_close(&file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.stream, 0); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_open.c b/level_0/f_file/tests/unit/c/test-file-stream_open.c index fe869a4..679955e 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_open.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_open.c @@ -116,7 +116,7 @@ void test__f_file_stream_open__works(void **state) { const f_status_t status = f_file_stream_open(path, path, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.stream, F_type_output_d); } @@ -128,7 +128,7 @@ void test__f_file_stream_open__works(void **state) { const f_status_t status = f_file_stream_open(path, f_string_empty_s, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.stream, F_type_output_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c index aec5f0c..ff8f4c5 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c @@ -102,7 +102,7 @@ void test__f_file_stream_open_descriptor__works(void **state) { const f_status_t status = f_file_stream_open_descriptor(path, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, id); } @@ -114,7 +114,7 @@ void test__f_file_stream_open_descriptor__works(void **state) { const f_status_t status = f_file_stream_open_descriptor(f_string_empty_s, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.id, id); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read.c b/level_0/f_file/tests/unit/c/test-file-stream_read.c index 887a730..ba1734f 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read.c @@ -88,7 +88,7 @@ void test__f_file_stream_read__works(void **state) { const f_status_t status = f_file_stream_read(file, &buffer); - assert_int_equal(status, F_none_eof); + assert_int_equal(status, F_okay_eof); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read_block.c b/level_0/f_file/tests/unit/c/test-file-stream_read_block.c index 17c1cdf..88e6eaa 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read_block.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read_block.c @@ -84,7 +84,7 @@ void test__f_file_stream_read_block__works(void **state) { const f_status_t status = f_file_stream_read_block(file, &buffer); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read_until.c b/level_0/f_file/tests/unit/c/test-file-stream_read_until.c index ccab7b5..ec11414 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read_until.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read_until.c @@ -87,7 +87,7 @@ void test__f_file_stream_read_until__works(void **state) { const f_status_t status = f_file_stream_read_until(file, 1, &buffer); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c index 176b11f..300dc51 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c @@ -111,7 +111,7 @@ void test__f_file_stream_reopen__works(void **state) { const f_status_t status = f_file_stream_reopen(path, path, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.stream, F_type_input_d); } @@ -123,7 +123,7 @@ void test__f_file_stream_reopen__works(void **state) { const f_status_t status = f_file_stream_reopen(path, f_string_empty_s, &file); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(file.stream, F_type_input_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write.c b/level_0/f_file/tests/unit/c/test-file-stream_write.c index 6394e1c..e2e56e6 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write.c @@ -69,7 +69,7 @@ void test__f_file_stream_write__works(void **state) { const f_status_t status = f_file_stream_write(file, test, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_block.c b/level_0/f_file/tests/unit/c/test-file-stream_write_block.c index da7c9ba..e6e0c2a 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_block.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_block.c @@ -73,7 +73,7 @@ void test__f_file_stream_write_block__works(void **state) { f_status_t status = f_file_stream_write_block(file, test, &written); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(written, file.size_write); // The letter 'e'. @@ -83,7 +83,7 @@ void test__f_file_stream_write_block__works(void **state) { status = f_file_stream_write_block(file, test, &written); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(written, file.size_write); // The letter 's'. @@ -93,7 +93,7 @@ void test__f_file_stream_write_block__works(void **state) { status = f_file_stream_write_block(file, test, &written); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(written, file.size_write); // The letter 't'. @@ -103,7 +103,7 @@ void test__f_file_stream_write_block__works(void **state) { status = f_file_stream_write_block(file, test, &written); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(written, file.size_write); } @@ -117,7 +117,7 @@ void test__f_file_stream_write_block__works(void **state) { const f_status_t status = f_file_stream_write_block(file, test, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_range.c b/level_0/f_file/tests/unit/c/test-file-stream_write_range.c index 9b29a09..4023087 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_range.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_range.c @@ -115,7 +115,7 @@ void test__f_file_stream_write_range__works(void **state) { const f_status_t status = f_file_stream_write_range(file, test, range, 0); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); } { @@ -128,7 +128,7 @@ void test__f_file_stream_write_range__works(void **state) { const f_status_t status = f_file_stream_write_range(file, test, range, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_until.c b/level_0/f_file/tests/unit/c/test-file-stream_write_until.c index a0e106a..cc58f63 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_until.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_until.c @@ -117,7 +117,7 @@ void test__f_file_stream_write_until__works(void **state) { const f_status_t status = f_file_stream_write_until(file, test, test.used, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } { @@ -130,7 +130,7 @@ void test__f_file_stream_write_until__works(void **state) { const f_status_t status = f_file_stream_write_until(file, test, test.used, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-touch.c b/level_0/f_file/tests/unit/c/test-file-touch.c index 3a2ac7e..f11c049 100644 --- a/level_0/f_file/tests/unit/c/test-file-touch.c +++ b/level_0/f_file/tests/unit/c/test-file-touch.c @@ -56,7 +56,7 @@ void test__f_file_touch__fails(void **state) { const f_status_t status = f_file_touch(path, mode, F_true); if (statuss[i] == F_file_found_not) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -149,7 +149,7 @@ void test__f_file_touch__works(void **state) { const f_status_t status = f_file_touch(path, mode, F_true); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-touch_at.c b/level_0/f_file/tests/unit/c/test-file-touch_at.c index 4c73c44..f5458e0 100644 --- a/level_0/f_file/tests/unit/c/test-file-touch_at.c +++ b/level_0/f_file/tests/unit/c/test-file-touch_at.c @@ -59,7 +59,7 @@ void test__f_file_touch_at__fails(void **state) { const f_status_t status = f_file_touch_at(file, path, mode, 0); if (statuss[i] == F_file_found_not) { - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } else { assert_int_equal(status, F_status_set_error(statuss[i])); @@ -166,7 +166,7 @@ void test__f_file_touch_at__works(void **state) { const f_status_t status = f_file_touch_at(file, path, mode, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-type.c b/level_0/f_file/tests/unit/c/test-file-type.c index 3b9f192..4bde3b8 100644 --- a/level_0/f_file/tests/unit/c/test-file-type.c +++ b/level_0/f_file/tests/unit/c/test-file-type.c @@ -87,7 +87,7 @@ void test__f_file_type__works(void **state) { const f_status_t status = f_file_type(path, F_false, &type); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(type, F_file_type_link_d); } @@ -102,7 +102,7 @@ void test__f_file_type__works(void **state) { const f_status_t status = f_file_type(path, F_true, &type); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(type, F_file_type_regular_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-type_at.c b/level_0/f_file/tests/unit/c/test-file-type_at.c index cca769a..123d7e4 100644 --- a/level_0/f_file/tests/unit/c/test-file-type_at.c +++ b/level_0/f_file/tests/unit/c/test-file-type_at.c @@ -106,7 +106,7 @@ void test__f_file_type_at__works(void **state) { const f_status_t status = f_file_type_at(file, path, 0, &type); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(type, F_file_type_link_d); } @@ -125,7 +125,7 @@ void test__f_file_type_at__works(void **state) { const f_status_t status = f_file_type_at(file, path, 0, &type); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(type, F_file_type_regular_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-umask_get.c b/level_0/f_file/tests/unit/c/test-file-umask_get.c index 77da3e8..ee98ad4 100644 --- a/level_0/f_file/tests/unit/c/test-file-umask_get.c +++ b/level_0/f_file/tests/unit/c/test-file-umask_get.c @@ -24,7 +24,7 @@ void test__f_file_umask_get__works(void **state) { const mode_t status = f_file_umask_get(&mode); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(mode, F_file_mode_all_rw_d); } } diff --git a/level_0/f_file/tests/unit/c/test-file-umask_set.c b/level_0/f_file/tests/unit/c/test-file-umask_set.c index 7fe792f..788bad0 100644 --- a/level_0/f_file/tests/unit/c/test-file-umask_set.c +++ b/level_0/f_file/tests/unit/c/test-file-umask_set.c @@ -12,7 +12,7 @@ void test__f_file_umask_set__works(void **state) { const mode_t status = f_file_umask_set(F_file_mode_all_rw_d); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_file/tests/unit/c/test-file-write.c b/level_0/f_file/tests/unit/c/test-file-write.c index f7d89ef..dfe280f 100644 --- a/level_0/f_file/tests/unit/c/test-file-write.c +++ b/level_0/f_file/tests/unit/c/test-file-write.c @@ -111,7 +111,7 @@ void test__f_file_write__works(void **state) { const f_status_t status = f_file_write(file, path, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } { @@ -127,7 +127,7 @@ void test__f_file_write__works(void **state) { const f_status_t status = f_file_write(file, path, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-write_block.c b/level_0/f_file/tests/unit/c/test-file-write_block.c index d875c3e..f784c33 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_block.c +++ b/level_0/f_file/tests/unit/c/test-file-write_block.c @@ -95,7 +95,7 @@ void test__f_file_write_block__works(void **state) { const f_status_t status = f_file_write_block(file, path, 0); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); } { @@ -108,7 +108,7 @@ void test__f_file_write_block__works(void **state) { const f_status_t status = f_file_write_block(file, path, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-write_range.c b/level_0/f_file/tests/unit/c/test-file-write_range.c index 4869706..0c17787 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_range.c +++ b/level_0/f_file/tests/unit/c/test-file-write_range.c @@ -142,7 +142,7 @@ void test__f_file_write_range__works(void **state) { const f_status_t status = f_file_write_range(file, path, range, 0); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); } { @@ -155,7 +155,7 @@ void test__f_file_write_range__works(void **state) { const f_status_t status = f_file_write_range(file, path, range, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_file/tests/unit/c/test-file-write_until.c b/level_0/f_file/tests/unit/c/test-file-write_until.c index 4861115..aff1746 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_until.c +++ b/level_0/f_file/tests/unit/c/test-file-write_until.c @@ -136,7 +136,7 @@ void test__f_file_write_until__works(void **state) { const f_status_t status = f_file_write_until(file, path, path.used, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } { @@ -149,7 +149,7 @@ void test__f_file_write_until__works(void **state) { const f_status_t status = f_file_write_until(file, path, path.used, 0); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); } } diff --git a/level_0/f_fss/c/fss.c b/level_0/f_fss/c/fss.c index cf861c6..3f5fc11 100644 --- a/level_0/f_fss/c/fss.c +++ b/level_0/f_fss/c/fss.c @@ -29,7 +29,7 @@ extern "C" { } } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_apply_delimit_ @@ -58,7 +58,7 @@ extern "C" { } } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_apply_delimit_range_ @@ -87,7 +87,7 @@ extern "C" { } } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_count_lines_ @@ -116,7 +116,7 @@ extern "C" { } } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_count_lines_range_ @@ -293,13 +293,13 @@ extern "C" { for (;; ++range->start) { if (range->start >= buffer.used) { - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -307,7 +307,7 @@ extern "C" { if (buffer.string[range->start] == f_fss_eol_s.string[0]) break; } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_seek_to_eol_ @@ -332,13 +332,13 @@ extern "C" { for (;; ++range->start) { if (range->start >= buffer.used) { - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -346,7 +346,7 @@ extern "C" { if (buffer.string[range->start] != f_fss_placeholder_s.string[0]) break; } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_skip_past_delimit_ @@ -396,7 +396,7 @@ extern "C" { } if (buffer.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_none_eol; + state->status = F_okay_eol; return; } @@ -455,19 +455,19 @@ extern "C" { range->start += width; if (range->start >= buffer.used) { - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; return; } } // for - state->status = F_none; + state->status = F_okay; } #endif // _di_f_fss_skip_past_space_ diff --git a/level_0/f_fss/c/fss.h b/level_0/f_fss/c/fss.h index 1ac6cd3..b7ce096 100644 --- a/level_0/f_fss/c/fss.h +++ b/level_0/f_fss/c/fss.h @@ -48,7 +48,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -72,7 +72,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -100,7 +100,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0 (line is set to 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -128,7 +128,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but the range.start is greater than buffer.used or buffer.used is 0 (line is set to 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -263,7 +263,7 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing is processed. * F_parameter (with error bit) if a parameter is invalid. * @@ -334,10 +334,10 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0, initial range.start is greater than range.stop, or initial range.start is greater than or equal to buffer.used. - * F_none_eos on success and EOS was reached. - * F_none_stop on success and stop point was reached. + * F_okay_eos on success and EOS was reached. + * F_okay_stop on success and stop point was reached. * * F_parameter (with error bit) if a parameter is invalid. */ @@ -357,10 +357,10 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0, initial range.start is greater than range.stop, or initial range.start is greater than or equal to buffer.used. - * F_none_eos on success and EOS was reached. - * F_none_stop on success and stop point was reached. + * F_okay_eos on success and EOS was reached. + * F_okay_stop on success and stop point was reached. * * F_parameter (with error bit) if a parameter is invalid. */ @@ -383,11 +383,11 @@ extern "C" { * A state for providing flags and handling interrupts during long running operations. * * This alters state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but buffer.used is 0, initial range.start is greater than range.stop, or initial range.start is greater than or equal to buffer.used. - * F_none_eol on success and EOL was reached. - * F_none_eos on success and EOS was reached. - * F_none_stop on success and stop point was reached. + * F_okay_eol on success and EOL was reached. + * F_okay_eos on success and EOS was reached. + * F_okay_stop on success and stop point was reached. * * F_complete_not_utf_eos (with error bit) if unable to get entire UTF-8 sequence due to EOS. * F_complete_not_utf_start (with error bit) if the first character is a combining character. diff --git a/level_0/f_fss/c/fss/item.c b/level_0/f_fss/c/fss/item.c index b4b6561..30ee93c 100644 --- a/level_0/f_fss/c/fss/item.c +++ b/level_0/f_fss/c/fss/item.c @@ -33,7 +33,7 @@ extern "C" { { f_fss_item_t * const array = (f_fss_item_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -42,7 +42,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_items_delete_callback_ @@ -51,7 +51,7 @@ extern "C" { { f_fss_item_t * const array = (f_fss_item_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -64,7 +64,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_items_destroy_callback_ @@ -73,7 +73,7 @@ extern "C" { { f_fss_items_t * const array = (f_fss_items_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -91,7 +91,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_itemss_delete_callback_ @@ -100,7 +100,7 @@ extern "C" { { f_fss_items_t * const array = (f_fss_items_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -122,7 +122,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_itemss_destroy_callback_ diff --git a/level_0/f_fss/c/fss/item.h b/level_0/f_fss/c/fss/item.h index e699ae0..2ea05e3 100644 --- a/level_0/f_fss/c/fss/item.h +++ b/level_0/f_fss/c/fss/item.h @@ -122,7 +122,7 @@ extern "C" { * The item to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -141,7 +141,7 @@ extern "C" { * The item to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -197,7 +197,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -225,7 +225,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -253,7 +253,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/c/fss/named.c b/level_0/f_fss/c/fss/named.c index c663e2b..ad7d185 100644 --- a/level_0/f_fss/c/fss/named.c +++ b/level_0/f_fss/c/fss/named.c @@ -21,7 +21,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_named_delete_ @@ -45,7 +45,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_named_destroy_ @@ -54,7 +54,7 @@ extern "C" { { f_fss_named_t * const array = (f_fss_named_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -69,7 +69,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nameds_delete_callback_ @@ -78,7 +78,7 @@ extern "C" { { f_fss_named_t * const array = (f_fss_named_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -96,7 +96,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nameds_destroy_callback_ @@ -105,7 +105,7 @@ extern "C" { { f_fss_nameds_t * const array = (f_fss_nameds_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -129,7 +129,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_namedss_delete_callback_ @@ -138,7 +138,7 @@ extern "C" { { f_fss_nameds_t * const array = (f_fss_nameds_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -165,7 +165,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_namedss_destroy_callback_ diff --git a/level_0/f_fss/c/fss/named.h b/level_0/f_fss/c/fss/named.h index 957b6ec..db42de8 100644 --- a/level_0/f_fss/c/fss/named.h +++ b/level_0/f_fss/c/fss/named.h @@ -103,7 +103,7 @@ extern "C" { * The named to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * The named to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -158,7 +158,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -190,7 +190,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -222,7 +222,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -254,7 +254,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/c/fss/nest.c b/level_0/f_fss/c/fss/nest.c index cbb7715..1cbd6d7 100644 --- a/level_0/f_fss/c/fss/nest.c +++ b/level_0/f_fss/c/fss/nest.c @@ -11,7 +11,7 @@ extern "C" { #endif // _di_level_0_parameter_checking_ { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = 0; i < nest->size; ++i) { @@ -40,7 +40,7 @@ extern "C" { #endif // _di_level_0_parameter_checking_ { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = 0; i < nest->size; ++i) { @@ -71,7 +71,7 @@ extern "C" { { f_fss_nest_t * const array = (f_fss_nest_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; f_number_unsigned_t k = 0; @@ -98,7 +98,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nests_delete_callback_ @@ -107,7 +107,7 @@ extern "C" { { f_fss_nest_t * const array = (f_fss_nest_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; f_number_unsigned_t k = 0; @@ -138,7 +138,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nests_destroy_callback_ @@ -147,7 +147,7 @@ extern "C" { { f_fss_nests_t * const array = (f_fss_nests_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; f_number_unsigned_t k = 0; f_number_unsigned_t l = 0; @@ -183,7 +183,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nestss_delete_callback_ @@ -192,7 +192,7 @@ extern "C" { { f_fss_nests_t * const array = (f_fss_nests_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; f_number_unsigned_t k = 0; f_number_unsigned_t l = 0; @@ -232,7 +232,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_nestss_destroy_callback_ diff --git a/level_0/f_fss/c/fss/nest.h b/level_0/f_fss/c/fss/nest.h index 449944f..587097a 100644 --- a/level_0/f_fss/c/fss/nest.h +++ b/level_0/f_fss/c/fss/nest.h @@ -99,7 +99,7 @@ extern "C" { * The nest to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -118,7 +118,7 @@ extern "C" { * The nest to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -148,7 +148,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -176,7 +176,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -204,7 +204,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -232,7 +232,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/c/fss/private-item.c b/level_0/f_fss/c/fss/private-item.c index 023da0a..6437f6a 100644 --- a/level_0/f_fss/c/fss/private-item.c +++ b/level_0/f_fss/c/fss/private-item.c @@ -8,7 +8,7 @@ extern "C" { #if !defined(_di_f_fss_items_adjust_) || !defined(_di_f_fss_items_decimate_by_) || !defined(_di_f_fss_nest_adjust_) || !defined(_di_f_fss_nest_decimate_by_) f_status_t private_f_fss_items_adjust(const f_number_unsigned_t length, f_fss_items_t * const items) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < items->size; ++i) { @@ -23,7 +23,7 @@ extern "C" { #if !defined(_di_f_fss_items_decrease_by_) || !defined(_di_f_fss_items_resize_) || !defined(_di_f_fss_nest_decrease_by_) || !defined(_di_f_fss_nest_resize_) f_status_t private_f_fss_items_resize(const f_number_unsigned_t length, f_fss_items_t * const items) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < items->size; ++i) { diff --git a/level_0/f_fss/c/fss/private-named.c b/level_0/f_fss/c/fss/private-named.c index 3f6977d..2b6dbc3 100644 --- a/level_0/f_fss/c/fss/private-named.c +++ b/level_0/f_fss/c/fss/private-named.c @@ -17,7 +17,7 @@ extern "C" { status = f_memory_arrays_adjust(length, sizeof(f_uint8s_t), (void **) &named->quotess.array, &named->quotess.used, &named->quotess.size, &f_uint8s_delete_callback); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) @@ -33,7 +33,7 @@ extern "C" { status = f_memory_arrays_resize(length, sizeof(f_uint8s_t), (void **) &named->quotess.array, &named->quotess.used, &named->quotess.size, &f_uint8s_delete_callback); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_named_increase_) || !defined(_di_f_fss_named_increase_by_) || !defined(_di_f_fss_nameds_resize_) @@ -41,7 +41,7 @@ extern "C" { f_status_t private_f_fss_nameds_adjust(const f_number_unsigned_t length, f_fss_nameds_t * const nameds) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nameds->size; ++i) { @@ -58,7 +58,7 @@ extern "C" { f_status_t private_f_fss_nameds_resize(const f_number_unsigned_t length, f_fss_nameds_t * const nameds) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nameds->size; ++i) { diff --git a/level_0/f_fss/c/fss/private-named.h b/level_0/f_fss/c/fss/private-named.h index d2625dd..3f8e4fc 100644 --- a/level_0/f_fss/c/fss/private-named.h +++ b/level_0/f_fss/c/fss/private-named.h @@ -26,7 +26,7 @@ extern "C" { * The named to adjust. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_arrays_adjust(). * Errors (with error bit) from: macro_f_string_ranges_t_adjust(). @@ -54,7 +54,7 @@ extern "C" { * The named to resize. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_arrays_resize(). * Errors (with error bit) from: f_string_ranges_resize(). diff --git a/level_0/f_fss/c/fss/private-nest.c b/level_0/f_fss/c/fss/private-nest.c index a85fbbb..4b42204 100644 --- a/level_0/f_fss/c/fss/private-nest.c +++ b/level_0/f_fss/c/fss/private-nest.c @@ -10,7 +10,7 @@ extern "C" { f_status_t private_f_fss_nest_adjust(const f_number_unsigned_t length, f_fss_nest_t * const nest) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nest->size; ++i) { @@ -27,7 +27,7 @@ extern "C" { f_status_t private_f_fss_nest_resize(const f_number_unsigned_t length, f_fss_nest_t * const nest) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nest->size; ++i) { @@ -44,7 +44,7 @@ extern "C" { f_status_t private_f_fss_nests_adjust(const f_number_unsigned_t length, f_fss_nests_t *nests) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nests->size; ++i) { @@ -61,7 +61,7 @@ extern "C" { f_status_t private_f_fss_nests_resize(const f_number_unsigned_t length, f_fss_nests_t * const nests) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < nests->size; ++i) { diff --git a/level_0/f_fss/c/fss/private-set.c b/level_0/f_fss/c/fss/private-set.c index 2949ff6..3c443a0 100644 --- a/level_0/f_fss/c/fss/private-set.c +++ b/level_0/f_fss/c/fss/private-set.c @@ -14,7 +14,7 @@ extern "C" { status = f_string_rangess_adjust(length, &set->contents); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_set_adjust_) || !defined(_di_f_fss_set_decimate_by_) @@ -27,7 +27,7 @@ extern "C" { status = f_string_rangess_resize(length, &set->contents); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_set_decrease_by_) || !defined(_di_f_fss_set_increase_) || !defined(_di_f_fss_set_increase_by_) || !defined(_di_f_fss_set_resize_) @@ -35,7 +35,7 @@ extern "C" { f_status_t private_f_fss_sets_adjust(const f_number_unsigned_t length, f_fss_sets_t * const sets) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < sets->size; ++i) { @@ -55,7 +55,7 @@ extern "C" { f_status_t private_f_fss_sets_resize(const f_number_unsigned_t length, f_fss_sets_t * const sets) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < sets->size; ++i) { diff --git a/level_0/f_fss/c/fss/private-set.h b/level_0/f_fss/c/fss/private-set.h index 5250ae5..808c5ad 100644 --- a/level_0/f_fss/c/fss/private-set.h +++ b/level_0/f_fss/c/fss/private-set.h @@ -26,7 +26,7 @@ extern "C" { * The set to adjust. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_ranges_adjust(). * Errors (with error bit) from: f_string_rangess_adjust(). @@ -52,7 +52,7 @@ extern "C" { * The set to resize. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_ranges_resize(). * Errors (with error bit) from: f_string_rangess_resize(). diff --git a/level_0/f_fss/c/fss/private-set_quote.c b/level_0/f_fss/c/fss/private-set_quote.c index 1b477db..3d6e54b 100644 --- a/level_0/f_fss/c/fss/private-set_quote.c +++ b/level_0/f_fss/c/fss/private-set_quote.c @@ -20,7 +20,7 @@ extern "C" { status = f_memory_arrays_adjust(length, sizeof(f_uint8s_t), (void **) &set_quote->contents_quote.array, &set_quote->contents_quote.used, &set_quote->contents_quote.size, &f_uint8s_delete_callback); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_set_quote_adjust_) || !defined(_di_f_fss_set_quote_decimate_by_) @@ -39,7 +39,7 @@ extern "C" { status = f_memory_arrays_resize(length, sizeof(f_uint8s_t), (void **) &set_quote->contents_quote.array, &set_quote->contents_quote.used, &set_quote->contents_quote.size, &f_uint8s_delete_callback); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_set_quote_decrease_by_) || !defined(_di_f_fss_set_quote_increase_) || !defined(_di_f_fss_set_quote_increase_by_) || !defined(_di_f_fss_set_quote_resize_) @@ -47,7 +47,7 @@ extern "C" { f_status_t private_f_fss_set_quotes_adjust(const f_number_unsigned_t length, f_fss_set_quotes_t * const set_quotes) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < set_quotes->size; ++i) { @@ -73,7 +73,7 @@ extern "C" { f_status_t private_f_fss_set_quotes_resize(const f_number_unsigned_t length, f_fss_set_quotes_t * const set_quotes) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < set_quotes->size; ++i) { diff --git a/level_0/f_fss/c/fss/private-set_quote.h b/level_0/f_fss/c/fss/private-set_quote.h index 7b9c381..15fb877 100644 --- a/level_0/f_fss/c/fss/private-set_quote.h +++ b/level_0/f_fss/c/fss/private-set_quote.h @@ -26,7 +26,7 @@ extern "C" { * The set_quote to adjust. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_resize(). * Errors (with error bit) from: f_memory_arrays_resize(). @@ -56,7 +56,7 @@ extern "C" { * The set_quote to resize. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_resize(). * Errors (with error bit) from: f_memory_arrays_resize(). diff --git a/level_0/f_fss/c/fss/private-simple_packet.c b/level_0/f_fss/c/fss/private-simple_packet.c index 41d76ba..531bbf0 100644 --- a/level_0/f_fss/c/fss/private-simple_packet.c +++ b/level_0/f_fss/c/fss/private-simple_packet.c @@ -13,7 +13,7 @@ extern "C" { destination->array[destination->used++] = source; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_simple_packet_ranges_append_) || !defined(_di_f_fss_simple_packet_rangess_append_) @@ -29,7 +29,7 @@ extern "C" { destination->array[destination->used++] = source.array[i]; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_simple_packet_ranges_append_) || !defined(_di_f_fss_simple_packet_ranges_append_all_) || !defined(_di_f_fss_simple_packet_rangess_append_all_) @@ -37,7 +37,7 @@ extern "C" { f_status_t private_f_fss_simple_packet_rangess_adjust(const f_number_unsigned_t length, f_fss_simple_packet_rangess_t *rangess) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < rangess->size; ++i) { @@ -54,7 +54,7 @@ extern "C" { f_status_t private_f_fss_simple_packet_rangess_resize(const f_number_unsigned_t length, f_fss_simple_packet_rangess_t *rangess) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < rangess->size; ++i) { @@ -71,7 +71,7 @@ extern "C" { f_status_t private_f_fss_simple_packets_adjust(const f_number_unsigned_t length, f_fss_simple_packets_t *packets) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < packets->size; ++i) { @@ -92,7 +92,7 @@ extern "C" { destination->array[destination->used++] = source; - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_simple_packets_append_) || !defined(_di_f_fss_simple_packetss_append_) @@ -108,7 +108,7 @@ extern "C" { destination->array[destination->used++] = source.array[i]; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_fss_simple_packets_append_) || !defined(_di_f_fss_simple_packets_append_all_) || !defined(_di_f_fss_simple_packetss_append_all_) @@ -116,7 +116,7 @@ extern "C" { f_status_t private_f_fss_simple_packets_resize(const f_number_unsigned_t length, f_fss_simple_packets_t *packets) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < packets->size; ++i) { @@ -133,7 +133,7 @@ extern "C" { f_status_t private_f_fss_simple_packetss_adjust(const f_number_unsigned_t length, f_fss_simple_packetss_t *packetss) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < packetss->size; ++i) { @@ -150,7 +150,7 @@ extern "C" { f_status_t private_f_fss_simple_packetss_resize(const f_number_unsigned_t length, f_fss_simple_packetss_t *packetss) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < packetss->size; ++i) { diff --git a/level_0/f_fss/c/fss/set.c b/level_0/f_fss/c/fss/set.c index 397ebc8..6a98008 100644 --- a/level_0/f_fss/c/fss/set.c +++ b/level_0/f_fss/c/fss/set.c @@ -18,7 +18,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_set_delete_ @@ -36,7 +36,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_set_destroy_ @@ -45,7 +45,7 @@ extern "C" { { f_fss_set_t * const array = (f_fss_set_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -57,7 +57,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_sets_delete_callback_ @@ -66,7 +66,7 @@ extern "C" { { f_fss_set_t * const array = (f_fss_set_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -78,7 +78,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_sets_destroy_callback_ @@ -87,7 +87,7 @@ extern "C" { { f_fss_sets_t * const array = (f_fss_sets_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -108,7 +108,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_setss_delete_callback_ @@ -117,7 +117,7 @@ extern "C" { { f_fss_sets_t * const array = (f_fss_sets_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -138,7 +138,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_setss_destroy_callback_ diff --git a/level_0/f_fss/c/fss/set.h b/level_0/f_fss/c/fss/set.h index fcd8689..b91d73d 100644 --- a/level_0/f_fss/c/fss/set.h +++ b/level_0/f_fss/c/fss/set.h @@ -96,7 +96,7 @@ extern "C" { * The set to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -117,7 +117,7 @@ extern "C" { * The set to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -147,7 +147,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -175,7 +175,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -203,7 +203,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -231,7 +231,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/c/fss/set_quote.c b/level_0/f_fss/c/fss/set_quote.c index d3cebc0..f29a02a 100644 --- a/level_0/f_fss/c/fss/set_quote.c +++ b/level_0/f_fss/c/fss/set_quote.c @@ -24,7 +24,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quote_delete_ @@ -48,7 +48,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quote_destroy_ @@ -57,7 +57,7 @@ extern "C" { { f_fss_set_quote_t * const array = (f_fss_set_quote_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -75,7 +75,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quotes_delete_callback_ @@ -84,7 +84,7 @@ extern "C" { { f_fss_set_quote_t * const array = (f_fss_set_quote_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -102,7 +102,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quotes_destroy_callback_ @@ -111,7 +111,7 @@ extern "C" { { f_fss_set_quotes_t * const array = (f_fss_set_quotes_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -138,7 +138,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quotess_delete_callback_ @@ -147,7 +147,7 @@ extern "C" { { f_fss_set_quotes_t * const array = (f_fss_set_quotes_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -174,7 +174,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_set_quotess_destroy_callback_ diff --git a/level_0/f_fss/c/fss/set_quote.h b/level_0/f_fss/c/fss/set_quote.h index 2ba808f..110ed9c 100644 --- a/level_0/f_fss/c/fss/set_quote.h +++ b/level_0/f_fss/c/fss/set_quote.h @@ -103,7 +103,7 @@ extern "C" { * The quote set to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -128,7 +128,7 @@ extern "C" { * The quote set to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -162,7 +162,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -196,7 +196,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -230,7 +230,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -264,7 +264,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/c/fss/simple_packet.c b/level_0/f_fss/c/fss/simple_packet.c index 52bbdfb..37e821f 100644 --- a/level_0/f_fss/c/fss/simple_packet.c +++ b/level_0/f_fss/c/fss/simple_packet.c @@ -62,20 +62,20 @@ extern "C" { if (buffer.string[2] || buffer.string[3] || !buffer.string[4]) return F_partial; if (buffer.string[1] < F_fss_simple_packet_block_header_size_d) return F_status_set_error(F_valid_not); - return (buffer.string[1] == F_fss_simple_packet_block_header_size_d) ? F_none : F_partial; + return (buffer.string[1] == F_fss_simple_packet_block_header_size_d) ? F_okay : F_partial; } // Little endian. if (!buffer.string[1] || buffer.string[2] || buffer.string[3]) return F_partial; if (buffer.string[4] < F_fss_simple_packet_block_header_size_d) return F_status_set_error(F_valid_not); - return (buffer.string[4] == F_fss_simple_packet_block_header_size_d) ? F_none : F_partial; + return (buffer.string[4] == F_fss_simple_packet_block_header_size_d) ? F_okay : F_partial; } range->payload.start = F_fss_simple_packet_block_header_size_d; range->payload.stop = (buffer.used - F_fss_simple_packet_block_header_size_d < F_fss_simple_packet_block_payload_size_d) ? buffer.used - 1 : F_fss_simple_packet_block_payload_size_d - 1; - return F_none; + return F_okay; } #endif // _di_f_fss_simple_packet_identify_ @@ -84,7 +84,7 @@ extern "C" { { f_fss_simple_packet_t * const array = (f_fss_simple_packet_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -93,7 +93,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_simple_packets_delete_callback_ @@ -102,7 +102,7 @@ extern "C" { { f_fss_simple_packet_t * const array = (f_fss_simple_packet_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -114,7 +114,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_simple_packets_destroy_callback_ @@ -123,7 +123,7 @@ extern "C" { { f_fss_simple_packets_t * const array = (f_fss_simple_packets_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -141,7 +141,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_simple_packetss_delete_callback_ @@ -150,7 +150,7 @@ extern "C" { { f_fss_simple_packets_t * const array = (f_fss_simple_packets_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -171,7 +171,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fss_simple_packetss_destroy_callback_ diff --git a/level_0/f_fss/c/fss/simple_packet.h b/level_0/f_fss/c/fss/simple_packet.h index f9aa062..eefaf13 100644 --- a/level_0/f_fss/c/fss/simple_packet.h +++ b/level_0/f_fss/c/fss/simple_packet.h @@ -199,7 +199,7 @@ extern "C" { * The simple packet to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -218,7 +218,7 @@ extern "C" { * The simple packet to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -241,7 +241,7 @@ extern "C" { * If the buffer is too small (including when F_data_not is returned), then the ranges are all set to the out of range values as appropriate. * * @return - * F_none on success (The end of the Payload Block is assumed to be the remainder of the buffer or F_fss_simple_packet_block_payload_size_d, whichever is smaller). + * F_okay on success (The end of the Payload Block is assumed to be the remainder of the buffer or F_fss_simple_packet_block_payload_size_d, whichever is smaller). * F_partial on success but not all blocks are identified. * F_data_not if buffer.used is 0. * @@ -268,7 +268,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -296,7 +296,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -324,7 +324,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -352,7 +352,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_fss/tests/unit/c/test-fss-apply_delimit.c b/level_0/f_fss/tests/unit/c/test-fss-apply_delimit.c index b5c88ad..3acd7ee 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-apply_delimit.c +++ b/level_0/f_fss/tests/unit/c/test-fss-apply_delimit.c @@ -115,7 +115,7 @@ void test__f_fss_apply_delimit__works(void **state) { f_fss_apply_delimit(delimitss[i], &tests[i], &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(tests[i].used, expects[i].used); for (uint8_t j = 0; j < tests[i].used; ++j) { diff --git a/level_0/f_fss/tests/unit/c/test-fss-apply_delimit_range.c b/level_0/f_fss/tests/unit/c/test-fss-apply_delimit_range.c index 4150754..6d58fd1 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-apply_delimit_range.c +++ b/level_0/f_fss/tests/unit/c/test-fss-apply_delimit_range.c @@ -137,7 +137,7 @@ void test__f_fss_apply_delimit_range__works(void **state) { f_fss_apply_delimit_range(delimitss[i], range, &tests[i], &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(tests[i].used, expects[i].used); for (uint8_t j = 0; j < tests[i].used; ++j) { diff --git a/level_0/f_fss/tests/unit/c/test-fss-count_lines.c b/level_0/f_fss/tests/unit/c/test-fss-count_lines.c index ed9696f..bdd596f 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-count_lines.c +++ b/level_0/f_fss/tests/unit/c/test-fss-count_lines.c @@ -49,7 +49,7 @@ void test__f_fss_count_lines__works(void **state) { f_fss_count_lines(buffers[i], buffers[i].used, &line, &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(line, expect); } // for } diff --git a/level_0/f_fss/tests/unit/c/test-fss-count_lines_range.c b/level_0/f_fss/tests/unit/c/test-fss-count_lines_range.c index 790f673..774ef44 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-count_lines_range.c +++ b/level_0/f_fss/tests/unit/c/test-fss-count_lines_range.c @@ -71,7 +71,7 @@ void test__f_fss_count_lines_range__works(void **state) { f_fss_count_lines_range(buffers[i], range, &line, &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(line, expect); } // for } diff --git a/level_0/f_fss/tests/unit/c/test-fss-items_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-items_delete_callback.c index a025dc1..6424a54 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-items_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-items_delete_callback.c @@ -38,11 +38,11 @@ void test__f_fss_items_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); const f_status_t status = f_fss_items_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-items_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-items_destroy_callback.c index 2bd8828..24f8426 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-items_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-items_destroy_callback.c @@ -38,11 +38,11 @@ void test__f_fss_items_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); const f_status_t status = f_fss_items_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-itemss_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-itemss_delete_callback.c index 129340b..9f747d7 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-itemss_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-itemss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_itemss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_fss_itemss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_items_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_itemss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-itemss_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-itemss_destroy_callback.c index 969558c..d96264b 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-itemss_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-itemss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_itemss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_fss_itemss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_items_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_itemss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nameds_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nameds_delete_callback.c index 64403f2..2e616c4 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nameds_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nameds_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_nameds_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_nameds_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, true); will_return(__wrap_f_memory_arrays_resize, F_status_set_error(F_failure)); @@ -65,17 +65,17 @@ void test__f_fss_nameds_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, false); - will_return(__wrap_f_memory_arrays_resize, F_none); + will_return(__wrap_f_memory_arrays_resize, F_okay); const f_status_t status = f_fss_nameds_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nameds_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nameds_destroy_callback.c index 54e5412..1260630 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nameds_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nameds_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_nameds_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_nameds_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, true); will_return(__wrap_f_memory_arrays_adjust, F_status_set_error(F_failure)); @@ -65,17 +65,17 @@ void test__f_fss_nameds_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, false); - will_return(__wrap_f_memory_arrays_adjust, F_none); + will_return(__wrap_f_memory_arrays_adjust, F_okay); const f_status_t status = f_fss_nameds_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-namedss_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-namedss_delete_callback.c index 0afab83..dbc7e73 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-namedss_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-namedss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_namedss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_namedss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, true); will_return(__wrap_f_memory_arrays_resize, F_status_set_error(F_failure)); @@ -63,28 +63,28 @@ void test__f_fss_namedss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_nameds_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_named_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_resize(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_arrays_resize(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].quotess.array, &datass.array[0].array[0].quotess.used, &datass.array[0].array[0].quotess.size, &f_uint8ss_delete_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].quotess.array[0].array, &datass.array[0].array[0].quotess.array[0].used, &datass.array[0].array[0].quotess.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_namedss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-namedss_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-namedss_destroy_callback.c index e6ce2ee..97bc9e2 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-namedss_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-namedss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_namedss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_namedss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, true); will_return(__wrap_f_memory_arrays_adjust, F_status_set_error(F_failure)); @@ -63,28 +63,28 @@ void test__f_fss_namedss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_nameds_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_named_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_adjust(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_arrays_adjust(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].quotess.array, &datass.array[0].array[0].quotess.used, &datass.array[0].array[0].quotess.size, &f_uint8ss_delete_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].quotess.array[0].array, &datass.array[0].array[0].quotess.array[0].used, &datass.array[0].array[0].quotess.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_namedss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nests_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nests_delete_callback.c index 659c0f3..f4fdbb1 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nests_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nests_delete_callback.c @@ -28,7 +28,7 @@ void test__f_fss_nests_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -40,10 +40,10 @@ void test__f_fss_nests_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -69,17 +69,17 @@ void test__f_fss_nests_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); const f_status_t status = f_fss_nests_delete_callback(0, length, (void *) data_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nests_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nests_destroy_callback.c index a8e8a86..2680bf3 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nests_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nests_destroy_callback.c @@ -28,7 +28,7 @@ void test__f_fss_nests_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -40,10 +40,10 @@ void test__f_fss_nests_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -69,17 +69,17 @@ void test__f_fss_nests_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); const f_status_t status = f_fss_nests_destroy_callback(0, length, (void *) data_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nestss_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nestss_delete_callback.c index 6ede591..5afadb3 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nestss_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nestss_delete_callback.c @@ -30,7 +30,7 @@ void test__f_fss_nestss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -52,25 +52,25 @@ void test__f_fss_nestss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_nests_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_nest_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_items_t), (void **) &datass.array[0].array[0].depth, &datass.array[0].array[0].used, &datass.array[0].array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array[0].depth[0].array, &datass.array[0].array[0].depth[0].used, &datass.array[0].array[0].depth[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].depth[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_nestss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-nestss_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-nestss_destroy_callback.c index 2f91f06..c15faa1 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-nestss_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-nestss_destroy_callback.c @@ -30,7 +30,7 @@ void test__f_fss_nestss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -52,25 +52,25 @@ void test__f_fss_nestss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_nests_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_nest_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_items_t), (void **) &datass.array[0].array[0].depth, &datass.array[0].array[0].used, &datass.array[0].array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_item_t), (void **) &datass.array[0].array[0].depth[0].array, &datass.array[0].array[0].depth[0].used, &datass.array[0].array[0].depth[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].depth[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_nestss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-seek_to_eol.c b/level_0/f_fss/tests/unit/c/test-fss-seek_to_eol.c index 38a12a2..eaa6c2f 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-seek_to_eol.c +++ b/level_0/f_fss/tests/unit/c/test-fss-seek_to_eol.c @@ -97,18 +97,18 @@ void test__f_fss_seek_to_eol__works(void **state) { }; f_status_t statuss[] = { - F_none_eos, - F_none_eos, - F_none, - F_none, - F_none, - F_none, - F_none_stop, - F_none_stop, - F_none, - F_none, - F_none, - F_none, + F_okay_eos, + F_okay_eos, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay_stop, + F_okay_stop, + F_okay, + F_okay, + F_okay, + F_okay, }; for (uint8_t i = 0; i < 12; ++i) { diff --git a/level_0/f_fss/tests/unit/c/test-fss-set_quotes_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-set_quotes_delete_callback.c index 9910793..e163617 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-set_quotes_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-set_quotes_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_set_quotes_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_set_quotes_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_fss_set_quotes_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, true); will_return(__wrap_f_memory_arrays_resize, F_status_set_error(F_failure)); @@ -83,20 +83,20 @@ void test__f_fss_set_quotes_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, false); - will_return(__wrap_f_memory_arrays_resize, F_none); + will_return(__wrap_f_memory_arrays_resize, F_okay); const f_status_t status = f_fss_set_quotes_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-set_quotes_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-set_quotes_destroy_callback.c index 2647243..ebc11f2 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-set_quotes_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-set_quotes_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_set_quotes_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_set_quotes_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_fss_set_quotes_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, true); will_return(__wrap_f_memory_arrays_adjust, F_status_set_error(F_failure)); @@ -83,20 +83,20 @@ void test__f_fss_set_quotes_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, false); - will_return(__wrap_f_memory_arrays_adjust, F_none); + will_return(__wrap_f_memory_arrays_adjust, F_okay); const f_status_t status = f_fss_set_quotes_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-set_quotess_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-set_quotess_delete_callback.c index 021fe27..ba70a12 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-set_quotess_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-set_quotess_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_set_quotess_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_set_quotess_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_fss_set_quotess_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_memory_arrays_resize, true); will_return(__wrap_f_memory_arrays_resize, F_status_set_error(F_failure)); @@ -81,28 +81,28 @@ void test__f_fss_set_quotess_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_set_quotes_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_set_quote_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_resize(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].objects_quote.array, &datass.array[0].array[0].objects_quote.used, &datass.array[0].array[0].objects_quote.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_arrays_adjust(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].contents_quote.array, &datass.array[0].array[0].contents_quote.used, &datass.array[0].array[0].contents_quote.size, &f_uint8ss_destroy_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_set_quotess_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-set_quotess_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-set_quotess_destroy_callback.c index ed4d28e..2a92f1e 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-set_quotess_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-set_quotess_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_set_quotess_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -38,10 +38,10 @@ void test__f_fss_set_quotess_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -53,13 +53,13 @@ void test__f_fss_set_quotess_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_memory_arrays_adjust, true); will_return(__wrap_f_memory_arrays_adjust, F_status_set_error(F_failure)); @@ -81,28 +81,28 @@ void test__f_fss_set_quotess_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_set_quotes_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_set_quote_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_adjust(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint8_t), (void **) &datass.array[0].array[0].objects_quote.array, &datass.array[0].array[0].objects_quote.used, &datass.array[0].array[0].objects_quote.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_arrays_adjust(1, sizeof(f_uint8s_t), (void **) &datass.array[0].array[0].contents_quote.array, &datass.array[0].array[0].contents_quote.used, &datass.array[0].array[0].contents_quote.size, &f_uint8ss_destroy_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_set_quotess_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-sets_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-sets_delete_callback.c index cd93ca8..444c6ec 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-sets_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-sets_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_sets_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -50,14 +50,14 @@ void test__f_fss_sets_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, false); - will_return(__wrap_f_string_rangess_resize, F_none); + will_return(__wrap_f_string_rangess_resize, F_okay); const f_status_t status = f_fss_sets_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-sets_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-sets_destroy_callback.c index ab3c09f..a674d54 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-sets_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-sets_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_sets_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -50,14 +50,14 @@ void test__f_fss_sets_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, false); - will_return(__wrap_f_string_rangess_adjust, F_none); + will_return(__wrap_f_string_rangess_adjust, F_okay); const f_status_t status = f_fss_sets_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-setss_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-setss_delete_callback.c index 3ae8143..07c81a6 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-setss_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-setss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_setss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_rangess_resize, true); will_return(__wrap_f_string_rangess_resize, F_status_set_error(F_failure)); @@ -48,22 +48,22 @@ void test__f_fss_setss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_sets_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_set_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_resize(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_setss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-setss_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-setss_destroy_callback.c index 14b3068..1eaac54 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-setss_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-setss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_setss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_rangess_adjust, true); will_return(__wrap_f_string_rangess_adjust, F_status_set_error(F_failure)); @@ -48,22 +48,22 @@ void test__f_fss_setss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_sets_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_set_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].objects); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_rangess_adjust(1, &datass.array[0].array[0].contents); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_setss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-simple_packets_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-simple_packets_delete_callback.c index 8d9622e..4dfb92b 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-simple_packets_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-simple_packets_delete_callback.c @@ -38,11 +38,11 @@ void test__f_fss_simple_packets_delete_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); const f_status_t status = f_fss_simple_packets_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-simple_packets_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-simple_packets_destroy_callback.c index b4ecd5b..3117b03 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-simple_packets_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-simple_packets_destroy_callback.c @@ -38,11 +38,11 @@ void test__f_fss_simple_packets_destroy_callback__works(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); const f_status_t status = f_fss_simple_packets_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_delete_callback.c b/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_delete_callback.c index e7b578c..7e77c39 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_delete_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_delete_callback.c @@ -26,7 +26,7 @@ void test__f_fss_simple_packetss_delete_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_resize, false); - will_return(__wrap_f_string_dynamic_resize, F_none); + will_return(__wrap_f_string_dynamic_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_fss_simple_packetss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fss_simple_packets_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fss_simple_packet_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_resize(1, &datass.array[0].array[0].payload); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_simple_packetss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_destroy_callback.c b/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_destroy_callback.c index d2d1ddd..0fd6fae 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_destroy_callback.c +++ b/level_0/f_fss/tests/unit/c/test-fss-simple_packetss_destroy_callback.c @@ -26,7 +26,7 @@ void test__f_fss_simple_packetss_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_dynamic_adjust, false); - will_return(__wrap_f_string_dynamic_adjust, F_none); + will_return(__wrap_f_string_dynamic_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -48,19 +48,19 @@ void test__f_fss_simple_packetss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fss_simple_packets_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fss_simple_packet_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_dynamic_adjust(1, &datass.array[0].array[0].payload); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fss_simple_packetss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_fss/tests/unit/c/test-fss-skip_past_delimit.c b/level_0/f_fss/tests/unit/c/test-fss-skip_past_delimit.c index 0ec6812..8894699 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-skip_past_delimit.c +++ b/level_0/f_fss/tests/unit/c/test-fss-skip_past_delimit.c @@ -79,7 +79,7 @@ void test__f_fss_skip_past_delimit__works(void **state) { f_fss_skip_past_delimit(tests[i], &range, &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(range.start, expects[i]); } // for } diff --git a/level_0/f_fss/tests/unit/c/test-fss-skip_past_space.c b/level_0/f_fss/tests/unit/c/test-fss-skip_past_space.c index 2ca804f..5f33f1f 100644 --- a/level_0/f_fss/tests/unit/c/test-fss-skip_past_space.c +++ b/level_0/f_fss/tests/unit/c/test-fss-skip_past_space.c @@ -85,7 +85,7 @@ void test__f_fss_skip_past_space__works(void **state) { f_fss_skip_past_space(tests[i], &range, &state_data); - assert_int_equal(state_data.status, F_none); + assert_int_equal(state_data.status, F_okay); assert_int_equal(range.start, expects[i]); } // for } diff --git a/level_0/f_iki/c/iki.c b/level_0/f_iki/c/iki.c index 368a0b9..af54c74 100644 --- a/level_0/f_iki/c/iki.c +++ b/level_0/f_iki/c/iki.c @@ -341,13 +341,13 @@ extern "C" { data->content.array[data->content.used++].stop = range->start - 1; if (++range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= buffer->used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } return; @@ -414,13 +414,13 @@ extern "C" { data->content.array[data->content.used++].stop = range->start - 1; if (++range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= buffer->used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } return; diff --git a/level_0/f_iki/c/iki.h b/level_0/f_iki/c/iki.h index 2cb3508..fcfc266 100644 --- a/level_0/f_iki/c/iki.h +++ b/level_0/f_iki/c/iki.h @@ -155,9 +155,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success and an IKI vocabulary name was found. - * F_none_eos on success and an IKI vocabulary name was found and end of string was reached. - * F_none_stop on success and an IKI vocabulary name was found and stop point was reached. + * F_okay on success and an IKI vocabulary name was found. + * F_okay_eos on success and an IKI vocabulary name was found and end of string was reached. + * F_okay_stop on success and an IKI vocabulary name was found and stop point was reached. * F_complete_not_utf_eos on success but string ended on incomplete UTF-8 and f_iki_state_flag_utf_fail_on_valid_not_e is not set. * F_complete_not_utf_stop on success but stop point reached on incomplete UTF-8 and f_iki_state_flag_utf_fail_on_valid_not_e is not set. * F_data_not on success, but there were no IKI vocabulary names found. diff --git a/level_0/f_iki/c/iki/data.c b/level_0/f_iki/c/iki/data.c index d4d98ac..53bb7a7 100644 --- a/level_0/f_iki/c/iki/data.c +++ b/level_0/f_iki/c/iki/data.c @@ -26,7 +26,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_iki_data_delete_ @@ -50,7 +50,7 @@ extern "C" { if (F_status_is_error(status)) return status; } - return F_none; + return F_okay; } #endif // _di_f_iki_data_destroy_ @@ -93,7 +93,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_iki_datas_append_ @@ -114,7 +114,7 @@ extern "C" { { f_iki_data_t * const array = (f_iki_data_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -132,7 +132,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_iki_datas_delete_callback_ @@ -141,7 +141,7 @@ extern "C" { { f_iki_data_t * const array = (f_iki_data_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -159,7 +159,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_iki_datas_destroy_callback_ @@ -179,7 +179,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_iki_datass_append_ @@ -204,7 +204,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_iki_datass_append_all_ @@ -213,7 +213,7 @@ extern "C" { { f_iki_datas_t * const array = (f_iki_datas_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -240,7 +240,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_iki_datass_delete_callback_ @@ -249,7 +249,7 @@ extern "C" { { f_iki_datas_t * const array = (f_iki_datas_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t j = 0; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -276,7 +276,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_iki_datass_destroy_callback_ diff --git a/level_0/f_iki/c/iki/data.h b/level_0/f_iki/c/iki/data.h index d53cf47..55a6967 100644 --- a/level_0/f_iki/c/iki/data.h +++ b/level_0/f_iki/c/iki/data.h @@ -23,7 +23,7 @@ extern "C" { * The IKI data to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -44,7 +44,7 @@ extern "C" { * The IKI data to destroy. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -67,7 +67,7 @@ extern "C" { * The destination iki_datas the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -93,7 +93,7 @@ extern "C" { * The destination iki_datas the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -177,7 +177,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -203,7 +203,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -236,7 +236,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -265,7 +265,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_iki/c/iki/private-data.c b/level_0/f_iki/c/iki/private-data.c index 4549d73..36b6f35 100644 --- a/level_0/f_iki/c/iki/private-data.c +++ b/level_0/f_iki/c/iki/private-data.c @@ -44,7 +44,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_append_all_) || !defined(_di_f_iki_datass_append_all_) diff --git a/level_0/f_iki/c/iki/private-data.h b/level_0/f_iki/c/iki/private-data.h index a149cf4..db66fec 100644 --- a/level_0/f_iki/c/iki/private-data.h +++ b/level_0/f_iki/c/iki/private-data.h @@ -26,7 +26,7 @@ extern "C" { * The iki_datas array the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_append(). * Errors (with error bit) from: f_memory_array_increase_by(). diff --git a/level_0/f_iki/c/private-iki.c b/level_0/f_iki/c/private-iki.c index 273c58b..a9376e6 100644 --- a/level_0/f_iki/c/private-iki.c +++ b/level_0/f_iki/c/private-iki.c @@ -37,7 +37,7 @@ extern "C" { #if !defined(_di_f_iki_object_is_) || !defined(_di_f_iki_object_partial_is_) f_status_t private_f_iki_object_partial_is(const f_string_t buffer, const f_number_unsigned_t length) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < length; i += macro_f_utf_byte_width(buffer[i])) { diff --git a/level_0/f_iki/tests/unit/c/test-iki-datas_append.c b/level_0/f_iki/tests/unit/c/test-iki-datas_append.c index ab42696..106d2b5 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datas_append.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datas_append.c @@ -16,22 +16,22 @@ void test__f_iki_datas_append__works(void **state) { f_status_t status = f_string_ranges_resize(length, &source.content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.content.size, length); status = f_memory_array_resize(length, sizeof(f_number_unsigned_t), (void **) &source.delimits.array, &source.delimits.used, &source.delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.delimits.size, length); status = f_string_ranges_resize(length, &source.variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.variable.size, length); status = f_string_ranges_resize(length, &source.vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.vocabulary.size, length); for (; source.content.used < length; ++i) { @@ -60,7 +60,7 @@ void test__f_iki_datas_append__works(void **state) { { const f_status_t status = f_iki_datas_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].content.used, source.content.used); assert_int_equal(destination.array[0].delimits.used, source.delimits.used); diff --git a/level_0/f_iki/tests/unit/c/test-iki-datas_append_all.c b/level_0/f_iki/tests/unit/c/test-iki-datas_append_all.c index 6f4bc1b..d8952f6 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datas_append_all.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datas_append_all.c @@ -14,7 +14,7 @@ void test__f_iki_datas_append_all__works(void **state) { { f_status_t status = f_memory_array_resize(2, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, 2); f_number_unsigned_t i = 1; @@ -24,22 +24,22 @@ void test__f_iki_datas_append_all__works(void **state) { status = f_string_ranges_resize(length, &source.array[j].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].content.size, length); status = f_memory_array_resize(length, sizeof(f_number_unsigned_t), (void **) &source.array[j].delimits.array, &source.array[j].delimits.used, &source.array[j].delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].delimits.size, length); status = f_string_ranges_resize(length, &source.array[j].variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].variable.size, length); status = f_string_ranges_resize(length, &source.array[j].vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].vocabulary.size, length); for (; source.array[j].content.used < length; ++i) { @@ -72,7 +72,7 @@ void test__f_iki_datas_append_all__works(void **state) { { const f_status_t status = f_iki_datas_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -128,7 +128,7 @@ void test__f_iki_datas_append_all__returns_data_not(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datas_delete_callback.c b/level_0/f_iki/tests/unit/c/test-iki-datas_delete_callback.c index 24c5d30..3701bcc 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datas_delete_callback.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datas_delete_callback.c @@ -30,7 +30,7 @@ void test__f_iki_datas_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -42,10 +42,10 @@ void test__f_iki_datas_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, true); will_return(__wrap_f_string_ranges_resize, F_status_set_error(F_failure)); @@ -57,13 +57,13 @@ void test__f_iki_datas_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_ranges_resize, true); will_return(__wrap_f_string_ranges_resize, F_status_set_error(F_failure)); @@ -91,20 +91,20 @@ void test__f_iki_datas_delete_callback__works(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); const f_status_t status = f_iki_datas_delete_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datas_destroy_callback.c b/level_0/f_iki/tests/unit/c/test-iki-datas_destroy_callback.c index 25034a1..485984f 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datas_destroy_callback.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datas_destroy_callback.c @@ -30,7 +30,7 @@ void test__f_iki_datas_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -42,10 +42,10 @@ void test__f_iki_datas_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, true); will_return(__wrap_f_string_ranges_adjust, F_status_set_error(F_failure)); @@ -57,13 +57,13 @@ void test__f_iki_datas_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, true); will_return(__wrap_f_string_ranges_adjust, F_status_set_error(F_failure)); @@ -91,20 +91,20 @@ void test__f_iki_datas_destroy_callback__works(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); const f_status_t status = f_iki_datas_destroy_callback(0, length, (void *) datas_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datass_append.c b/level_0/f_iki/tests/unit/c/test-iki-datass_append.c index 66a20b3..e864736 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datass_append.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datass_append.c @@ -15,7 +15,7 @@ void test__f_iki_datass_append__works(void **state) { { f_status_t status = f_memory_array_resize(length_outer, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_outer); f_number_unsigned_t i = 1; @@ -24,22 +24,22 @@ void test__f_iki_datass_append__works(void **state) { status = f_string_ranges_resize(length, &source.array[j].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].content.size, length); status = f_memory_array_resize(length, sizeof(f_number_unsigned_t), (void **) &source.array[j].delimits.array, &source.array[j].delimits.used, &source.array[j].delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].delimits.size, length); status = f_string_ranges_resize(length, &source.array[j].variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].variable.size, length); status = f_string_ranges_resize(length, &source.array[j].vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[j].vocabulary.size, length); for (; source.array[j].content.used < length; ++i) { @@ -72,7 +72,7 @@ void test__f_iki_datass_append__works(void **state) { { const f_status_t status = f_iki_datass_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); @@ -133,7 +133,7 @@ void test__f_iki_datass_append__returns_data_not(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datass_append_all.c b/level_0/f_iki/tests/unit/c/test-iki-datass_append_all.c index c051c8c..dab365a 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datass_append_all.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datass_append_all.c @@ -16,7 +16,7 @@ void test__f_iki_datass_append_all__works(void **state) { { f_status_t status = f_memory_arrays_resize(length_outer, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size, &f_iki_datas_delete_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_outer); f_number_unsigned_t i = 1; @@ -26,29 +26,29 @@ void test__f_iki_datass_append_all__works(void **state) { status = f_memory_array_resize(length_inner, sizeof(f_iki_data_t), (void **) &source.array[source.used].array, &source.array[source.used].used, &source.array[source.used].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].size, length_inner); for (j = 0; j < length_inner; ++j) { status = f_string_ranges_resize(length, &source.array[source.used].array[j].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[j].content.size, length); status = f_memory_array_resize(length, sizeof(f_number_unsigned_t), (void **) &source.array[source.used].array[j].delimits.array, &source.array[source.used].array[j].delimits.used, &source.array[source.used].array[j].delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[j].delimits.size, length); status = f_string_ranges_resize(length, &source.array[source.used].array[j].variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[j].variable.size, length); status = f_string_ranges_resize(length, &source.array[source.used].array[j].vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[j].vocabulary.size, length); for (; source.array[source.used].array[j].content.used < length; ++i) { @@ -81,7 +81,7 @@ void test__f_iki_datass_append_all__works(void **state) { { const f_status_t status = f_iki_datass_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t k = 0; k < length_outer; ++k) { @@ -149,7 +149,7 @@ void test__f_iki_datass_append_all__returns_data_not(void **state) { { const f_status_t status = f_memory_arrays_resize(length, sizeof(f_iki_data_t), (void **) &source.array, &source.used, &source.size, &f_iki_datas_delete_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datass_delete_callback.c b/level_0/f_iki/tests/unit/c/test-iki-datass_delete_callback.c index a69d9cd..69accc7 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datass_delete_callback.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datass_delete_callback.c @@ -30,7 +30,7 @@ void test__f_iki_datass_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -42,10 +42,10 @@ void test__f_iki_datass_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, true); will_return(__wrap_f_string_ranges_resize, F_status_set_error(F_failure)); @@ -57,13 +57,13 @@ void test__f_iki_datass_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_ranges_resize, true); will_return(__wrap_f_string_ranges_resize, F_status_set_error(F_failure)); @@ -75,16 +75,16 @@ void test__f_iki_datass_delete_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, false); - will_return(__wrap_f_memory_array_resize, F_none); + will_return(__wrap_f_memory_array_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_string_ranges_resize, false); - will_return(__wrap_f_string_ranges_resize, F_none); + will_return(__wrap_f_string_ranges_resize, F_okay); will_return(__wrap_f_memory_array_resize, true); will_return(__wrap_f_memory_array_resize, F_status_set_error(F_failure)); @@ -106,28 +106,28 @@ void test__f_iki_datass_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_iki_datas_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_iki_data_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array[0].delimits.array, &datass.array[0].array[0].delimits.used, &datass.array[0].array[0].delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_resize(1, &datass.array[0].array[0].vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_iki_datass_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_iki/tests/unit/c/test-iki-datass_destroy_callback.c b/level_0/f_iki/tests/unit/c/test-iki-datass_destroy_callback.c index f72d2df..a89d619 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-datass_destroy_callback.c +++ b/level_0/f_iki/tests/unit/c/test-iki-datass_destroy_callback.c @@ -30,7 +30,7 @@ void test__f_iki_datass_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -42,10 +42,10 @@ void test__f_iki_datass_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, true); will_return(__wrap_f_string_ranges_adjust, F_status_set_error(F_failure)); @@ -57,13 +57,13 @@ void test__f_iki_datass_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, true); will_return(__wrap_f_string_ranges_adjust, F_status_set_error(F_failure)); @@ -75,16 +75,16 @@ void test__f_iki_datass_destroy_callback__fails(void **state) { { will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, false); - will_return(__wrap_f_memory_array_adjust, F_none); + will_return(__wrap_f_memory_array_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_string_ranges_adjust, false); - will_return(__wrap_f_string_ranges_adjust, F_none); + will_return(__wrap_f_string_ranges_adjust, F_okay); will_return(__wrap_f_memory_array_adjust, true); will_return(__wrap_f_memory_array_adjust, F_status_set_error(F_failure)); @@ -106,28 +106,28 @@ void test__f_iki_datass_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_iki_datas_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_iki_data_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].content); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array[0].delimits.array, &datass.array[0].array[0].delimits.used, &datass.array[0].array[0].delimits.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].variable); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_string_ranges_adjust(1, &datass.array[0].array[0].vocabulary); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_iki_datass_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_iki/tests/unit/c/test-iki-read.c b/level_0/f_iki/tests/unit/c/test-iki-read.c index d1c686f..eabffaf 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-read.c +++ b/level_0/f_iki/tests/unit/c/test-iki-read.c @@ -142,26 +142,26 @@ void test__f_iki_read__works(void **state) { const f_status_t statuss[] = { F_data_not, F_data_not_stop, - F_none_stop, - F_none, - F_none_stop, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none, - F_none_stop, - F_none_stop, - F_none_stop, - F_none_stop, - F_none, - F_none, + F_okay_stop, + F_okay, + F_okay_stop, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay, + F_okay_stop, + F_okay_stop, + F_okay_stop, + F_okay_stop, + F_okay, + F_okay, }; const f_string_range_t variables[][22] = { diff --git a/level_0/f_limit/c/limit.c b/level_0/f_limit/c/limit.c index 474332f..d14d724 100644 --- a/level_0/f_limit/c/limit.c +++ b/level_0/f_limit/c/limit.c @@ -19,7 +19,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_limit_process_ diff --git a/level_0/f_limit/c/limit.h b/level_0/f_limit/c/limit.h index 82e7e80..44781cf 100644 --- a/level_0/f_limit/c/limit.h +++ b/level_0/f_limit/c/limit.h @@ -50,7 +50,7 @@ extern "C" { * If both value_next and value_current are non-zero, then this represents the value prior to the assignment of value_next. * * @return - * F_none on success. + * F_okay on success. * F_address_not (with error bit) if a pointer is outside of valid address space. * F_found_not (with error bit) if no process by the given PID was found. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_limit/c/limit/private-set.c b/level_0/f_limit/c/limit/private-set.c index d5ca779..46e0d5e 100644 --- a/level_0/f_limit/c/limit/private-set.c +++ b/level_0/f_limit/c/limit/private-set.c @@ -14,7 +14,7 @@ extern "C" { destination->array[destination->used++] = source; - return F_none; + return F_okay; } #endif // !defined(_di_f_limit_sets_append_) || !defined(_di_f_limit_setss_append_) @@ -28,14 +28,14 @@ extern "C" { destination->array[destination->used++] = source.array[i]; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_limit_sets_append_) || !defined(_di_f_limit_sets_append_all_) || !defined(_di_f_limit_setss_append_all_) #if !defined(_di_f_limit_setss_adjust_) || !defined(_di_f_limit_setss_decimate_by_) f_status_t private_f_limit_setss_adjust(const f_number_unsigned_t length, f_limit_setss_t *setss) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < setss->size; ++i) { @@ -50,7 +50,7 @@ extern "C" { #if !defined(_di_f_limit_setss_decrease_by_) || !defined(_di_f_limit_setss_increase_) || !defined(_di_f_limit_setss_increase_by_) || !defined(_di_f_limit_setss_resize_) f_status_t private_f_limit_setss_resize(const f_number_unsigned_t length, f_limit_setss_t *setss) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < setss->size; ++i) { diff --git a/level_0/f_limit/c/limit/private-set.h b/level_0/f_limit/c/limit/private-set.h index f587d01..abf5846 100644 --- a/level_0/f_limit/c/limit/private-set.h +++ b/level_0/f_limit/c/limit/private-set.h @@ -26,7 +26,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_increase(). * @@ -50,7 +50,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_increase_by(). * @@ -75,7 +75,7 @@ extern "C" { * The setss array to adjust. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. @@ -104,7 +104,7 @@ extern "C" { * The setss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. diff --git a/level_0/f_limit/c/limit/private-value.c b/level_0/f_limit/c/limit/private-value.c index 105ddf1..e715bf3 100644 --- a/level_0/f_limit/c/limit/private-value.c +++ b/level_0/f_limit/c/limit/private-value.c @@ -14,7 +14,7 @@ extern "C" { destination->array[destination->used++] = source; - return F_none; + return F_okay; } #endif // !defined(_di_f_limit_values_append_) || !defined(_di_f_limit_valuess_append_) @@ -28,14 +28,14 @@ extern "C" { destination->array[destination->used++] = source.array[i]; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_limit_values_append_) || !defined(_di_f_limit_values_append_all_) || !defined(_di_f_limit_valuess_append_all_) #if !defined(_di_f_limit_valuess_adjust_) || !defined(_di_f_limit_valuess_decimate_by_) f_status_t private_f_limit_valuess_adjust(const f_number_unsigned_t length, f_limit_valuess_t *valuess) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < valuess->size; ++i) { @@ -50,7 +50,7 @@ extern "C" { #if !defined(_di_f_limit_valuess_decrease_by_) || !defined(_di_f_limit_valuess_increase_) || !defined(_di_f_limit_valuess_increase_by_) || !defined(_di_f_limit_valuess_resize_) f_status_t private_f_limit_valuess_resize(const f_number_unsigned_t length, f_limit_valuess_t *valuess) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < valuess->size; ++i) { diff --git a/level_0/f_limit/c/limit/private-value.h b/level_0/f_limit/c/limit/private-value.h index 4547886..0ea767e 100644 --- a/level_0/f_limit/c/limit/private-value.h +++ b/level_0/f_limit/c/limit/private-value.h @@ -26,7 +26,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_increase(). * @@ -50,7 +50,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_increase_by(). * @@ -75,7 +75,7 @@ extern "C" { * The valuess array to adjust. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. @@ -104,7 +104,7 @@ extern "C" { * The valuess array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. diff --git a/level_0/f_limit/c/limit/set.c b/level_0/f_limit/c/limit/set.c index ac187d5..b1f6b8b 100644 --- a/level_0/f_limit/c/limit/set.c +++ b/level_0/f_limit/c/limit/set.c @@ -114,7 +114,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_limit_setss_append_ @@ -139,7 +139,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_limit_setss_append_all_ diff --git a/level_0/f_limit/c/limit/set.h b/level_0/f_limit/c/limit/set.h index d006e0a..864fdae 100644 --- a/level_0/f_limit/c/limit/set.h +++ b/level_0/f_limit/c/limit/set.h @@ -134,7 +134,7 @@ extern "C" { * The destination sets the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -158,7 +158,7 @@ extern "C" { * The destination sets the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -325,7 +325,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -351,7 +351,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). diff --git a/level_0/f_limit/c/limit/value.c b/level_0/f_limit/c/limit/value.c index 9792dd2..846c856d 100644 --- a/level_0/f_limit/c/limit/value.c +++ b/level_0/f_limit/c/limit/value.c @@ -114,7 +114,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_limit_valuess_append_ @@ -139,7 +139,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_limit_valuess_append_all_ diff --git a/level_0/f_limit/c/limit/value.h b/level_0/f_limit/c/limit/value.h index f3067ae..4ff79ec 100644 --- a/level_0/f_limit/c/limit/value.h +++ b/level_0/f_limit/c/limit/value.h @@ -130,7 +130,7 @@ extern "C" { * The destination values the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -154,7 +154,7 @@ extern "C" { * The destination values the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -320,7 +320,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -346,7 +346,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). diff --git a/level_0/f_limit/tests/unit/c/test-limit-process.c b/level_0/f_limit/tests/unit/c/test-limit-process.c index b2c7848..f4ed7a1 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-process.c +++ b/level_0/f_limit/tests/unit/c/test-limit-process.c @@ -57,7 +57,7 @@ void test__f_limit_process__works(void **state) { const f_status_t status = f_limit_process(1, 1, &value, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.rlim_cur, value.rlim_cur); assert_int_equal(destination.rlim_max, value.rlim_max); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_adjust.c b/level_0/f_limit/tests/unit/c/test-limit-sets_adjust.c index 15d9275..99cd244 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_adjust.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_adjust.c @@ -29,7 +29,7 @@ void test__f_limit_sets_adjust__works(void **state) { { const f_status_t status = f_limit_sets_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_append.c b/level_0/f_limit/tests/unit/c/test-limit-sets_append.c index 14e089f..2170766 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_append.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_append.c @@ -24,7 +24,7 @@ void test__f_limit_sets_append__works(void **state) { { const f_status_t status = f_limit_sets_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].type, source.type); assert_int_equal(destination.array[0].value.rlim_cur, source.value.rlim_cur); diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_append_all.c b/level_0/f_limit/tests/unit/c/test-limit-sets_append_all.c index 7d35e58..1a1a20b 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_append_all.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_append_all.c @@ -25,7 +25,7 @@ void test__f_limit_sets_append_all__returns_data_not(void **state) { { const f_status_t status = f_limit_sets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -52,7 +52,7 @@ void test__f_limit_sets_append_all__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -66,7 +66,7 @@ void test__f_limit_sets_append_all__works(void **state) { { const f_status_t status = f_limit_sets_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_decimate_by.c b/level_0/f_limit/tests/unit/c/test-limit-sets_decimate_by.c index 9525417..4228684 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_decimate_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_decimate_by.c @@ -29,7 +29,7 @@ void test__f_limit_sets_decimate_by__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -37,7 +37,7 @@ void test__f_limit_sets_decimate_by__works(void **state) { { const f_status_t status = f_limit_sets_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_decrease_by.c b/level_0/f_limit/tests/unit/c/test-limit-sets_decrease_by.c index 6a7b4ad..8f33d85 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_decrease_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_decrease_by.c @@ -29,7 +29,7 @@ void test__f_limit_sets_decrease_by__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -37,7 +37,7 @@ void test__f_limit_sets_decrease_by__works(void **state) { { const f_status_t status = f_limit_sets_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_increase.c b/level_0/f_limit/tests/unit/c/test-limit-sets_increase.c index c4a9ebd..cb5997b 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_increase.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_increase.c @@ -29,7 +29,7 @@ void test__f_limit_sets_increase__returns_data_not(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_sets_increase__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -63,7 +63,7 @@ void test__f_limit_sets_increase__works(void **state) { const f_status_t status = f_limit_sets_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_increase_by.c b/level_0/f_limit/tests/unit/c/test-limit-sets_increase_by.c index dc040f1..905a0ae 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_increase_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_increase_by.c @@ -29,7 +29,7 @@ void test__f_limit_sets_increase_by__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -39,7 +39,7 @@ void test__f_limit_sets_increase_by__works(void **state) { const f_status_t status = f_limit_sets_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-sets_resize.c b/level_0/f_limit/tests/unit/c/test-limit-sets_resize.c index 5c5778a..1054845 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-sets_resize.c +++ b/level_0/f_limit/tests/unit/c/test-limit-sets_resize.c @@ -29,7 +29,7 @@ void test__f_limit_sets_resize__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_adjust.c b/level_0/f_limit/tests/unit/c/test-limit-setss_adjust.c index a411161..cf8c0f4 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_adjust.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_adjust.c @@ -29,7 +29,7 @@ void test__f_limit_setss_adjust__works(void **state) { { const f_status_t status = f_limit_setss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_append.c b/level_0/f_limit/tests/unit/c/test-limit-setss_append.c index 31dd6a3..2138099 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_append.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_append.c @@ -25,7 +25,7 @@ void test__f_limit_setss_append__returns_data_not(void **state) { { const f_status_t status = f_limit_sets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -51,7 +51,7 @@ void test__f_limit_setss_append__works(void **state) { { const f_status_t status = f_limit_sets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -66,7 +66,7 @@ void test__f_limit_setss_append__works(void **state) { { const f_status_t status = f_limit_setss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); assert_int_equal(destination.array[0].size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_append_all.c b/level_0/f_limit/tests/unit/c/test-limit-setss_append_all.c index 8ce38c3..ffca613 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_append_all.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_append_all.c @@ -25,7 +25,7 @@ void test__f_limit_setss_append_all__returns_data_not(void **state) { { const f_status_t status = f_limit_setss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -52,7 +52,7 @@ void test__f_limit_setss_append_all__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -62,7 +62,7 @@ void test__f_limit_setss_append_all__works(void **state) { const f_status_t status = f_limit_sets_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -78,7 +78,7 @@ void test__f_limit_setss_append_all__works(void **state) { { const f_status_t status = f_limit_setss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_decimate_by.c b/level_0/f_limit/tests/unit/c/test-limit-setss_decimate_by.c index 1ca2d82..485ba8f 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_decimate_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_decimate_by.c @@ -29,7 +29,7 @@ void test__f_limit_setss_decimate_by__returns_data_not(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_setss_decimate_by__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_setss_decimate_by__works(void **state) { { const f_status_t status = f_limit_setss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_decrease_by.c b/level_0/f_limit/tests/unit/c/test-limit-setss_decrease_by.c index 9b4841b..2133c87 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_decrease_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_decrease_by.c @@ -29,7 +29,7 @@ void test__f_limit_setss_decrease_by__returns_data_not(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_setss_decrease_by__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_setss_decrease_by__works(void **state) { { const f_status_t status = f_limit_setss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_increase.c b/level_0/f_limit/tests/unit/c/test-limit-setss_increase.c index 602f6d1..dfad94e 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_increase.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_increase.c @@ -29,7 +29,7 @@ void test__f_limit_setss_increase__returns_data_not(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_setss_increase__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -71,7 +71,7 @@ void test__f_limit_setss_increase__works(void **state) { const f_status_t status = f_limit_setss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_increase_by.c b/level_0/f_limit/tests/unit/c/test-limit-setss_increase_by.c index d4cae0a..1036ec4 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_increase_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_increase_by.c @@ -29,7 +29,7 @@ void test__f_limit_setss_increase_by__returns_data_not(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_setss_increase_by__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -71,7 +71,7 @@ void test__f_limit_setss_increase_by__works(void **state) { const f_status_t status = f_limit_setss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-setss_resize.c b/level_0/f_limit/tests/unit/c/test-limit-setss_resize.c index ee7fa19..b35c136 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-setss_resize.c +++ b/level_0/f_limit/tests/unit/c/test-limit-setss_resize.c @@ -29,7 +29,7 @@ void test__f_limit_setss_resize__works(void **state) { { const f_status_t status = f_limit_setss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_adjust.c b/level_0/f_limit/tests/unit/c/test-limit-values_adjust.c index 69711a0..683b912 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_adjust.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_adjust.c @@ -29,7 +29,7 @@ void test__f_limit_values_adjust__works(void **state) { { const f_status_t status = f_limit_values_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_append.c b/level_0/f_limit/tests/unit/c/test-limit-values_append.c index a97906c..fa42230 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_append.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_append.c @@ -24,7 +24,7 @@ void test__f_limit_values_append__works(void **state) { { const f_status_t status = f_limit_values_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].rlim_cur, source.rlim_cur); assert_int_equal(destination.array[0].rlim_max, source.rlim_max); diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_append_all.c b/level_0/f_limit/tests/unit/c/test-limit-values_append_all.c index ef20953..3905374 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_append_all.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_append_all.c @@ -25,7 +25,7 @@ void test__f_limit_values_append_all__returns_data_not(void **state) { { const f_status_t status = f_limit_values_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -52,7 +52,7 @@ void test__f_limit_values_append_all__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -65,7 +65,7 @@ void test__f_limit_values_append_all__works(void **state) { { const f_status_t status = f_limit_values_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_decimate_by.c b/level_0/f_limit/tests/unit/c/test-limit-values_decimate_by.c index ef85e3d..0bbb5ac 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_decimate_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_decimate_by.c @@ -29,7 +29,7 @@ void test__f_limit_values_decimate_by__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -37,7 +37,7 @@ void test__f_limit_values_decimate_by__works(void **state) { { const f_status_t status = f_limit_values_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_decrease_by.c b/level_0/f_limit/tests/unit/c/test-limit-values_decrease_by.c index b7a63b0..b29e1f1 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_decrease_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_decrease_by.c @@ -29,7 +29,7 @@ void test__f_limit_values_decrease_by__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -37,7 +37,7 @@ void test__f_limit_values_decrease_by__works(void **state) { { const f_status_t status = f_limit_values_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_increase.c b/level_0/f_limit/tests/unit/c/test-limit-values_increase.c index 12e2abc..04ee086 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_increase.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_increase.c @@ -29,7 +29,7 @@ void test__f_limit_values_increase__returns_data_not(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_values_increase__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -63,7 +63,7 @@ void test__f_limit_values_increase__works(void **state) { const f_status_t status = f_limit_values_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_increase_by.c b/level_0/f_limit/tests/unit/c/test-limit-values_increase_by.c index 6a6d427..360ed25 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_increase_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_increase_by.c @@ -29,7 +29,7 @@ void test__f_limit_values_increase_by__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -39,7 +39,7 @@ void test__f_limit_values_increase_by__works(void **state) { const f_status_t status = f_limit_values_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-values_resize.c b/level_0/f_limit/tests/unit/c/test-limit-values_resize.c index ee19651..9a62a59 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-values_resize.c +++ b/level_0/f_limit/tests/unit/c/test-limit-values_resize.c @@ -29,7 +29,7 @@ void test__f_limit_values_resize__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_adjust.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_adjust.c index 5fe47a5..5010b70 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_adjust.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_adjust.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_adjust__works(void **state) { { const f_status_t status = f_limit_valuess_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_append.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_append.c index 1370d3e..dbb3be2 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_append.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_append.c @@ -25,7 +25,7 @@ void test__f_limit_valuess_append__returns_data_not(void **state) { { const f_status_t status = f_limit_values_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -51,7 +51,7 @@ void test__f_limit_valuess_append__works(void **state) { { const f_status_t status = f_limit_values_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -65,7 +65,7 @@ void test__f_limit_valuess_append__works(void **state) { { const f_status_t status = f_limit_valuess_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); assert_int_equal(destination.array[0].size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_append_all.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_append_all.c index e4be78a..460ded5 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_append_all.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_append_all.c @@ -25,7 +25,7 @@ void test__f_limit_valuess_append_all__returns_data_not(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -52,7 +52,7 @@ void test__f_limit_valuess_append_all__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -62,7 +62,7 @@ void test__f_limit_valuess_append_all__works(void **state) { const f_status_t status = f_limit_values_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -77,7 +77,7 @@ void test__f_limit_valuess_append_all__works(void **state) { { const f_status_t status = f_limit_valuess_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_decimate_by.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_decimate_by.c index f0afbd4..94dcd19 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_decimate_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_decimate_by.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_decimate_by__returns_data_not(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_valuess_decimate_by__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_valuess_decimate_by__works(void **state) { { const f_status_t status = f_limit_valuess_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_decrease_by.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_decrease_by.c index 17ab8f0..6f4597a 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_decrease_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_decrease_by.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_decrease_by__returns_data_not(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_limit_valuess_decrease_by__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_valuess_decrease_by__works(void **state) { { const f_status_t status = f_limit_valuess_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_increase.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_increase.c index f49befc..0ff6c1c 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_increase.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_increase.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_increase__returns_data_not(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_valuess_increase__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -71,7 +71,7 @@ void test__f_limit_valuess_increase__works(void **state) { const f_status_t status = f_limit_valuess_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_increase_by.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_increase_by.c index 7e0a251..d72faaf 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_increase_by.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_increase_by.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_increase_by__returns_data_not(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_limit_valuess_increase_by__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -71,7 +71,7 @@ void test__f_limit_valuess_increase_by__works(void **state) { const f_status_t status = f_limit_valuess_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_limit/tests/unit/c/test-limit-valuess_resize.c b/level_0/f_limit/tests/unit/c/test-limit-valuess_resize.c index a6944e3..728498d 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-valuess_resize.c +++ b/level_0/f_limit/tests/unit/c/test-limit-valuess_resize.c @@ -29,7 +29,7 @@ void test__f_limit_valuess_resize__works(void **state) { { const f_status_t status = f_limit_valuess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_memory/c/memory.c b/level_0/f_memory/c/memory.c index 945c62d..3f47cf3 100644 --- a/level_0/f_memory/c/memory.c +++ b/level_0/f_memory/c/memory.c @@ -44,7 +44,7 @@ extern "C" { // It has been deallocated, so reset the pointer. *pointer = 0; - return F_none; + return F_okay; } #endif // _di_f_memory_delete_ @@ -69,7 +69,7 @@ extern "C" { // It has been deallocated, so reset the pointer. *pointer = 0; - return F_none; + return F_okay; } #endif // _di_f_memory_destroy_ @@ -83,7 +83,7 @@ extern "C" { // Prevent double-allocations and unnecessary frees. if (*pointer || !length) return F_data_not; - if ((*pointer = calloc(length, size))) return F_none; + if ((*pointer = calloc(length, size))) return F_okay; return F_status_set_error(F_memory_not); } @@ -124,7 +124,7 @@ extern "C" { memset(*pointer, 0, length); - return F_none; + return F_okay; } #endif // _di_f_memory_new_aligned_ diff --git a/level_0/f_memory/c/memory.h b/level_0/f_memory/c/memory.h index 3577916..b58f1c9 100644 --- a/level_0/f_memory/c/memory.h +++ b/level_0/f_memory/c/memory.h @@ -45,7 +45,7 @@ extern "C" { * A pointer to the address that will be resized. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_memory_not (with error bit) on out of memory. @@ -76,7 +76,7 @@ extern "C" { * A pointer to the address that will be freed. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_parameter (with error bit) if a parameter is invalid. @@ -102,7 +102,7 @@ extern "C" { * A pointer to the address that will be freed. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_parameter (with error bit) if a parameter is invalid. @@ -127,7 +127,7 @@ extern "C" { * Must be greater than 0. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_memory_not (with error bit) on allocation error. @@ -154,7 +154,7 @@ extern "C" { * A pointer that will be updated to the address of the newly allocated memory. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_memory_not (with error bit) on allocation error. @@ -185,7 +185,7 @@ extern "C" { * A pointer to the address that will be resized. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there was nothing to do. * * F_memory_not (with error bit) on out of memory. diff --git a/level_0/f_memory/c/memory/array.c b/level_0/f_memory/c/memory/array.c index 97d6215..cb7b471 100644 --- a/level_0/f_memory/c/memory/array.c +++ b/level_0/f_memory/c/memory/array.c @@ -49,7 +49,7 @@ extern "C" { ++(*used); - return F_none; + return F_okay; } #endif // _di_f_memory_array_append_ @@ -83,7 +83,7 @@ extern "C" { *used += amount; - return F_none; + return F_okay; } #endif // _di_f_memory_array_append_all_ diff --git a/level_0/f_memory/c/memory/array.h b/level_0/f_memory/c/memory/array.h index 53818be..646e791 100644 --- a/level_0/f_memory/c/memory/array.h +++ b/level_0/f_memory/c/memory/array.h @@ -36,7 +36,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_memory_not (with error bit) on out of memory. @@ -81,7 +81,7 @@ extern "C" { * The structure.size destination. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_memory_not (with error bit) on out of memory. @@ -133,7 +133,7 @@ extern "C" { * The structure.size destination. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_array_too_large (with error bit) if the new array length is too large. @@ -168,7 +168,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -201,7 +201,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -234,7 +234,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -269,7 +269,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_memory_not (with error bit) on out of memory. @@ -300,7 +300,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_memory_not (with error bit) on out of memory. diff --git a/level_0/f_memory/c/memory/arrays.h b/level_0/f_memory/c/memory/arrays.h index c9c41e9..acfb583 100644 --- a/level_0/f_memory/c/memory/arrays.h +++ b/level_0/f_memory/c/memory/arrays.h @@ -52,7 +52,7 @@ extern "C" { * The standard status codes similar to this function. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_memory_not (with error bit) on out of memory. @@ -98,7 +98,7 @@ extern "C" { * The standard status codes similar to this function. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_memory_not (with error bit) on out of memory. diff --git a/level_0/f_memory/c/memory/private-array.c b/level_0/f_memory/c/memory/private-array.c index 44c804d..893f816 100644 --- a/level_0/f_memory/c/memory/private-array.c +++ b/level_0/f_memory/c/memory/private-array.c @@ -20,7 +20,7 @@ extern "C" { *used = length; } - return F_none; + return F_okay; } #endif // !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_) @@ -38,7 +38,7 @@ extern "C" { *used = length; } - return F_none; + return F_okay; } #endif // !defined(_di_f_memory_array_append_) || !defined(_di_f_memory_array_append_all_) || !defined(_di_f_memory_array_decrease_by_) || !defined(_di_f_memory_array_increase_) || !defined(_di_f_memory_array_increase_by_) || !defined(_di_f_memory_array_resize_) diff --git a/level_0/f_memory/c/memory/private-array.h b/level_0/f_memory/c/memory/private-array.h index 65ebbfc..6c28a7d 100644 --- a/level_0/f_memory/c/memory/private-array.h +++ b/level_0/f_memory/c/memory/private-array.h @@ -33,7 +33,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_adjust(). * @@ -63,7 +63,7 @@ extern "C" { * The structure.size. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_resize(). * diff --git a/level_0/f_memory/c/private-memory.c b/level_0/f_memory/c/private-memory.c index 6115009..c25b2e7 100644 --- a/level_0/f_memory/c/private-memory.c +++ b/level_0/f_memory/c/private-memory.c @@ -36,7 +36,7 @@ extern "C" { *pointer = new_pointer; - return F_none; + return F_okay; } } else { @@ -45,12 +45,12 @@ extern "C" { // Assure that the pointer is always 0 after deallocation. *pointer = 0; - return F_none; + return F_okay; } } else if (length_new) { *pointer = calloc(type_size, length_new); - if (*pointer) return F_none; + if (*pointer) return F_okay; } else { return F_data_not; @@ -82,7 +82,7 @@ extern "C" { *pointer = new_pointer; - return F_none; + return F_okay; } } else { @@ -91,12 +91,12 @@ extern "C" { // Assure that the pointer is always 0 after deallocation. *pointer = 0; - return F_none; + return F_okay; } } else if (length_new) { *pointer = calloc(type_size, length_new); - if (*pointer) return F_none; + if (*pointer) return F_okay; } else { return F_data_not; diff --git a/level_0/f_memory/c/private-memory.h b/level_0/f_memory/c/private-memory.h index 1ffabaa..7da3d68 100644 --- a/level_0/f_memory/c/private-memory.h +++ b/level_0/f_memory/c/private-memory.h @@ -32,7 +32,7 @@ extern "C" { * The pointer to the memory to delete. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to do (length_old = length_new). * * F_memory_not (with error bit) on allocation error. @@ -65,7 +65,7 @@ extern "C" { * The pointer to the memory to delete. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to do (length_old = length_new). * * F_memory_not (with error bit) on allocation error. diff --git a/level_0/f_memory/tests/unit/c/test-memory-adjust.c b/level_0/f_memory/tests/unit/c/test-memory-adjust.c index 103a3fe..d82759a 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-adjust.c +++ b/level_0/f_memory/tests/unit/c/test-memory-adjust.c @@ -27,14 +27,14 @@ void test__f_memory_adjust__works(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_adjust(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_adjust.c b/level_0/f_memory/tests/unit/c/test-memory-array_adjust.c index 65c6d59..89b02c8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_adjust.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_adjust.c @@ -75,7 +75,7 @@ void test__f_memory_array_adjust__works(void **state) { { const f_status_t status = f_memory_array_adjust(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -83,7 +83,7 @@ void test__f_memory_array_adjust__works(void **state) { { const f_status_t status = f_memory_array_adjust(0, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_append.c b/level_0/f_memory/tests/unit/c/test-memory-array_append.c index b2c5f6f..4c8606f 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_append.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_append.c @@ -85,7 +85,7 @@ void test__f_memory_array_append__works(void **state) { { const f_status_t status = f_memory_array_append((void *) &number, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 1); assert_int_equal(data.array[0], number); assert_int_not_equal(data.size, 0); @@ -97,7 +97,7 @@ void test__f_memory_array_append__works(void **state) { { const f_status_t status = f_memory_array_append((void *) &number_next, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 2); assert_int_equal(data.array[0], number); assert_int_equal(data.array[1], number_next); diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_append_all.c b/level_0/f_memory/tests/unit/c/test-memory-array_append_all.c index 226e997..b730e2c 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_append_all.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_append_all.c @@ -103,7 +103,7 @@ void test__f_memory_array_append_all__works(void **state) { { const f_status_t status = f_memory_array_append_all((void *) sources.array, sources.used, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 2); assert_int_equal(data.array[0], sources.array[0]); assert_int_equal(data.array[1], sources.array[1]); @@ -118,7 +118,7 @@ void test__f_memory_array_append_all__works(void **state) { { const f_status_t status = f_memory_array_append_all((void *) sources_next.array, sources_next.used, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 3); assert_int_equal(data.array[0], sources.array[0]); assert_int_equal(data.array[1], sources.array[1]); diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_decimate_by.c b/level_0/f_memory/tests/unit/c/test-memory-array_decimate_by.c index 1d021e8..8325689 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_decimate_by.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_decimate_by.c @@ -61,7 +61,7 @@ void test__f_memory_array_decimate_by__returns_data_not(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -85,7 +85,7 @@ void test__f_memory_array_decimate_by__works(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -93,7 +93,7 @@ void test__f_memory_array_decimate_by__works(void **state) { { const f_status_t status = f_memory_array_decimate_by(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_decrease_by.c b/level_0/f_memory/tests/unit/c/test-memory-array_decrease_by.c index 97e50b5..9fdda6d 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_decrease_by.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_decrease_by.c @@ -61,7 +61,7 @@ void test__f_memory_array_decrease_by__returns_data_not(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -85,7 +85,7 @@ void test__f_memory_array_decrease_by__works(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -93,7 +93,7 @@ void test__f_memory_array_decrease_by__works(void **state) { { const f_status_t status = f_memory_array_decrease_by(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_increase.c b/level_0/f_memory/tests/unit/c/test-memory-array_increase.c index 4beca73..2210fa0 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_increase.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_increase.c @@ -76,7 +76,7 @@ void test__f_memory_array_increase__returns_data_not(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -100,7 +100,7 @@ void test__f_memory_array_increase__works(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -110,7 +110,7 @@ void test__f_memory_array_increase__works(void **state) { const f_status_t status = f_memory_array_increase(1, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length + 1); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_increase_by.c b/level_0/f_memory/tests/unit/c/test-memory-array_increase_by.c index 5ca37f2..e8151f8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_increase_by.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_increase_by.c @@ -67,7 +67,7 @@ void test__f_memory_array_increase_by__returns_data_not(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -99,7 +99,7 @@ void test__f_memory_array_increase_by__works(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -109,7 +109,7 @@ void test__f_memory_array_increase_by__works(void **state) { const f_status_t status = f_memory_array_increase_by(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-array_resize.c b/level_0/f_memory/tests/unit/c/test-memory-array_resize.c index 0a170c4..a1285c8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-array_resize.c +++ b/level_0/f_memory/tests/unit/c/test-memory-array_resize.c @@ -75,7 +75,7 @@ void test__f_memory_array_resize__works(void **state) { { const f_status_t status = f_memory_array_resize(length, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -83,7 +83,7 @@ void test__f_memory_array_resize__works(void **state) { { const f_status_t status = f_memory_array_resize(0, sizeof(int), (void **) &data.array, &data.used, &data.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-arrays_adjust.c b/level_0/f_memory/tests/unit/c/test-memory-arrays_adjust.c index 5997454..20886ae 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-arrays_adjust.c +++ b/level_0/f_memory/tests/unit/c/test-memory-arrays_adjust.c @@ -83,7 +83,7 @@ void test__f_memory_arrays_adjust__works(void **state) { { const f_status_t status = f_memory_arrays_adjust(length, sizeof(test_memory_array_t), (void **) &data.array, &data.used, &data.size, &test_memory_array_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -94,7 +94,7 @@ void test__f_memory_arrays_adjust__works(void **state) { const f_status_t status = f_memory_array_adjust(length_inner, sizeof(int), (void **) &data.array[0].array, &data.array[0].used, &data.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.array[0].used, 0); assert_int_equal(data.array[0].size, length_inner); } @@ -102,7 +102,7 @@ void test__f_memory_arrays_adjust__works(void **state) { { const f_status_t status = f_memory_arrays_adjust(0, sizeof(test_memory_array_t), (void **) &data.array, &data.used, &data.size, &test_memory_array_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-arrays_resize.c b/level_0/f_memory/tests/unit/c/test-memory-arrays_resize.c index 7ff2633..f994856 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-arrays_resize.c +++ b/level_0/f_memory/tests/unit/c/test-memory-arrays_resize.c @@ -83,7 +83,7 @@ void test__f_memory_arrays_resize__works(void **state) { { const f_status_t status = f_memory_arrays_resize(length, sizeof(test_memory_array_t), (void **) &data.array, &data.used, &data.size, &test_memory_array_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -94,7 +94,7 @@ void test__f_memory_arrays_resize__works(void **state) { const f_status_t status = f_memory_array_resize(length_inner, sizeof(int), (void **) &data.array[0].array, &data.array[0].used, &data.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.array[0].used, 0); assert_int_equal(data.array[0].size, length_inner); } @@ -102,7 +102,7 @@ void test__f_memory_arrays_resize__works(void **state) { { const f_status_t status = f_memory_arrays_resize(0, sizeof(test_memory_array_t), (void **) &data.array, &data.used, &data.size, &test_memory_array_callback); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_memory/tests/unit/c/test-memory-delete.c b/level_0/f_memory/tests/unit/c/test-memory-delete.c index 1caf20e..0f3d756 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-delete.c +++ b/level_0/f_memory/tests/unit/c/test-memory-delete.c @@ -12,21 +12,21 @@ void test__f_memory_delete__frees_adjusted_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_adjust(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_delete(4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -38,14 +38,14 @@ void test__f_memory_delete__frees_aligned_memory(void **state) { { const f_status_t status = f_memory_new_aligned(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_delete(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -57,14 +57,14 @@ void test__f_memory_delete__frees_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_delete(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -76,21 +76,21 @@ void test__f_memory_delete__frees_resized_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_resize(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_delete(4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } diff --git a/level_0/f_memory/tests/unit/c/test-memory-destroy.c b/level_0/f_memory/tests/unit/c/test-memory-destroy.c index a70a340..ddc0ae8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-destroy.c +++ b/level_0/f_memory/tests/unit/c/test-memory-destroy.c @@ -12,21 +12,21 @@ void test__f_memory_destroy__frees_adjusted_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_adjust(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_destroy(4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -38,14 +38,14 @@ void test__f_memory_destroy__frees_aligned_memory(void **state) { { const f_status_t status = f_memory_new_aligned(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_destroy(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -57,14 +57,14 @@ void test__f_memory_destroy__frees_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_destroy(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } @@ -76,21 +76,21 @@ void test__f_memory_destroy__frees_resized_memory(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_resize(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_destroy(4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_null(data); } } diff --git a/level_0/f_memory/tests/unit/c/test-memory-new.c b/level_0/f_memory/tests/unit/c/test-memory-new.c index 1b91af3..da1bffc 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-new.c +++ b/level_0/f_memory/tests/unit/c/test-memory-new.c @@ -20,7 +20,7 @@ void test__f_memory_new__works(void **state) { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); free((void *) data); diff --git a/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c b/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c index 34c4dab..4b81df8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c +++ b/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c @@ -20,7 +20,7 @@ void test__f_memory_new_aligned__works(void **state) { const f_status_t status = f_memory_new_aligned(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); free((void *) data); diff --git a/level_0/f_memory/tests/unit/c/test-memory-resize.c b/level_0/f_memory/tests/unit/c/test-memory-resize.c index d1b44b0..f762237 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-resize.c +++ b/level_0/f_memory/tests/unit/c/test-memory-resize.c @@ -41,14 +41,14 @@ void test__f_memory_resize__works(void **state) { { const f_status_t status = f_memory_new(1, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } { const f_status_t status = f_memory_resize(1, 4, sizeof(uint16_t), (void **) &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_non_null(data); } diff --git a/level_0/f_memory/tests/unit/c/test-memory.c b/level_0/f_memory/tests/unit/c/test-memory.c index 8636a84..ccf5cfc 100644 --- a/level_0/f_memory/tests/unit/c/test-memory.c +++ b/level_0/f_memory/tests/unit/c/test-memory.c @@ -90,7 +90,7 @@ f_status_t test_memory_array_callback(const f_number_unsigned_t start, const f_n { test_memory_array_t * const array = (test_memory_array_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < size; ++i) { @@ -99,7 +99,7 @@ f_status_t test_memory_array_callback(const f_number_unsigned_t start, const f_n } // for } - return F_none; + return F_okay; } #ifdef __cplusplus diff --git a/level_0/f_network/c/network.c b/level_0/f_network/c/network.c index d52bb0d..fb1a172 100644 --- a/level_0/f_network/c/network.c +++ b/level_0/f_network/c/network.c @@ -12,7 +12,7 @@ extern "C" { *to = htonl(from); - return F_none; + return F_okay; } #endif // _di_f_network_from_host_long_ @@ -24,7 +24,7 @@ extern "C" { *to = htons(from); - return F_none; + return F_okay; } #endif // _di_f_network_from_host_short_ @@ -53,7 +53,7 @@ extern "C" { memcpy((void *) to, (void *) result, sizeof(struct hostent)); - return F_none; + return F_okay; } #endif // _di_f_network_from_ip_address_ @@ -80,7 +80,7 @@ extern "C" { memcpy((void *) to, (void *) result, sizeof(struct hostent)); - return F_none; + return F_okay; } #endif // _di_f_network_from_ip_name_ @@ -98,7 +98,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_network_from_ip_string_ @@ -430,7 +430,7 @@ extern "C" { *to = ntohl(from); - return F_none; + return F_okay; } #endif // _di_f_network_to_host_long_ @@ -442,7 +442,7 @@ extern "C" { *to = ntohs(from); - return F_none; + return F_okay; } #endif // _di_f_network_to_host_short_ @@ -473,7 +473,7 @@ extern "C" { // The string should be NULL terminated, but in case it is not, ensure one always exists. to->string[to->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_network_to_ip_string_ diff --git a/level_0/f_network/c/network.h b/level_0/f_network/c/network.h index 0230957..8ce94e9 100644 --- a/level_0/f_network/c/network.h +++ b/level_0/f_network/c/network.h @@ -38,7 +38,7 @@ extern "C" { * The converted long integer in network byte order. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -57,7 +57,7 @@ extern "C" { * The converted short integer in network byte order. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -82,7 +82,7 @@ extern "C" { * The converted IP host entity. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to convert (to.type is f_network_family_none_e). * * F_again (with error bit) Resolver temporarily failed, try again. @@ -112,7 +112,7 @@ extern "C" { * The converted IP host entity. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to convert (from.used is 0). * * F_again (with error bit) Resolver temporarily failed, try again. @@ -138,7 +138,7 @@ extern "C" { * The converted IP version 4 or version 6 family integer. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to convert (to.type is f_network_family_none_e or from.used is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -201,7 +201,7 @@ extern "C" { * The converted long integer in host byte order. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -220,7 +220,7 @@ extern "C" { * The converted short integer in host byte order. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -241,7 +241,7 @@ extern "C" { * The converted human-friendly IP address string. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to convert (from.type is f_network_family_none_e). * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_network/tests/unit/c/test-network-from_host_long.c b/level_0/f_network/tests/unit/c/test-network-from_host_long.c index 9c337a2..f57d988 100644 --- a/level_0/f_network/tests/unit/c/test-network-from_host_long.c +++ b/level_0/f_network/tests/unit/c/test-network-from_host_long.c @@ -24,7 +24,7 @@ void test__f_network_from_host_long__works(void **state) { const f_status_t status = f_network_from_host_long(0, &to); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(to, expect); } } diff --git a/level_0/f_network/tests/unit/c/test-network-from_host_short.c b/level_0/f_network/tests/unit/c/test-network-from_host_short.c index 1bece4e..144d6bd 100644 --- a/level_0/f_network/tests/unit/c/test-network-from_host_short.c +++ b/level_0/f_network/tests/unit/c/test-network-from_host_short.c @@ -24,7 +24,7 @@ void test__f_network_from_host_short__works(void **state) { const f_status_t status = f_network_from_host_short(0, &to); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(to, expect); } } diff --git a/level_0/f_network/tests/unit/c/test-network-from_ip_address.c b/level_0/f_network/tests/unit/c/test-network-from_ip_address.c index f257e29..1f8a48e 100644 --- a/level_0/f_network/tests/unit/c/test-network-from_ip_address.c +++ b/level_0/f_network/tests/unit/c/test-network-from_ip_address.c @@ -98,7 +98,7 @@ void test__f_network_from_ip_address__works(void **state) { const f_status_t status = f_network_from_ip_address(family, &host); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(host.h_name, mocked.h_name); assert_int_equal(host.h_aliases, mocked.h_aliases); assert_int_equal(host.h_length, mocked.h_length); @@ -117,7 +117,7 @@ void test__f_network_from_ip_address__works(void **state) { const f_status_t status = f_network_from_ip_address(family, &host); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(host.h_name, mocked.h_name); assert_int_equal(host.h_aliases, mocked.h_aliases); assert_int_equal(host.h_length, mocked.h_length); diff --git a/level_0/f_network/tests/unit/c/test-network-from_ip_name.c b/level_0/f_network/tests/unit/c/test-network-from_ip_name.c index ad06fbf..af7c426 100644 --- a/level_0/f_network/tests/unit/c/test-network-from_ip_name.c +++ b/level_0/f_network/tests/unit/c/test-network-from_ip_name.c @@ -90,7 +90,7 @@ void test__f_network_from_ip_name__works(void **state) { const f_status_t status = f_network_from_ip_name(ip, &host); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(host.h_name, mocked.h_name); assert_int_equal(host.h_aliases, mocked.h_aliases); assert_int_equal(host.h_length, mocked.h_length); diff --git a/level_0/f_network/tests/unit/c/test-network-from_ip_string.c b/level_0/f_network/tests/unit/c/test-network-from_ip_string.c index 8be5d3e..fcfddb0 100644 --- a/level_0/f_network/tests/unit/c/test-network-from_ip_string.c +++ b/level_0/f_network/tests/unit/c/test-network-from_ip_string.c @@ -81,7 +81,7 @@ void test__f_network_from_ip_string__works(void **state) { const f_status_t status = f_network_from_ip_string(ip, &family); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } family.type = f_network_family_ip_6_e; @@ -91,7 +91,7 @@ void test__f_network_from_ip_string__works(void **state) { const f_status_t status = f_network_from_ip_string(ip, &family); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_network/tests/unit/c/test-network-is_ip_address.c b/level_0/f_network/tests/unit/c/test-network-is_ip_address.c index a0dde5b..21044e6 100644 --- a/level_0/f_network/tests/unit/c/test-network-is_ip_address.c +++ b/level_0/f_network/tests/unit/c/test-network-is_ip_address.c @@ -32,7 +32,7 @@ void test__f_network_is_ip_address__returns_false(void **state) { for (uint8_t i = 0; i < 7; ++i) { - state_data.status = F_none; + state_data.status = F_okay; f_network_is_ip_address(ips[i], 0, &state_data); @@ -62,7 +62,7 @@ void test__f_network_is_ip_address__returns_network_version_four(void **state) { for (uint8_t i = 0; i < 4; ++i) { - state_data.status = F_none; + state_data.status = F_okay; port = 100000; f_network_is_ip_address(ips[i], &port, &state_data); @@ -98,7 +98,7 @@ void test__f_network_is_ip_address__returns_network_version_four_not(void **stat for (uint8_t i = 0; i < 17; ++i) { - state_data.status = F_none; + state_data.status = F_okay; f_network_is_ip_address(ips[i], 0, &state_data); @@ -213,7 +213,7 @@ void test__f_network_is_ip_address__returns_network_version_six_not(void **state for (uint8_t i = 0; i < 98; ++i) { - state_data.status = F_none; + state_data.status = F_okay; f_network_is_ip_address(ips[i], 0, &state_data); @@ -319,7 +319,7 @@ void test__f_network_is_ip_address__returns_network_version_six(void **state) { for (uint8_t i = 0; i < 42; ++i) { - state_data.status = F_none; + state_data.status = F_okay; port = 100000; f_network_is_ip_address(ips[i], &port, &state_data); diff --git a/level_0/f_network/tests/unit/c/test-network-to_host_long.c b/level_0/f_network/tests/unit/c/test-network-to_host_long.c index 9767090..4b6cfde 100644 --- a/level_0/f_network/tests/unit/c/test-network-to_host_long.c +++ b/level_0/f_network/tests/unit/c/test-network-to_host_long.c @@ -24,7 +24,7 @@ void test__f_network_to_host_long__works(void **state) { const f_status_t status = f_network_to_host_long(0, &to); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(to, expect); } } diff --git a/level_0/f_network/tests/unit/c/test-network-to_host_short.c b/level_0/f_network/tests/unit/c/test-network-to_host_short.c index 30a278f..6c89c64 100644 --- a/level_0/f_network/tests/unit/c/test-network-to_host_short.c +++ b/level_0/f_network/tests/unit/c/test-network-to_host_short.c @@ -24,7 +24,7 @@ void test__f_network_to_host_short__works(void **state) { const f_status_t status = f_network_to_host_short(0, &to); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(to, expect); } } diff --git a/level_0/f_network/tests/unit/c/test-network-to_ip_string.c b/level_0/f_network/tests/unit/c/test-network-to_ip_string.c index 6abccc8..cdc00f2 100644 --- a/level_0/f_network/tests/unit/c/test-network-to_ip_string.c +++ b/level_0/f_network/tests/unit/c/test-network-to_ip_string.c @@ -77,7 +77,7 @@ void test__f_network_to_ip_string__works(void **state) { const f_status_t status = f_network_to_ip_string(family, &ip); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(ip.used, expect.used); assert_string_equal(ip.string, expect.string); } @@ -94,7 +94,7 @@ void test__f_network_to_ip_string__works(void **state) { const f_status_t status = f_network_to_ip_string(family, &ip); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(ip.used, expect.used); assert_string_equal(ip.string, expect.string); } diff --git a/level_0/f_parse/c/parse.c b/level_0/f_parse/c/parse.c index 9c62409..6b3e1ac 100644 --- a/level_0/f_parse/c/parse.c +++ b/level_0/f_parse/c/parse.c @@ -16,7 +16,7 @@ extern "C" { const unsigned short seek_width = macro_f_utf_char_t_width(seek_to_this); - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = 0; @@ -29,8 +29,8 @@ extern "C" { if (!width) { width = 1; - if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_none_eol; - if (seek_width == width && buffer.string[range->start] == seek_to_this) return F_none; + if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; + if (seek_width == width && buffer.string[range->start] == seek_to_this) return F_okay; } // Do not operate on UTF-8 fragments that are not the first byte of the character. else if (width == 1) { @@ -45,17 +45,17 @@ extern "C" { status = f_utf_char_to_character(buffer.string + range->start, width_max, &character); if (F_status_is_error(status)) return status; - if (character == seek_to_this) return F_none; + if (character == seek_to_this) return F_okay; } } range->start += width; - if (range->start >= range->stop) return F_none_stop; - if (range->start > buffer.used) return F_none_eos; + if (range->start >= range->stop) return F_okay_stop; + if (range->start > buffer.used) return F_okay_eos; } // while - return F_none_eos; + return F_okay_eos; } #endif // _di_f_parse_dynamic_seek_line_to_utf_character_ @@ -69,7 +69,7 @@ extern "C" { if (range->start > range->stop) return F_data_not_stop; if (range->start >= buffer.used) return F_data_not_eos; - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = (range->stop - range->start) + 1; @@ -77,7 +77,7 @@ extern "C" { while (buffer.string[range->start] == placeholder || (status = f_utf_is_graph(buffer.string + range->start, width_max)) == F_false) { if (F_status_is_error(status)) return status; - if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; width = macro_f_utf_byte_width_is(buffer.string[range->start]); @@ -96,15 +96,15 @@ extern "C" { range->start += width; - if (range->start > range->stop) return F_none_stop; - if (range->start >= buffer.used) return F_none_eos; + if (range->start > range->stop) return F_okay_stop; + if (range->start >= buffer.used) return F_okay_eos; width_max = (range->stop - range->start) + 1; } // while if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_parse_dynamic_seek_line_until_graph_ @@ -118,7 +118,7 @@ extern "C" { if (range->start > range->stop) return F_data_not_stop; if (range->start >= buffer.used) return F_data_not_eos; - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = (range->stop - range->start) + 1; @@ -126,7 +126,7 @@ extern "C" { while (buffer.string[range->start] == placeholder || (status = f_utf_is_whitespace(buffer.string + range->start, width_max, F_false)) == F_false) { if (F_status_is_error(status)) return status; - if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (buffer.string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; width = macro_f_utf_byte_width_is(buffer.string[range->start]); @@ -145,15 +145,15 @@ extern "C" { range->start += width; - if (range->start > range->stop) return F_none_stop; - if (range->start >= buffer.used) return F_none_eos; + if (range->start > range->stop) return F_okay_stop; + if (range->start >= buffer.used) return F_okay_eos; width_max = (range->stop - range->start) + 1; } // while if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_parse_dynamic_seek_line_until_graph_non_ @@ -170,7 +170,7 @@ extern "C" { const unsigned short seek_width = macro_f_utf_char_t_width(seek_to_this); - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; @@ -185,7 +185,7 @@ extern "C" { width = 1; if (seek_width == width) { - if (buffer.string[range->start] == seek_to_this) return F_none; + if (buffer.string[range->start] == seek_to_this) return F_okay; } } // Do not operate on UTF-8 fragments that are not the first byte of the character. @@ -201,16 +201,16 @@ extern "C" { status = f_utf_char_to_character(buffer.string + range->start, width_max, &character); if (F_status_is_error(status)) return status; - if (character == seek_to_this) return F_none; + if (character == seek_to_this) return F_okay; } } range->start += width; } // while - if (range->start >= range->stop) return F_none_stop; + if (range->start >= range->stop) return F_okay_stop; - return F_none_eos; + return F_okay_eos; } #endif // _di_f_parse_dynamic_seek_to_utf_character_ @@ -252,7 +252,7 @@ extern "C" { return F_found_not; } - f_status_t status = F_none; + f_status_t status = F_okay; for (; range->start <= range->stop && range->start < buffer.used; ) { @@ -477,7 +477,7 @@ extern "C" { const unsigned short seek_width = macro_f_utf_char_t_width(seek_to); - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = (range->stop - range->start) + 1; @@ -491,8 +491,8 @@ extern "C" { if (!width) { width = 1; - if (string[range->start] == f_string_eol_s.string[0]) return F_none_eol; - if (seek_width == width && string[range->start] == seek_to) return F_none; + if (string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; + if (seek_width == width && string[range->start] == seek_to) return F_okay; } // Do not operate on UTF-8 fragments that are not the first byte of the character. else if (width == 1) { @@ -506,12 +506,12 @@ extern "C" { status = f_utf_char_to_character(string + range->start, width_max, &character); if (F_status_is_error(status)) return status; - if (character == seek_to) return F_none; + if (character == seek_to) return F_okay; } } } // for - return F_none_stop; + return F_okay_stop; } #endif // _di_f_parse_seek_line_to_utf_character_ @@ -523,7 +523,7 @@ extern "C" { if (range->start > range->stop) return F_data_not_stop; - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = (range->stop - range->start) + 1; @@ -531,7 +531,7 @@ extern "C" { while (string[range->start] == placeholder || (status = f_utf_is_graph(string + range->start, width_max)) == F_false) { if (F_status_is_error(status)) return status; - if (string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; width = macro_f_utf_byte_width_is(string[range->start]); @@ -549,14 +549,14 @@ extern "C" { range->start += width; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; width_max = (range->stop - range->start) + 1; } // while if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_parse_seek_line_until_graph_ @@ -568,7 +568,7 @@ extern "C" { if (range->start > range->stop) return F_data_not_stop; - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = (range->stop - range->start) + 1; @@ -577,7 +577,7 @@ extern "C" { if (F_status_is_error(status)) return status; - if (string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; width = macro_f_utf_byte_width_is(string[range->start]); @@ -595,14 +595,14 @@ extern "C" { range->start += width; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; width_max = (range->stop - range->start) + 1; } // while if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_parse_seek_line_until_graph_non_ @@ -616,7 +616,7 @@ extern "C" { const unsigned short seek_width = macro_f_utf_char_t_width(seek_to); - f_status_t status = F_none; + f_status_t status = F_okay; unsigned short width = 0; f_number_unsigned_t width_max = 0; @@ -630,7 +630,7 @@ extern "C" { if (!width) { width = 1; - if (seek_width == width && string[range->start] == seek_to) return F_none; + if (seek_width == width && string[range->start] == seek_to) return F_okay; } // Do not operate on UTF-8 fragments that are not the first byte of the character. else if (width == 1) { @@ -644,12 +644,12 @@ extern "C" { status = f_utf_char_to_character(string + range->start, width_max, &character); if (F_status_is_error(status)) return status; - if (character == seek_to) return F_none; + if (character == seek_to) return F_okay; } } } // for - return F_none_stop; + return F_okay_stop; } #endif // _di_f_parse_seek_to_utf_character_ diff --git a/level_0/f_parse/c/parse.h b/level_0/f_parse/c/parse.h index 41fff43..539d946 100644 --- a/level_0/f_parse/c/parse.h +++ b/level_0/f_parse/c/parse.h @@ -38,10 +38,10 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_eos on success, but the range.start >= buffer.used. * F_data_not_stop on success, but the range.start > range.stop. @@ -71,10 +71,10 @@ extern "C" { * A range within the buffer representing the start and stop locations. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_eos on success, but the range.start >= buffer.used. * F_data_not_stop on success, but the range.start > range.stop. @@ -104,10 +104,10 @@ extern "C" { * A range within the buffer representing the start and stop locations. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_eos on success, but the range.start >= buffer.used. * F_data_not_stop on success, but the range.start > range.stop. @@ -138,10 +138,10 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_eos on success, but the range.start >= buffer.used. * F_data_not_stop on success, but the range.start > range.stop. @@ -228,8 +228,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. * F_data_not_stop if range.start > range.stop. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment. @@ -257,8 +257,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. * F_data_not_stop if range.start > range.stop. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment. @@ -286,9 +286,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped stop location. * F_data_not_stop if range.start > range.stop. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment. @@ -318,8 +318,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_stop on success, but stopped stop location. * F_data_not_stop if range.start > range.stop. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment. diff --git a/level_0/f_parse/c/parse/utf.c b/level_0/f_parse/c/parse/utf.c index f28b8dd..0310853 100644 --- a/level_0/f_parse/c/parse/utf.c +++ b/level_0/f_parse/c/parse/utf.c @@ -23,7 +23,7 @@ extern "C" { while (buffer.string[range->start] != seek_to_character) { if (buffer.string[range->start++] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } if (macro_f_utf_char_t_width_is(buffer.string[range->start]) == 1) { @@ -31,15 +31,15 @@ extern "C" { } if (range->start >= buffer.used) { - return F_none_eos; + return F_okay_eos; } if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while - return F_none; + return F_okay; } #endif // _di_f_parse_utf_dynamic_seek_line_to_char_ @@ -53,7 +53,7 @@ extern "C" { if (!buffer.used) return F_data_not; if (range->start > range->stop) return F_data_not_stop; - f_status_t status = F_none; + f_status_t status = F_okay; if (macro_f_utf_char_t_width_is(buffer.string[range->start]) == 1) { return F_status_set_error(F_utf_fragment); @@ -66,7 +66,7 @@ extern "C" { } if (buffer.string[range->start++] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } if (macro_f_utf_char_t_width_is(buffer.string[range->start]) == 1) { @@ -74,11 +74,11 @@ extern "C" { } if (range->start >= buffer.used) { - return F_none_eos; + return F_okay_eos; } if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while @@ -86,7 +86,7 @@ extern "C" { return status; } - return F_none; + return F_okay; } #endif // _di_f_parse_utf_dynamic_seek_line_until_graph_ @@ -100,7 +100,7 @@ extern "C" { if (!buffer.used) return F_data_not; if (range->start > range->stop) return F_data_not_stop; - f_status_t status = F_none; + f_status_t status = F_okay; if (macro_f_utf_char_t_width_is(buffer.string[range->start]) == 1) { return F_status_set_error(F_utf_fragment); @@ -109,7 +109,7 @@ extern "C" { while (buffer.string[range->start] == placeholder || (status = f_utf_character_is_whitespace(buffer.string[range->start], F_false)) == F_false) { if (F_status_is_error(status)) return status; - if (buffer.string[range->start] == f_utf_char_eol_s) return F_none_eol; + if (buffer.string[range->start] == f_utf_char_eol_s) return F_okay_eol; ++range->start; @@ -117,13 +117,13 @@ extern "C" { return F_status_set_error(F_utf_fragment); } - if (range->start >= buffer.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= buffer.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_parse_utf_dynamic_seek_line_until_graph_non_ @@ -152,15 +152,15 @@ extern "C" { } if (range->start >= buffer.used) { - return F_none_eos; + return F_okay_eos; } if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while - return F_none; + return F_okay; } #endif // _di_f_parse_utf_dynamic_seek_to_char_ @@ -183,15 +183,15 @@ extern "C" { } if (string[range->start] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } if (string[range->start] == seek_to_character) { - return F_none; + return F_okay; } } // for - return F_none_stop; + return F_okay_stop; } #endif // _di_f_parse_utf_seek_line_to_char_ @@ -205,7 +205,7 @@ extern "C" { return F_data_not_stop; } - f_status_t status = F_none; + f_status_t status = F_okay; if (macro_f_utf_char_t_width_is(string[range->start]) == 1) { return F_status_set_error(F_utf_fragment); @@ -218,7 +218,7 @@ extern "C" { } if (string[range->start++] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } if (macro_f_utf_char_t_width_is(string[range->start]) == 1) { @@ -226,7 +226,7 @@ extern "C" { } if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while @@ -234,7 +234,7 @@ extern "C" { return status; } - return F_none; + return F_okay; } #endif // _di_f_parse_utf_seek_line_until_graph_ @@ -248,7 +248,7 @@ extern "C" { return F_data_not_stop; } - f_status_t status = F_none; + f_status_t status = F_okay; if (macro_f_utf_char_t_width_is(string[range->start]) == 1) { return F_status_set_error(F_utf_fragment); @@ -261,7 +261,7 @@ extern "C" { } if (string[range->start++] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } if (macro_f_utf_char_t_width_is(string[range->start]) == 1) { @@ -269,7 +269,7 @@ extern "C" { } if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while @@ -277,7 +277,7 @@ extern "C" { return status; } - return F_none; + return F_okay; } #endif // _di_f_parse_utf_seek_line_until_graph_non_ @@ -300,7 +300,7 @@ extern "C" { while (range->start <= range->stop) { if (string[range->start++] == seek_to_character) { - return F_none; + return F_okay; } if (macro_f_utf_char_t_width_is(string[range->start]) == 1) { @@ -308,7 +308,7 @@ extern "C" { } } // while - return F_none_stop; + return F_okay_stop; } #endif // _di_fl_utf_string_seek_to_utf_character_ diff --git a/level_0/f_parse/c/parse/utf.h b/level_0/f_parse/c/parse/utf.h index c8b7840..208e263 100644 --- a/level_0/f_parse/c/parse/utf.h +++ b/level_0/f_parse/c/parse/utf.h @@ -26,9 +26,9 @@ extern "C" { * A single-width character. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. * F_data_not if buffer length is 0. * F_data_not_stop if range.start > range.stop. * @@ -50,9 +50,9 @@ extern "C" { * A UTF-8 character representing a placeholder to ignore (may be NULL). * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. * F_data_not if buffer length is 0. * F_data_not_stop if range.start > range.stop. * @@ -78,10 +78,10 @@ extern "C" { * A single-width character representing a placeholder to ignore (may be NULL). * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped stop location. * F_data_not if buffer length is 0. * F_data_not_stop if range.start > range.stop. * @@ -108,9 +108,9 @@ extern "C" { * A single-width non-UTF-8 character. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped stop location. * F_data_not if buffer length is 0. * F_data_not_stop if range.start > range.stop. * @@ -133,9 +133,9 @@ extern "C" { * A single-width character. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_eos on success, but stopped at end of buffer. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_eos on success, but stopped at end of buffer. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -157,8 +157,8 @@ extern "C" { * A UTF-8 character representing a placeholder to ignore (may be NULL). * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -184,9 +184,9 @@ extern "C" { * A UTF-8 character representing a placeholder to ignore (may be NULL). * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -212,9 +212,9 @@ extern "C" { * A single-width non-UTF-8 character. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of buffer. - * F_none_stop on success, but stopped stop location. + * F_okay on success. + * F_okay_eos on success, but stopped at end of buffer. + * F_okay_stop on success, but stopped stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_path/c/path.c b/level_0/f_path/c/path.c index c321e11..3d2a1e2 100644 --- a/level_0/f_path/c/path.c +++ b/level_0/f_path/c/path.c @@ -21,7 +21,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_path_change_ @@ -45,7 +45,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_path_change_at_ @@ -87,7 +87,7 @@ extern "C" { path->string[length] = 0; path->used = length; - return F_none; + return F_okay; } #endif // _di_f_path_current_ @@ -100,7 +100,7 @@ extern "C" { directory->used = 0; if (!argument.used) { - return F_none; + return F_okay; } // Ensure enough space is available for terminating slash and terminating NULL. @@ -146,7 +146,7 @@ extern "C" { directory->string[directory->used] = 0; - return F_none; + return F_okay; } #endif // _f_path_directory_cleanup_ diff --git a/level_0/f_path/c/path.h b/level_0/f_path/c/path.h index f6a475d..948658e 100644 --- a/level_0/f_path/c/path.h +++ b/level_0/f_path/c/path.h @@ -42,7 +42,7 @@ extern "C" { * The file path. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -68,7 +68,7 @@ extern "C" { * An open directory file descriptor, in which path is relative to. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -100,7 +100,7 @@ extern "C" { * This will be NULL terminated at real->used + 1. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. @@ -140,7 +140,7 @@ extern "C" { * The directory string is replaced by this function. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -253,7 +253,7 @@ extern "C" { * This will be NULL terminated at real->used + 1. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer (with error bit) if the buffer is invalid. diff --git a/level_0/f_path/c/private-path.c b/level_0/f_path/c/private-path.c index 44f1353..648b851 100644 --- a/level_0/f_path/c/private-path.c +++ b/level_0/f_path/c/private-path.c @@ -42,7 +42,7 @@ extern "C" { real->string[length] = 0; real->used = length; - return F_none; + return F_okay; } #endif // !defined(_di_f_path_current_) || !defined(_di_f_path_real_) diff --git a/level_0/f_path/c/private-path.h b/level_0/f_path/c/private-path.h index bce5b29..40e97c9 100644 --- a/level_0/f_path/c/private-path.h +++ b/level_0/f_path/c/private-path.h @@ -28,7 +28,7 @@ extern "C" { * This will be NULL terminated at real->used + 1. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_directory (with error bit) if a supposed directory in path is not actually a directory. diff --git a/level_0/f_path/tests/unit/c/test-path-change.c b/level_0/f_path/tests/unit/c/test-path-change.c index b0cd6d5..2c21902 100644 --- a/level_0/f_path/tests/unit/c/test-path-change.c +++ b/level_0/f_path/tests/unit/c/test-path-change.c @@ -54,7 +54,7 @@ void test__f_path_change__works(void **state) { const f_status_t status = f_path_change(path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_path/tests/unit/c/test-path-change_at.c b/level_0/f_path/tests/unit/c/test-path-change_at.c index a13ee01..2794aa0 100644 --- a/level_0/f_path/tests/unit/c/test-path-change_at.c +++ b/level_0/f_path/tests/unit/c/test-path-change_at.c @@ -56,7 +56,7 @@ void test__f_path_change_at__works(void **state) { const f_status_t status = f_path_change_at(id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_path/tests/unit/c/test-path-current.c b/level_0/f_path/tests/unit/c/test-path-current.c index 75bca16..65dc116 100644 --- a/level_0/f_path/tests/unit/c/test-path-current.c +++ b/level_0/f_path/tests/unit/c/test-path-current.c @@ -109,7 +109,7 @@ void test__f_path_current__works(void **state) { const f_status_t status = f_path_current(F_false, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, path.used); assert_string_equal(destination.string, path.string); } @@ -125,7 +125,7 @@ void test__f_path_current__works(void **state) { const f_status_t status = f_path_current(F_true, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, path_real.used); assert_string_equal(destination.string, path_real.string); } diff --git a/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c b/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c index ff63585..749246e 100644 --- a/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c +++ b/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c @@ -58,7 +58,7 @@ void test__f_path_directory_cleanup__works(void **state) { const f_status_t status = f_path_directory_cleanup(paths[i], &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expecteds[i].used); if (destination.used) { diff --git a/level_0/f_path/tests/unit/c/test-path-real.c b/level_0/f_path/tests/unit/c/test-path-real.c index d2f1270..f4f52ca 100644 --- a/level_0/f_path/tests/unit/c/test-path-real.c +++ b/level_0/f_path/tests/unit/c/test-path-real.c @@ -72,7 +72,7 @@ void test__f_path_real__works(void **state) { const f_status_t status = f_path_real(path, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, path_real.used); assert_string_equal(destination.string, path_real.string); } diff --git a/level_0/f_print/c/print.c b/level_0/f_print/c/print.c index 70ba200..a50861d 100644 --- a/level_0/f_print/c/print.c +++ b/level_0/f_print/c/print.c @@ -11,7 +11,7 @@ extern "C" { * This will keep trying to print using fwrite_unlocked() until all bytes are written or an error occurs. * * @return - * F_none on success. + * F_okay on success. * * F_output (with error bit) on error. * @@ -29,7 +29,7 @@ extern "C" { } while (count < total); - return F_none; + return F_okay; } #endif // !defined(_di_f_print_character_) && !defined(_di_f_print_character_safely_) @@ -633,7 +633,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // _di_f_print_safely_terminated_ diff --git a/level_0/f_print/c/print.h b/level_0/f_print/c/print.h index 6a1f3fe..9ac0a99 100644 --- a/level_0/f_print/c/print.h +++ b/level_0/f_print/c/print.h @@ -55,7 +55,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -84,7 +84,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -120,7 +120,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * F_utf on success, but character is a UTF-8 character. @@ -176,7 +176,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -209,7 +209,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -244,7 +244,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -282,7 +282,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -320,7 +320,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -355,7 +355,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -391,7 +391,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -427,7 +427,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -470,7 +470,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -505,7 +505,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -542,7 +542,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -581,7 +581,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -623,7 +623,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -665,7 +665,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -704,7 +704,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -744,7 +744,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -784,7 +784,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -831,7 +831,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -870,7 +870,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -911,7 +911,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -954,7 +954,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -997,7 +997,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1040,7 +1040,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1083,7 +1083,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1127,7 +1127,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1170,7 +1170,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1219,7 +1219,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1269,7 +1269,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1319,7 +1319,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1364,7 +1364,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1408,7 +1408,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1452,7 +1452,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1489,7 +1489,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1527,7 +1527,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1560,7 +1560,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1596,7 +1596,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1660,7 +1660,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1693,7 +1693,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_stream_not if file.stream is NULL. * diff --git a/level_0/f_print/c/print/private-to.c b/level_0/f_print/c/print/private-to.c index 47e5aea..c2aed09 100644 --- a/level_0/f_print/c/print/private-to.c +++ b/level_0/f_print/c/print/private-to.c @@ -59,7 +59,7 @@ extern "C" { } // while } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_) || !defined(_di_f_print_dynamic_to_) || !defined(_di_f_print_dynamic_partial_to_) @@ -67,20 +67,20 @@ extern "C" { f_status_t private_f_print_to_character_safely(const f_char_t character, const int id) { if (character == 0x7f) { - if (write(id, f_print_sequence_delete_s.string, f_print_sequence_delete_s.used) != -1) return F_none; + if (write(id, f_print_sequence_delete_s.string, f_print_sequence_delete_s.used) != -1) return F_okay; } else if (macro_f_utf_byte_width_is(character) == 1) { - if (write(id, f_print_sequence_unknown_s.string, f_print_sequence_unknown_s.used) != -1) return F_none; + if (write(id, f_print_sequence_unknown_s.string, f_print_sequence_unknown_s.used) != -1) return F_okay; } else if (macro_f_utf_byte_width_is(character) > 1) { if (write(id, &character, 1) != -1) return F_utf; } else if (character > 0x1f) { - if (write(id, &character, 1) != -1) return F_none; + if (write(id, &character, 1) != -1) return F_okay; } else { if (write(id, f_print_sequence_set_control_s[(unsigned int) character].string, f_print_sequence_set_control_s[(unsigned int) character].used) != -1) { - return F_none; + return F_okay; } } @@ -129,7 +129,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_) || !defined(_di_f_print_to_except_dynamic_) || !defined(_di_f_print_to_except_dynamic_partial_) @@ -174,7 +174,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_raw_) || !defined(_di_f_print_to_except_dynamic_raw_) || !defined(_di_f_print_to_except_dynamic_partial_raw_) @@ -241,7 +241,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_dynamic_raw_safely_) || !defined(_di_f_print_to_except_dynamic_partial_raw_safely_) || !defined(_di_f_print_to_except_raw_safely_) @@ -315,7 +315,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_safely_) @@ -387,7 +387,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_in_) || !defined(_di_f_print_to_except_in_dynamic_) || !defined(_di_f_print_to_except_in_dynamic_partial_) @@ -457,7 +457,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_in_raw_) || !defined(_di_f_print_to_except_in_dynamic_raw_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_) @@ -550,7 +550,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_in_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_raw_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_raw_safely_) @@ -650,7 +650,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) @@ -689,7 +689,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_raw_) || !defined(_di_f_print_dynamic_to_raw_) || !defined(_di_f_print_dynamic_partial_to_raw_) @@ -746,7 +746,7 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_dynamic_raw_safely_) || !defined(_di_f_print_dynamic_partial_to_raw_safely_) || !defined(_di_f_print_to_raw_safely_) @@ -810,14 +810,14 @@ extern "C" { if (write(id, string + start, total) == -1) return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_dynamic_partial_to_safely_) || !defined(_di_f_print_to_safely_) #if !defined(_di_f_print_to_terminated_) || !defined(_di_f_print_to_raw_terminated_) f_status_t private_f_print_to_terminated(const f_string_t string, const int id) { - return write(id, string, strlen(string)) == -1 ? private_inline_f_print_to_error() : F_none; + return write(id, string, strlen(string)) == -1 ? private_inline_f_print_to_error() : F_okay; } #endif // !defined(_di_f_print_to_terminated_) || !defined(_di_f_print_to_raw_terminated_) diff --git a/level_0/f_print/c/print/private-to.h b/level_0/f_print/c/print/private-to.h index 292e4b4..a5909f8 100644 --- a/level_0/f_print/c/print/private-to.h +++ b/level_0/f_print/c/print/private-to.h @@ -28,7 +28,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -68,7 +68,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_utf on success, but character is a UTF-8 character. * @@ -124,7 +124,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -173,7 +173,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -210,7 +210,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -247,7 +247,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -285,7 +285,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -320,7 +320,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -367,7 +367,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -415,7 +415,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -458,7 +458,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -500,7 +500,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -543,7 +543,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -584,7 +584,7 @@ extern "C" { * The file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. diff --git a/level_0/f_print/c/print/to.c b/level_0/f_print/c/print/to.c index 4e62a79..b0d8ab7 100644 --- a/level_0/f_print/c/print/to.c +++ b/level_0/f_print/c/print/to.c @@ -53,7 +53,7 @@ extern "C" { return private_inline_f_print_to_error(); } - return F_none; + return F_okay; } #endif // _di_f_print_to_character_ @@ -597,7 +597,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_print_to_safely_terminated_ diff --git a/level_0/f_print/c/print/to.h b/level_0/f_print/c/print/to.h index 5efc105..1f1225a 100644 --- a/level_0/f_print/c/print/to.h +++ b/level_0/f_print/c/print/to.h @@ -33,7 +33,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -70,7 +70,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -111,7 +111,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -150,7 +150,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -191,7 +191,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -234,7 +234,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -282,7 +282,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -326,7 +326,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -368,7 +368,7 @@ extern "C" { * F_file_descriptor_not if file.id is -1. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -413,7 +413,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -455,7 +455,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -502,7 +502,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -545,7 +545,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -590,7 +590,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -637,7 +637,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -689,7 +689,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -737,7 +737,7 @@ extern "C" { * The array of locations is required/assumed to be in linear order. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -782,7 +782,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -832,7 +832,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -878,7 +878,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -933,7 +933,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -982,7 +982,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1033,7 +1033,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1086,7 +1086,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1139,7 +1139,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1190,7 +1190,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1243,7 +1243,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1297,7 +1297,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1349,7 +1349,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1408,7 +1408,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1468,7 +1468,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1526,7 +1526,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1577,7 +1577,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1631,7 +1631,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1681,7 +1681,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1724,7 +1724,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1772,7 +1772,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1813,7 +1813,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1857,7 +1857,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1900,7 +1900,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * @@ -1942,7 +1942,7 @@ extern "C" { * The file structure containing the file descriptor to output to. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * F_file_descriptor_not if file.id is -1. * diff --git a/level_0/f_print/c/private-print.c b/level_0/f_print/c/private-print.c index 356d370..e438b35 100644 --- a/level_0/f_print/c/private-print.c +++ b/level_0/f_print/c/private-print.c @@ -41,7 +41,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) @@ -123,7 +123,7 @@ extern "C" { } } // while - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) @@ -212,7 +212,7 @@ extern "C" { } } // while - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_) @@ -299,7 +299,7 @@ extern "C" { } } // while - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) @@ -431,7 +431,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) @@ -576,7 +576,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) @@ -647,7 +647,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) @@ -753,7 +753,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) @@ -872,7 +872,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) @@ -918,7 +918,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_dynamic_partial_raw_) || !defined(_di_f_print_dynamic_partial_raw_safely_) || !defined(_di_f_print_dynamic_raw_) || !defined(_di_f_print_dynamic_raw_safely_) || !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_safely_) @@ -1001,7 +1001,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_dynamic_partial_raw_safely_) || !defined(_di_f_print_dynamic_raw_safely_) || !defined(_di_f_print_raw_safely_) @@ -1097,7 +1097,7 @@ extern "C" { } while (count < total); } - return F_none; + return F_okay; } #endif // !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_safely_) @@ -1134,7 +1134,7 @@ extern "C" { } while (count < length); - return F_none; + return F_okay; } #endif // !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) diff --git a/level_0/f_print/c/private-print.h b/level_0/f_print/c/private-print.h index 04ce4b6..b8352d6 100644 --- a/level_0/f_print/c/private-print.h +++ b/level_0/f_print/c/private-print.h @@ -28,7 +28,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -55,7 +55,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -134,7 +134,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -171,7 +171,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -208,7 +208,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -245,7 +245,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -282,7 +282,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -316,7 +316,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -350,7 +350,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -384,7 +384,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -413,7 +413,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -445,7 +445,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -474,7 +474,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. @@ -544,7 +544,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not if there is nothing to print. * * F_output (with error bit) on failure. diff --git a/level_0/f_print/tests/unit/c/test-print-.c b/level_0/f_print/tests/unit/c/test-print-.c index 0285162..e490712 100644 --- a/level_0/f_print/tests/unit/c/test-print-.c +++ b/level_0/f_print/tests/unit/c/test-print-.c @@ -69,7 +69,7 @@ void test__f_print__works(void **state) { const f_status_t status = f_print(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-character.c b/level_0/f_print/tests/unit/c/test-print-character.c index 28a16d2..e88a22f 100644 --- a/level_0/f_print/tests/unit/c/test-print-character.c +++ b/level_0/f_print/tests/unit/c/test-print-character.c @@ -45,7 +45,7 @@ void test__f_print_character__works(void **state) { const f_status_t status = f_print_character(test.string[0], output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-character_safely.c b/level_0/f_print/tests/unit/c/test-print-character_safely.c index 316779a..1ea01c3 100644 --- a/level_0/f_print/tests/unit/c/test-print-character_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-character_safely.c @@ -103,7 +103,7 @@ void test__f_print_character_safely__works(void **state) { const f_status_t status = f_print_character_safely((f_char_t) 0x7f, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -113,7 +113,7 @@ void test__f_print_character_safely__works(void **state) { const f_status_t status = f_print_character_safely((f_char_t) F_utf_byte_1_d, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -123,7 +123,7 @@ void test__f_print_character_safely__works(void **state) { const f_status_t status = f_print_character_safely(test.string[0], output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic.c b/level_0/f_print/tests/unit/c/test-print-dynamic.c index bba0a7e..bf4d379 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic.c @@ -56,7 +56,7 @@ void test__f_print_dynamic__works(void **state) { const f_status_t status = f_print_dynamic(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-dynamic_partial.c index a3092a3..14cee87 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_partial.c @@ -60,7 +60,7 @@ void test__f_print_dynamic_partial__works(void **state) { const f_status_t status = f_print_dynamic_partial(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw.c index b9c9f4e..52bdafa 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw.c @@ -60,7 +60,7 @@ void test__f_print_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_dynamic_partial_raw(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw_safely.c index cf44d03..e37acec 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_raw_safely.c @@ -60,7 +60,7 @@ void test__f_print_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_dynamic_partial_raw_safely(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_safely.c index a7ce2b4..15f67fc 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_partial_safely.c @@ -60,7 +60,7 @@ void test__f_print_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_dynamic_partial_safely(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-dynamic_raw.c index 6f7650a..a4f542a 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_raw.c @@ -56,7 +56,7 @@ void test__f_print_dynamic_raw__works(void **state) { const f_status_t status = f_print_dynamic_raw(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-dynamic_raw_safely.c index dc46d16..e8f4587 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_raw_safely.c @@ -56,7 +56,7 @@ void test__f_print_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_dynamic_raw_safely(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-dynamic_safely.c index f8a3333..e71ce61 100644 --- a/level_0/f_print/tests/unit/c/test-print-dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-dynamic_safely.c @@ -56,7 +56,7 @@ void test__f_print_dynamic_safely__works(void **state) { const f_status_t status = f_print_dynamic_safely(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except.c b/level_0/f_print/tests/unit/c/test-print-except.c index 3febdfb..6d01e70 100644 --- a/level_0/f_print/tests/unit/c/test-print-except.c +++ b/level_0/f_print/tests/unit/c/test-print-except.c @@ -74,7 +74,7 @@ void test__f_print_except__works(void **state) { const f_status_t status = f_print_except(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except__works(void **state) { const f_status_t status = f_print_except(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -99,7 +99,7 @@ void test__f_print_except__works(void **state) { const f_status_t status = f_print_except(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic.c index 2ecf997..64d1ab8 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic.c @@ -61,7 +61,7 @@ void test__f_print_except_dynamic__works(void **state) { const f_status_t status = f_print_except_dynamic(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -74,7 +74,7 @@ void test__f_print_except_dynamic__works(void **state) { const f_status_t status = f_print_except_dynamic(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial.c index ad28037..6dbfcd6 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial.c @@ -65,7 +65,7 @@ void test__f_print_except_dynamic_partial__works(void **state) { const f_status_t status = f_print_except_dynamic_partial(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -78,7 +78,7 @@ void test__f_print_except_dynamic_partial__works(void **state) { const f_status_t status = f_print_except_dynamic_partial(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw.c index f27ee2a..7f7d1dc 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw.c @@ -65,7 +65,7 @@ void test__f_print_except_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_raw(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -78,7 +78,7 @@ void test__f_print_except_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_raw(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw_safely.c index 213755c..04970dd 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_raw_safely.c @@ -65,7 +65,7 @@ void test__f_print_except_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_raw_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -78,7 +78,7 @@ void test__f_print_except_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_raw_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_safely.c index b76f1af..3a8f88d 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_partial_safely.c @@ -65,7 +65,7 @@ void test__f_print_except_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -78,7 +78,7 @@ void test__f_print_except_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_partial_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw.c index 0e45682..d2a7bdb 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw.c @@ -61,7 +61,7 @@ void test__f_print_except_dynamic_raw__works(void **state) { const f_status_t status = f_print_except_dynamic_raw(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -74,7 +74,7 @@ void test__f_print_except_dynamic_raw__works(void **state) { const f_status_t status = f_print_except_dynamic_raw(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw_safely.c index 419b371..a734c0c 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_raw_safely.c @@ -61,7 +61,7 @@ void test__f_print_except_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_raw_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -74,7 +74,7 @@ void test__f_print_except_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_raw_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-except_dynamic_safely.c index b6dd617..802b1ea 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_dynamic_safely.c @@ -61,7 +61,7 @@ void test__f_print_except_dynamic_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -74,7 +74,7 @@ void test__f_print_except_dynamic_safely__works(void **state) { const f_status_t status = f_print_except_dynamic_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in.c b/level_0/f_print/tests/unit/c/test-print-except_in.c index 799b54a..b38252e 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in.c @@ -78,7 +78,7 @@ void test__f_print_except_in__works(void **state) { const f_status_t status = f_print_except_in(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -91,7 +91,7 @@ void test__f_print_except_in__works(void **state) { const f_status_t status = f_print_except_in(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -108,7 +108,7 @@ void test__f_print_except_in__works(void **state) { const f_status_t status = f_print_except_in(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic.c index dd8f50d..25cc6d3 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic.c @@ -65,7 +65,7 @@ void test__f_print_except_in_dynamic__works(void **state) { const f_status_t status = f_print_except_in_dynamic(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -82,7 +82,7 @@ void test__f_print_except_in_dynamic__works(void **state) { const f_status_t status = f_print_except_in_dynamic(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial.c index 7ed093d..e2098ba 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial.c @@ -69,7 +69,7 @@ void test__f_print_except_in_dynamic_partial__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_in_dynamic_partial__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw.c index 318ee74..7ae7f8a 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw.c @@ -69,7 +69,7 @@ void test__f_print_except_in_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_raw(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_in_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_raw(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw_safely.c index a380258..d000b69 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_raw_safely.c @@ -69,7 +69,7 @@ void test__f_print_except_in_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_raw_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_in_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_raw_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_safely.c index ab4e248..f243ef8 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_partial_safely.c @@ -69,7 +69,7 @@ void test__f_print_except_in_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_in_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_partial_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw.c index e64fc68..70c78a3 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw.c @@ -65,7 +65,7 @@ void test__f_print_except_in_dynamic_raw__works(void **state) { const f_status_t status = f_print_except_in_dynamic_raw(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -82,7 +82,7 @@ void test__f_print_except_in_dynamic_raw__works(void **state) { const f_status_t status = f_print_except_in_dynamic_raw(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw_safely.c index 1d6f1f7..5a434bd 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_raw_safely.c @@ -65,7 +65,7 @@ void test__f_print_except_in_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_raw_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -82,7 +82,7 @@ void test__f_print_except_in_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_raw_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_safely.c index cccf0d6..94ddd78 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_dynamic_safely.c @@ -65,7 +65,7 @@ void test__f_print_except_in_dynamic_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -82,7 +82,7 @@ void test__f_print_except_in_dynamic_safely__works(void **state) { const f_status_t status = f_print_except_in_dynamic_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_raw.c b/level_0/f_print/tests/unit/c/test-print-except_in_raw.c index aea8165..b6a2378 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_raw.c @@ -78,7 +78,7 @@ void test__f_print_except_in_raw__works(void **state) { const f_status_t status = f_print_except_in_raw(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -91,7 +91,7 @@ void test__f_print_except_in_raw__works(void **state) { const f_status_t status = f_print_except_in_raw(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -108,7 +108,7 @@ void test__f_print_except_in_raw__works(void **state) { const f_status_t status = f_print_except_in_raw(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_raw_safely.c index 28f5c55..698c000 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_raw_safely.c @@ -78,7 +78,7 @@ void test__f_print_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_raw_safely(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -91,7 +91,7 @@ void test__f_print_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_raw_safely(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -108,7 +108,7 @@ void test__f_print_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_except_in_raw_safely(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_in_safely.c b/level_0/f_print/tests/unit/c/test-print-except_in_safely.c index fef241a..80c4414 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_in_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_in_safely.c @@ -78,7 +78,7 @@ void test__f_print_except_in_safely__works(void **state) { const f_status_t status = f_print_except_in_safely(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -91,7 +91,7 @@ void test__f_print_except_in_safely__works(void **state) { const f_status_t status = f_print_except_in_safely(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -108,7 +108,7 @@ void test__f_print_except_in_safely__works(void **state) { const f_status_t status = f_print_except_in_safely(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_raw.c b/level_0/f_print/tests/unit/c/test-print-except_raw.c index a4972ca..5173d80 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-except_raw.c @@ -74,7 +74,7 @@ void test__f_print_except_raw__works(void **state) { const f_status_t status = f_print_except_raw(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_raw__works(void **state) { const f_status_t status = f_print_except_raw(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -99,7 +99,7 @@ void test__f_print_except_raw__works(void **state) { const f_status_t status = f_print_except_raw(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-except_raw_safely.c index d2480aa..546578a 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_raw_safely.c @@ -74,7 +74,7 @@ void test__f_print_except_raw_safely__works(void **state) { const f_status_t status = f_print_except_raw_safely(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_raw_safely__works(void **state) { const f_status_t status = f_print_except_raw_safely(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -99,7 +99,7 @@ void test__f_print_except_raw_safely__works(void **state) { const f_status_t status = f_print_except_raw_safely(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-except_safely.c b/level_0/f_print/tests/unit/c/test-print-except_safely.c index 2b400cc..6a381bf 100644 --- a/level_0/f_print/tests/unit/c/test-print-except_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-except_safely.c @@ -74,7 +74,7 @@ void test__f_print_except_safely__works(void **state) { const f_status_t status = f_print_except_safely(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -86,7 +86,7 @@ void test__f_print_except_safely__works(void **state) { const f_status_t status = f_print_except_safely(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -99,7 +99,7 @@ void test__f_print_except_safely__works(void **state) { const f_status_t status = f_print_except_safely(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-raw.c b/level_0/f_print/tests/unit/c/test-print-raw.c index a317359..35f0f77 100644 --- a/level_0/f_print/tests/unit/c/test-print-raw.c +++ b/level_0/f_print/tests/unit/c/test-print-raw.c @@ -69,7 +69,7 @@ void test__f_print_raw__works(void **state) { const f_status_t status = f_print_raw(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-raw_safely.c b/level_0/f_print/tests/unit/c/test-print-raw_safely.c index 238e65f..eb6ca76 100644 --- a/level_0/f_print/tests/unit/c/test-print-raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-raw_safely.c @@ -69,7 +69,7 @@ void test__f_print_raw_safely__works(void **state) { const f_status_t status = f_print_raw_safely(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-raw_terminated.c b/level_0/f_print/tests/unit/c/test-print-raw_terminated.c index ea36112..b786e9d 100644 --- a/level_0/f_print/tests/unit/c/test-print-raw_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-raw_terminated.c @@ -56,7 +56,7 @@ void test__f_print_raw_terminated__works(void **state) { const f_status_t status = f_print_raw_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-safely.c b/level_0/f_print/tests/unit/c/test-print-safely.c index 48bffb7..54c1e39 100644 --- a/level_0/f_print/tests/unit/c/test-print-safely.c +++ b/level_0/f_print/tests/unit/c/test-print-safely.c @@ -69,7 +69,7 @@ void test__f_print_safely__works(void **state) { const f_status_t status = f_print_safely(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-safely_terminated.c b/level_0/f_print/tests/unit/c/test-print-safely_terminated.c index 8ed9df9..7551498 100644 --- a/level_0/f_print/tests/unit/c/test-print-safely_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-safely_terminated.c @@ -56,7 +56,7 @@ void test__f_print_safely_terminated__works(void **state) { const f_status_t status = f_print_safely_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-terminated.c b/level_0/f_print/tests/unit/c/test-print-terminated.c index 6fdf6ff..487a121 100644 --- a/level_0/f_print/tests/unit/c/test-print-terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-terminated.c @@ -56,7 +56,7 @@ void test__f_print_terminated__works(void **state) { const f_status_t status = f_print_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to.c b/level_0/f_print/tests/unit/c/test-print-to.c index 10b29dd..a4f431d 100644 --- a/level_0/f_print/tests/unit/c/test-print-to.c +++ b/level_0/f_print/tests/unit/c/test-print-to.c @@ -102,7 +102,7 @@ void test__f_print_to__works(void **state) { const f_status_t status = f_print_to(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_character.c b/level_0/f_print/tests/unit/c/test-print-to_character.c index 2a7cb30..a7228cf 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_character.c +++ b/level_0/f_print/tests/unit/c/test-print-to_character.c @@ -78,7 +78,7 @@ void test__f_print_to_character__works(void **state) { const f_status_t status = f_print_to_character(test.string[0], output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_character_safely.c b/level_0/f_print/tests/unit/c/test-print-to_character_safely.c index 4a37644..6a16a2a 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_character_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_character_safely.c @@ -135,7 +135,7 @@ void test__f_print_to_character_safely__works(void **state) { const f_status_t status = f_print_to_character_safely((f_char_t) 0x7f, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -144,7 +144,7 @@ void test__f_print_to_character_safely__works(void **state) { const f_status_t status = f_print_to_character_safely((f_char_t) F_utf_byte_1_d, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -153,7 +153,7 @@ void test__f_print_to_character_safely__works(void **state) { const f_status_t status = f_print_to_character_safely(test.string[0], output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic.c index 20a9528..75b0d90 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic.c @@ -89,7 +89,7 @@ void test__f_print_to_dynamic__works(void **state) { const f_status_t status = f_print_to_dynamic(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c index fe0e635..d8ed613 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial.c @@ -93,7 +93,7 @@ void test__f_print_to_dynamic_partial__works(void **state) { const f_status_t status = f_print_to_dynamic_partial(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c index a42996d..a148a1e 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw.c @@ -93,7 +93,7 @@ void test__f_print_to_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_to_dynamic_partial_raw(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c index 7c61e9a..31250b0 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_raw_safely.c @@ -93,7 +93,7 @@ void test__f_print_to_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_to_dynamic_partial_raw_safely(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c index a5d61dc..a05969f 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_partial_safely.c @@ -93,7 +93,7 @@ void test__f_print_to_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_to_dynamic_partial_safely(test, partial, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c index dc8e91a..b71191c 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw.c @@ -89,7 +89,7 @@ void test__f_print_to_dynamic_raw__works(void **state) { const f_status_t status = f_print_to_dynamic_raw(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c index 844725c..b55c804 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_raw_safely.c @@ -89,7 +89,7 @@ void test__f_print_to_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_to_dynamic_raw_safely(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c index 3aa0b1e..39a9f62 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_dynamic_safely.c @@ -89,7 +89,7 @@ void test__f_print_to_dynamic_safely__works(void **state) { const f_status_t status = f_print_to_dynamic_safely(test, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except.c b/level_0/f_print/tests/unit/c/test-print-to_except.c index fd4e76e..c808621 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except.c @@ -107,7 +107,7 @@ void test__f_print_to_except__works(void **state) { const f_status_t status = f_print_to_except(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except__works(void **state) { const f_status_t status = f_print_to_except(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -130,7 +130,7 @@ void test__f_print_to_except__works(void **state) { const f_status_t status = f_print_to_except(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c index 54b8963..1ef7153 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic.c @@ -94,7 +94,7 @@ void test__f_print_to_except_dynamic__works(void **state) { const f_status_t status = f_print_to_except_dynamic(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -106,7 +106,7 @@ void test__f_print_to_except_dynamic__works(void **state) { const f_status_t status = f_print_to_except_dynamic(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c index 18152d3..880b055 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial.c @@ -98,7 +98,7 @@ void test__f_print_to_except_dynamic_partial__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -110,7 +110,7 @@ void test__f_print_to_except_dynamic_partial__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c index 27a054d..60261a1 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw.c @@ -98,7 +98,7 @@ void test__f_print_to_except_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_raw(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -110,7 +110,7 @@ void test__f_print_to_except_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_raw(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c index e2f17f1..ea6141e 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_raw_safely.c @@ -98,7 +98,7 @@ void test__f_print_to_except_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_raw_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -110,7 +110,7 @@ void test__f_print_to_except_dynamic_partial_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_raw_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c index 604ed97..6aa916b 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_partial_safely.c @@ -98,7 +98,7 @@ void test__f_print_to_except_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -110,7 +110,7 @@ void test__f_print_to_except_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_partial_safely(test, partial, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c index 7d98b20..b22b0f4 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw.c @@ -94,7 +94,7 @@ void test__f_print_to_except_dynamic_raw__works(void **state) { const f_status_t status = f_print_to_except_dynamic_raw(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -106,7 +106,7 @@ void test__f_print_to_except_dynamic_raw__works(void **state) { const f_status_t status = f_print_to_except_dynamic_raw(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c index 0da1d7f..7f272a0 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_raw_safely.c @@ -94,7 +94,7 @@ void test__f_print_to_except_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_raw_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -106,7 +106,7 @@ void test__f_print_to_except_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_raw_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c index 9146f6c..da24371 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_dynamic_safely.c @@ -94,7 +94,7 @@ void test__f_print_to_except_dynamic_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -106,7 +106,7 @@ void test__f_print_to_except_dynamic_safely__works(void **state) { const f_status_t status = f_print_to_except_dynamic_safely(test, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in.c b/level_0/f_print/tests/unit/c/test-print-to_except_in.c index 89a3b7c..33a0a5d 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in.c @@ -111,7 +111,7 @@ void test__f_print_to_except_in__works(void **state) { const f_status_t status = f_print_to_except_in(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -123,7 +123,7 @@ void test__f_print_to_except_in__works(void **state) { const f_status_t status = f_print_to_except_in(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -139,7 +139,7 @@ void test__f_print_to_except_in__works(void **state) { const f_status_t status = f_print_to_except_in(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c index e06d15a..85426b0 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic.c @@ -98,7 +98,7 @@ void test__f_print_to_except_in_dynamic__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -114,7 +114,7 @@ void test__f_print_to_except_in_dynamic__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c index 4cb8dad..fe1e649 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial.c @@ -102,7 +102,7 @@ void test__f_print_to_except_in_dynamic_partial__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_in_dynamic_partial__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c index 786e6fd..afaf755 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw.c @@ -102,7 +102,7 @@ void test__f_print_to_except_in_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial_raw(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_in_dynamic_partial_raw__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial_raw(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c index 8aa5744..d713bad 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_raw_safely.c @@ -102,7 +102,7 @@ void test__f_print_to_except_in_dynamic_partial_raw_safely__works(void **state) const f_status_t status = f_print_to_except_in_dynamic_partial_raw_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -119,7 +119,7 @@ void test__f_print_to_except_in_dynamic_partial_raw_safely__works(void **state) const f_status_t status = f_print_to_except_in_dynamic_partial_raw_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c index 4477f20..bc6ddb6 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_partial_safely.c @@ -102,7 +102,7 @@ void test__f_print_to_except_in_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_in_dynamic_partial_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_partial_safely(test, partial, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c index f24c6b1..1c3b7eb 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw.c @@ -98,7 +98,7 @@ void test__f_print_to_except_in_dynamic_raw__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_raw(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -114,7 +114,7 @@ void test__f_print_to_except_in_dynamic_raw__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_raw(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c index 8184f47..16de41e 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_raw_safely.c @@ -98,7 +98,7 @@ void test__f_print_to_except_in_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_raw_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -114,7 +114,7 @@ void test__f_print_to_except_in_dynamic_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_raw_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c index 4ceef49..1414802 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_dynamic_safely.c @@ -98,7 +98,7 @@ void test__f_print_to_except_in_dynamic_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -114,7 +114,7 @@ void test__f_print_to_except_in_dynamic_safely__works(void **state) { const f_status_t status = f_print_to_except_in_dynamic_safely(test, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c index fce3f3f..72233a7 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw.c @@ -111,7 +111,7 @@ void test__f_print_to_except_in_raw__works(void **state) { const f_status_t status = f_print_to_except_in_raw(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -123,7 +123,7 @@ void test__f_print_to_except_in_raw__works(void **state) { const f_status_t status = f_print_to_except_in_raw(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -139,7 +139,7 @@ void test__f_print_to_except_in_raw__works(void **state) { const f_status_t status = f_print_to_except_in_raw(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c index 581a4fa..4308004 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_raw_safely.c @@ -111,7 +111,7 @@ void test__f_print_to_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_in_raw_safely(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -123,7 +123,7 @@ void test__f_print_to_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_in_raw_safely(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -139,7 +139,7 @@ void test__f_print_to_except_in_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_in_raw_safely(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c index 0ffe9fa..d9c82de 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_in_safely.c @@ -111,7 +111,7 @@ void test__f_print_to_except_in_safely__works(void **state) { const f_status_t status = f_print_to_except_in_safely(test.string, 0, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -123,7 +123,7 @@ void test__f_print_to_except_in_safely__works(void **state) { const f_status_t status = f_print_to_except_in_safely(test.string, 2, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -139,7 +139,7 @@ void test__f_print_to_except_in_safely__works(void **state) { const f_status_t status = f_print_to_except_in_safely(test.string, 1, test.used, except, range, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_raw.c b/level_0/f_print/tests/unit/c/test-print-to_except_raw.c index 6133e00..cf6f03c 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_raw.c @@ -107,7 +107,7 @@ void test__f_print_to_except_raw__works(void **state) { const f_status_t status = f_print_to_except_raw(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_raw__works(void **state) { const f_status_t status = f_print_to_except_raw(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -130,7 +130,7 @@ void test__f_print_to_except_raw__works(void **state) { const f_status_t status = f_print_to_except_raw(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c index 80ce62c..0f64e94 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_raw_safely.c @@ -107,7 +107,7 @@ void test__f_print_to_except_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_raw_safely(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_raw_safely(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -130,7 +130,7 @@ void test__f_print_to_except_raw_safely__works(void **state) { const f_status_t status = f_print_to_except_raw_safely(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_except_safely.c b/level_0/f_print/tests/unit/c/test-print-to_except_safely.c index 444b78a..774936a 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_except_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_except_safely.c @@ -107,7 +107,7 @@ void test__f_print_to_except_safely__works(void **state) { const f_status_t status = f_print_to_except_safely(test.string, 0, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -118,7 +118,7 @@ void test__f_print_to_except_safely__works(void **state) { const f_status_t status = f_print_to_except_safely(test.string, 2, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -130,7 +130,7 @@ void test__f_print_to_except_safely__works(void **state) { const f_status_t status = f_print_to_except_safely(test.string, 1, test.used, except, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw.c b/level_0/f_print/tests/unit/c/test-print-to_raw.c index 09e9ef1..750f035 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw.c @@ -105,7 +105,7 @@ void test__f_print_to_raw__works(void **state) { const f_status_t status = f_print_to_raw(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c b/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c index 3d7e0dd..5846a93 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw_safely.c @@ -102,7 +102,7 @@ void test__f_print_to_raw_safely__works(void **state) { const f_status_t status = f_print_to_raw_safely(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c index 3ae873c..48268da 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_raw_terminated.c @@ -89,7 +89,7 @@ void test__f_print_to_raw_terminated__works(void **state) { const f_status_t status = f_print_to_raw_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_safely.c b/level_0/f_print/tests/unit/c/test-print-to_safely.c index d29203f..9f3b083 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_safely.c +++ b/level_0/f_print/tests/unit/c/test-print-to_safely.c @@ -102,7 +102,7 @@ void test__f_print_to_safely__works(void **state) { const f_status_t status = f_print_to_safely(test.string, test.used, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c index 56e1354..3dcaf11 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_safely_terminated.c @@ -89,7 +89,7 @@ void test__f_print_to_safely_terminated__works(void **state) { const f_status_t status = f_print_to_safely_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_print/tests/unit/c/test-print-to_terminated.c b/level_0/f_print/tests/unit/c/test-print-to_terminated.c index 795eadc..01624aa 100644 --- a/level_0/f_print/tests/unit/c/test-print-to_terminated.c +++ b/level_0/f_print/tests/unit/c/test-print-to_terminated.c @@ -89,7 +89,7 @@ void test__f_print_to_terminated__works(void **state) { const f_status_t status = f_print_to_terminated(test.string, output); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_rip/c/private-rip.c b/level_0/f_rip/c/private-rip.c index 7141e7a..969bd54 100644 --- a/level_0/f_rip/c/private-rip.c +++ b/level_0/f_rip/c/private-rip.c @@ -10,7 +10,7 @@ extern "C" { const f_number_unsigned_t stop_original = *stop; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace. for (; *start <= *stop; *start += macro_f_utf_byte_width(string[*start])) { @@ -110,7 +110,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_f_rip_dynamic_partial_) || !defined(_di_f_rip_dynamic_partial_nulless_) || !defined(_di_f_rip_dynamic_) || !defined(_di_f_rip_) || !defined(_di_f_rip_nulless_) diff --git a/level_0/f_rip/c/private-rip.h b/level_0/f_rip/c/private-rip.h index f882c03..924aadd 100644 --- a/level_0/f_rip/c/private-rip.h +++ b/level_0/f_rip/c/private-rip.h @@ -30,7 +30,7 @@ extern "C" { * Will be updated to reflect the new stop range. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but only white space found. * * F_utf_not (with error bit) if a character is not valid UTF-8. diff --git a/level_0/f_rip/c/rip/private-utf.c b/level_0/f_rip/c/rip/private-utf.c index 6d29229..85c5da7 100644 --- a/level_0/f_rip/c/rip/private-utf.c +++ b/level_0/f_rip/c/rip/private-utf.c @@ -8,7 +8,7 @@ extern "C" { #if !defined(_di_f_rip_utf_) || !defined(_di_f_rip_utf_dynamic_) || !defined(_di_f_rip_utf_nulless_) || !defined(_di_f_rip_utf_dynamic_nulless_) f_status_t private_f_rip_utf_find_range(const f_utf_string_t source, f_number_unsigned_t *start, f_number_unsigned_t *stop) { - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading whitespace. for (; *start <= *stop; ++(*start)) { @@ -67,7 +67,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_f_rip_utf_) || !defined(_di_f_rip_utf_dynamic_) || !defined(_di_f_rip_utf_nulless_) || !defined(_di_f_rip_utf_dynamic_nulless_) diff --git a/level_0/f_rip/c/rip/private-utf.h b/level_0/f_rip/c/rip/private-utf.h index 3b48543..e7a8809 100644 --- a/level_0/f_rip/c/rip/private-utf.h +++ b/level_0/f_rip/c/rip/private-utf.h @@ -30,7 +30,7 @@ extern "C" { * Will be updated to reflect the new stop range. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but only white space found. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_rip/c/rip/utf.h b/level_0/f_rip/c/rip/utf.h index 96c6ee3..e3ebb11 100644 --- a/level_0/f_rip/c/rip/utf.h +++ b/level_0/f_rip/c/rip/utf.h @@ -28,7 +28,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -56,7 +56,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_stop if range.start > range.stop. * @@ -86,7 +86,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_stop if range.start > range.stop. * @@ -116,7 +116,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_serialize/c/private-serialize.c b/level_0/f_serialize/c/private-serialize.c index db549f3..c72215c 100644 --- a/level_0/f_serialize/c/private-serialize.c +++ b/level_0/f_serialize/c/private-serialize.c @@ -28,7 +28,7 @@ extern "C" { range->stop = i - 1; } - return F_none; + return F_okay; } start = i + width; @@ -39,7 +39,7 @@ extern "C" { range->start = 1; range->stop = 0; - return F_none; + return F_okay; } } else if (i == source.used) { @@ -48,7 +48,7 @@ extern "C" { range->stop = i - 1; } - return F_none_eos; + return F_okay_eos; } if (i + width > source.used) { diff --git a/level_0/f_serialize/c/private-serialize.h b/level_0/f_serialize/c/private-serialize.h index 1e73790..d7c77c1 100644 --- a/level_0/f_serialize/c/private-serialize.h +++ b/level_0/f_serialize/c/private-serialize.h @@ -28,8 +28,8 @@ extern "C" { * A range within the serialize string representing the string at the given index. * * @return - * F_none on success. - * F_none_eos on success at end of string. + * F_okay on success. + * F_okay_eos on success at end of string. * F_data_not_eos if end of string reached before index was reached. * * F_complete_not_utf_eos (with error bit) if end of string is reached before a complete UTF-8 character can be processed. diff --git a/level_0/f_serialize/c/serialize.c b/level_0/f_serialize/c/serialize.c index 04bcf26..fc6e47c 100644 --- a/level_0/f_serialize/c/serialize.c +++ b/level_0/f_serialize/c/serialize.c @@ -13,7 +13,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t start = 0; f_number_unsigned_t total = 0; @@ -79,7 +79,7 @@ extern "C" { ++destination->used; } - return F_none; + return F_okay; } #endif // _di_f_serialize_from_simple_ @@ -119,7 +119,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t start = 0; f_number_unsigned_t total = 0; @@ -193,7 +193,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_serialize_from_simple_range_ @@ -217,7 +217,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used) { status = f_string_dynamic_append_assure(f_serialize_to_simple_splitter_s, destination); @@ -227,7 +227,7 @@ extern "C" { status = f_string_dynamic_append(source, destination); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_f_serialize_to_simple_ diff --git a/level_0/f_serialize/c/serialize.h b/level_0/f_serialize/c/serialize.h index da8f79d..4181642 100644 --- a/level_0/f_serialize/c/serialize.h +++ b/level_0/f_serialize/c/serialize.h @@ -47,7 +47,7 @@ extern "C" { * All deserialized values are appended to the destination. * * @return - * F_none on success. + * F_okay on success. * F_complete_not_utf_eos if an incomplete UTF-8 character is found at the end of the source. * F_data_not on success and source.used is 0. * @@ -82,8 +82,8 @@ extern "C" { * This string is NULL terminated after destination.used on success. * * @return - * F_none on success. - * F_none_eos on success at end of string. + * F_okay on success. + * F_okay_eos on success at end of string. * F_data_not_eos if end of string reached before index was reached (dynamic->used is set to 0). * F_data_not on success and source.used is 0. * @@ -115,7 +115,7 @@ extern "C" { * All deserialized ranges are appended to the destination. * * @return - * F_none on success. + * F_okay on success. * F_complete_not_utf_eos if an incomplete UTF-8 character is found at the end of the source. * F_data_not on success and source.used is 0. * @@ -147,8 +147,8 @@ extern "C" { * A range within the serialized string representing the string at the given index. * * @return - * F_none on success. - * F_none_eos on success at end of string. + * F_okay on success. + * F_okay_eos on success at end of string. * F_data_not on success and source.used is 0. * F_data_not_eos if end of string reached before index was reached. * @@ -177,7 +177,7 @@ extern "C" { * All serialized values are appended to the destination. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success and source.used is 0. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c index 06ee95b..f1f3c15 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c @@ -79,7 +79,7 @@ void test__f_serialize_from_simple__works(void **state) { const f_status_t status = f_serialize_from_simple(sources[i], &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expecteds[i].used); for (uint8_t j = 0; j < destination.used; ++j) { diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c index 114b50c..157310d 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c @@ -52,7 +52,7 @@ void test__f_serialize_from_simple_get__works(void **state) { const f_status_t status = f_serialize_from_simple_get(source, i, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, matchs[i].used); if (destination.used) { diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c index cf03aa7..04315d7 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c @@ -67,7 +67,7 @@ void test__f_serialize_from_simple_range__works(void **state) { const f_status_t status = f_serialize_from_simple_range(sources[i], &ranges); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(ranges.used, expecteds[i].used); for (uint8_t j = 0; j < ranges.used; ++j) { diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c index 45f8dc0..9e29676 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c @@ -48,7 +48,7 @@ void test__f_serialize_from_simple_select__works(void **state) { const f_status_t status = f_serialize_from_simple_select(source, i, &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, ranges[i].start); assert_int_equal(range.stop, ranges[i].stop); } // for diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c b/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c index 2ada107..662c99f 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c @@ -41,14 +41,14 @@ void test__f_serialize_to_simple__works(void **state) { { const f_status_t status = f_serialize_to_simple(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, source.string); } { const f_status_t status = f_serialize_to_simple(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(destination.string, multiple.string); } diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index f05c93d..6ef5146 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -17,7 +17,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_action_ @@ -43,7 +43,7 @@ extern "C" { signal->id = 0; - return F_none; + return F_okay; } #endif // _di_f_signal_close_ @@ -60,7 +60,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_mask_ @@ -84,7 +84,7 @@ extern "C" { signal->id = result; - return F_none; + return F_okay; } #endif // _di_f_signal_open_ @@ -93,7 +93,7 @@ extern "C" { pause(); - return F_none; + return F_okay; } #endif // _di_f_signal_pause_ @@ -109,7 +109,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_queue_ @@ -156,7 +156,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_signal_read_ @@ -171,7 +171,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_send_ @@ -187,7 +187,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_set_add_ @@ -203,7 +203,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_set_delete_ @@ -219,7 +219,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_set_empty_ @@ -236,7 +236,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_set_fill_ @@ -273,7 +273,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_suspend_ @@ -287,7 +287,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_wait_ @@ -302,7 +302,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_signal_wait_until_ diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index 32699d0..9af6ed5 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -43,7 +43,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_buffer (with error bit) if the buffer is invalid (action or previous point to invalid memory). * F_parameter (with error bit) if a parameter is invalid. @@ -65,7 +65,7 @@ extern "C" { * The signal settings. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but no descriptor was provided to close. * * F_descriptor (with error bit) if id is an invalid descriptor. @@ -98,7 +98,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -122,7 +122,7 @@ extern "C" { * Otherwise, signal.id is used as the file descriptor. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_device (with error bit) if could not mount the internal inode device. * F_file_descriptor_max (with error bit) if max file descriptors is reached. @@ -160,7 +160,7 @@ extern "C" { * The signal value to send. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_found_not (with error bit) if the given PID was found. * F_parameter (with error bit) if a parameter is invalid. @@ -191,7 +191,7 @@ extern "C" { * The signal data to be populated if a signal is found during read. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * F_data_not on success, but no descriptor was provided to read. * F_signal on success and signal found. * @@ -225,7 +225,7 @@ extern "C" { * This may also be a process group id. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to send signals to the given process. @@ -248,7 +248,7 @@ extern "C" { * The set of signals to add to. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -269,7 +269,7 @@ extern "C" { * The set of signals to delete from. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -288,7 +288,7 @@ extern "C" { * The set of signals to clear. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -307,7 +307,7 @@ extern "C" { * The set of signals to fully populate. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -348,7 +348,7 @@ extern "C" { * The signal mask. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_buffer (with error bit) if the mask is pointing to invalid memory. * F_interrupt (with error bit) when program received an interrupt signal, halting operation. @@ -371,7 +371,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none if signal is found. + * F_okay if signal is found. * F_interrupt if interrupted by a signal other than one specified in the signal set. * * F_parameter (with error bit) if a parameter is invalid. @@ -396,7 +396,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none if signal is found before time out. + * F_okay if signal is found before time out. * F_interrupt if interrupted by a signal other than one specified in the signal set. * F_time_out if no signal is find by the time out. * diff --git a/level_0/f_signal/tests/unit/c/test-signal-action.c b/level_0/f_signal/tests/unit/c/test-signal-action.c index 5e8ffab..baf5447 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-action.c +++ b/level_0/f_signal/tests/unit/c/test-signal-action.c @@ -86,7 +86,7 @@ void test__f_signal_action__works(void **state) { const f_status_t status = f_signal_action(signal, &action, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -94,7 +94,7 @@ void test__f_signal_action__works(void **state) { const f_status_t status = f_signal_action(signal, 0, &previous); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -102,7 +102,7 @@ void test__f_signal_action__works(void **state) { const f_status_t status = f_signal_action(signal, &action, &previous); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-close.c b/level_0/f_signal/tests/unit/c/test-signal-close.c index 4ce6745..1a4db72 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-close.c +++ b/level_0/f_signal/tests/unit/c/test-signal-close.c @@ -71,7 +71,7 @@ void test__f_signal_close__works(void **state) { const f_status_t status = f_signal_close(&signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-mask.c b/level_0/f_signal/tests/unit/c/test-signal-mask.c index c227755..bd9ecbd 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-mask.c +++ b/level_0/f_signal/tests/unit/c/test-signal-mask.c @@ -58,7 +58,7 @@ void test__f_signal_mask__works(void **state) { const f_status_t status = f_signal_mask(0, &next, ¤t); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-open.c b/level_0/f_signal/tests/unit/c/test-signal-open.c index 4d90a75..3c0ed39 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-open.c +++ b/level_0/f_signal/tests/unit/c/test-signal-open.c @@ -58,7 +58,7 @@ void test__f_signal_open__works(void **state) { const f_status_t status = f_signal_open(&signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(signal.id, id); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-pause.c b/level_0/f_signal/tests/unit/c/test-signal-pause.c index 582616b..b7e6d5f 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-pause.c +++ b/level_0/f_signal/tests/unit/c/test-signal-pause.c @@ -10,7 +10,7 @@ void test__f_signal_pause__works(void **state) { { const f_status_t status = f_signal_pause(); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-queue.c b/level_0/f_signal/tests/unit/c/test-signal-queue.c index 98a44ab..b8b73aa 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-queue.c +++ b/level_0/f_signal/tests/unit/c/test-signal-queue.c @@ -49,7 +49,7 @@ void test__f_signal_queue__works(void **state) { const f_status_t status = f_signal_queue(0, 0, value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-read.c b/level_0/f_signal/tests/unit/c/test-signal-read.c index 4198f9c..b78c8f3 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-read.c +++ b/level_0/f_signal/tests/unit/c/test-signal-read.c @@ -111,7 +111,7 @@ void test__f_signal_read__works(void **state) { const f_status_t status = f_signal_read(signal, 0, &information); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(signal.id, -1); } diff --git a/level_0/f_signal/tests/unit/c/test-signal-send.c b/level_0/f_signal/tests/unit/c/test-signal-send.c index f56a3d5..4ea4ad6 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-send.c +++ b/level_0/f_signal/tests/unit/c/test-signal-send.c @@ -39,7 +39,7 @@ void test__f_signal_send__works(void **state) { const f_status_t status = f_signal_send(0, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-set_add.c b/level_0/f_signal/tests/unit/c/test-signal-set_add.c index f963f9f..714a3c2 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-set_add.c +++ b/level_0/f_signal/tests/unit/c/test-signal-set_add.c @@ -52,7 +52,7 @@ void test__f_signal_set_add__works(void **state) { const f_status_t status = f_signal_set_add(0, &set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-set_delete.c b/level_0/f_signal/tests/unit/c/test-signal-set_delete.c index 3a885ee..950afb1 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-set_delete.c +++ b/level_0/f_signal/tests/unit/c/test-signal-set_delete.c @@ -52,7 +52,7 @@ void test__f_signal_set_delete__works(void **state) { const f_status_t status = f_signal_set_delete(0, &set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-set_empty.c b/level_0/f_signal/tests/unit/c/test-signal-set_empty.c index 55258c2..ded2d17 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-set_empty.c +++ b/level_0/f_signal/tests/unit/c/test-signal-set_empty.c @@ -52,7 +52,7 @@ void test__f_signal_set_empty__works(void **state) { const f_status_t status = f_signal_set_empty(&set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-set_fill.c b/level_0/f_signal/tests/unit/c/test-signal-set_fill.c index 35fa0f7..fb287b6 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-set_fill.c +++ b/level_0/f_signal/tests/unit/c/test-signal-set_fill.c @@ -54,7 +54,7 @@ void test__f_signal_set_fill__works(void **state) { const f_status_t status = f_signal_set_fill(&set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-suspend.c b/level_0/f_signal/tests/unit/c/test-signal-suspend.c index 232a465..4823368 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-suspend.c +++ b/level_0/f_signal/tests/unit/c/test-signal-suspend.c @@ -56,7 +56,7 @@ void test__f_signal_suspend__works(void **state) { const f_status_t status = f_signal_suspend(&set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-wait.c b/level_0/f_signal/tests/unit/c/test-signal-wait.c index 71e5dfe..82408e8 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-wait.c +++ b/level_0/f_signal/tests/unit/c/test-signal-wait.c @@ -49,7 +49,7 @@ void test__f_signal_wait__works(void **state) { const f_status_t status = f_signal_wait(&set, &information); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_signal/tests/unit/c/test-signal-wait_until.c b/level_0/f_signal/tests/unit/c/test-signal-wait_until.c index a245d09..5990dd7 100644 --- a/level_0/f_signal/tests/unit/c/test-signal-wait_until.c +++ b/level_0/f_signal/tests/unit/c/test-signal-wait_until.c @@ -55,7 +55,7 @@ void test__f_signal_wait_until__works(void **state) { const f_status_t status = f_signal_wait_until(&set, &timeout, &information); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/c/socket.c b/level_0/f_socket/c/socket.c index cad1611..9f9f4ac 100644 --- a/level_0/f_socket/c/socket.c +++ b/level_0/f_socket/c/socket.c @@ -42,7 +42,7 @@ extern "C" { socket->id_data = result; - return F_none; + return F_okay; } #endif // _di_f_socket_accept_ @@ -68,7 +68,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_bind_ @@ -99,7 +99,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_bind_inet4_ @@ -130,7 +130,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_bind_inet6_ @@ -169,7 +169,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_bind_local_ @@ -198,7 +198,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_connect_ @@ -226,7 +226,7 @@ extern "C" { socket_structure->id = result; - return F_none; + return F_okay; } #endif // _di_f_socket_create_ @@ -255,7 +255,7 @@ extern "C" { *id_1 = pair[0]; *id_2 = pair[1]; - return F_none; + return F_okay; } #endif // _di_f_socket_create_pair_ @@ -306,7 +306,7 @@ extern "C" { socket->id = -1; } - return F_none; + return F_okay; } #endif // _di_f_socket_disconnect_ @@ -325,7 +325,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_listen_ @@ -347,7 +347,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_option_get_ @@ -368,7 +368,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_option_set_ @@ -399,7 +399,7 @@ extern "C" { if (!name->string[name->used]) break; } // while - return F_none; + return F_okay; } #endif // _di_f_socket_host_name_ @@ -420,7 +420,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_socket_name_peer_ @@ -459,7 +459,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_read_ @@ -498,7 +498,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_read_message_ @@ -537,7 +537,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_read_stream_ @@ -579,7 +579,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_write_ @@ -621,7 +621,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_write_message_ @@ -663,7 +663,7 @@ extern "C" { *length = (size_t) result; } - return F_none; + return F_okay; } #endif // _di_f_socket_write_stream_ diff --git a/level_0/f_socket/c/socket.h b/level_0/f_socket/c/socket.h index cd07962..5c6d569 100644 --- a/level_0/f_socket/c/socket.h +++ b/level_0/f_socket/c/socket.h @@ -65,7 +65,7 @@ extern "C" { * The socket.id_data, socket.address, and socket.length are updated upon a successful return. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_block (with error bit) if socket is blocked. @@ -111,7 +111,7 @@ extern "C" { * The socket.id must refer to a valid socket file descriptor. * * @return - * F_none on success. + * F_okay on success. * * F_address (with error bit) if address is already in use (therefore unavailable). * F_available_not_address (with error bit) if address is unavailable (is non-existent or not local). @@ -145,7 +145,7 @@ extern "C" { * The socket.type (address family) will be assigned to f_socket_address_family_inet4_e. * * @return - * F_none on success. + * F_okay on success. * * F_address (with error bit) if address is already in use (therefore unavailable). * F_address_not (with error bit) if socket.domain is not set to f_socket_protocol_family_inet4_e. @@ -180,7 +180,7 @@ extern "C" { * The socket.type (address family) will be assigned to f_socket_address_family_inet6_e. * * @return - * F_none on success. + * F_okay on success. * * F_address (with error bit) if address is already in use (therefore unavailable). * F_address_not (with error bit) if socket.domain is not set to f_socket_protocol_family_inet6_e. @@ -217,7 +217,7 @@ extern "C" { * The socket.type (address family) will be assigned to f_socket_address_family_local_e. * * @return - * F_none on success. + * F_okay on success. * * F_address (with error bit) if address is already in use (therefore unavailable). * F_available_not_address (with error bit) if address is unavailable (is non-existent or not local). @@ -249,7 +249,7 @@ extern "C" { * The socket.address may point to any valid structure, like "struct sockaddr", "struct sockaddr_un", or "struct sockaddr_in". * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_available_not_address (with error bit) if address is unavailable (is non-existent or not local). @@ -288,7 +288,7 @@ extern "C" { * The socket.id will be updated with a file descriptor representing the created socket. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS). @@ -327,7 +327,7 @@ extern "C" { * This socket is supposed to be identical to the one specified by id_1. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_buffer_not (with error bit) if unable to create socket due to resource restrictions (maps to ENOBUFS). @@ -373,7 +373,7 @@ extern "C" { * f_socket_close_fast_e calls close(). * * @return - * F_none on success. + * F_okay on success. * F_connect_not if the socket is not connected. * * F_busy_address (with error bit) if address is already in use (therefore unavailable). @@ -406,7 +406,7 @@ extern "C" { * Suggested default setting: 8. * * @return - * F_none on success. + * F_okay on success. * * F_busy_address (with error bit) if address is already in use (therefore unavailable). * F_file_descriptor (with error bit) if id is an invalid descriptor. @@ -438,7 +438,7 @@ extern "C" { * The length of the value (often derived from a sizeof() call). * * @return - * F_none on success. + * F_okay on success. * * F_buffer (with error bit) if the given value is out of scope. * F_file_descriptor (with error bit) if id is an invalid descriptor. @@ -471,7 +471,7 @@ extern "C" { * The length of the value (often derived from a sizeof() call). * * @return - * F_none on success. + * F_okay on success. * * F_buffer (with error bit) if the given value is out of scope. * F_file_descriptor (with error bit) if id is an invalid descriptor. @@ -502,7 +502,7 @@ extern "C" { * If name.size is 0, then a default max (F_socket_default_name_max_d) is used. * * @return - * F_none on success. + * F_okay on success. * * F_buffer (with error bit) if the buffer is invalid. * F_parameter (with error bit) if a parameter is invalid. @@ -534,7 +534,7 @@ extern "C" { * The socket.address is used to store the name of the remote connection. * * @return - * F_none on success. + * F_okay on success. * * F_file_descriptor (with error bit) if id is an invalid descriptor. * F_buffer (with error bit) if the buffer is invalid. @@ -573,7 +573,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_complete_not (with error bit) if an existing connection is not yet complete. @@ -618,7 +618,7 @@ extern "C" { * Data may be lost if the amount of data read is larger than given buffer length. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_complete_not (with error bit) if an existing connection is not yet complete. @@ -667,7 +667,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_complete_not (with error bit) if an existing connection is not yet complete. @@ -716,7 +716,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_address_not (with error bit) if no address is provided and the connection is not "connection-mode". @@ -765,7 +765,7 @@ extern "C" { * Data may be lost if the amount of data send is larger than given buffer length. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_address_not (with error bit) if no address is provided and the connection is not "connection-mode". @@ -818,7 +818,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_address_not (with error bit) if no address is provided and the connection is not "connection-mode". diff --git a/level_0/f_socket/c/socket/private-socket.c b/level_0/f_socket/c/socket/private-socket.c index 5838eb2..7c62cfa 100644 --- a/level_0/f_socket/c/socket/private-socket.c +++ b/level_0/f_socket/c/socket/private-socket.c @@ -15,14 +15,14 @@ extern "C" { destination->array[destination->used++] = source.array[i]; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_sockets_append_all_) || !defined(_di_f_socketss_append_) || !defined(_di_f_socketss_append_all_) #if !defined(_di_f_socketss_adjust_) || !defined(_di_f_socketss_decimate_by_) f_status_t private_f_socketss_adjust(const f_number_unsigned_t length, f_socketss_t * const socketss) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < socketss->size; ++i) { @@ -37,7 +37,7 @@ extern "C" { #if !defined(_di_f_socketss_decrease_by_) || !defined(_di_f_socketss_increase_) || !defined(_di_f_socketss_increase_by_) || !defined(_di_f_socketss_resize_) f_status_t private_f_socketss_resize(const f_number_unsigned_t length, f_socketss_t * const socketss) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < socketss->size; ++i) { diff --git a/level_0/f_socket/c/socket/private-socket.h b/level_0/f_socket/c/socket/private-socket.h index 9fd002a..7f85157 100644 --- a/level_0/f_socket/c/socket/private-socket.h +++ b/level_0/f_socket/c/socket/private-socket.h @@ -26,7 +26,7 @@ extern "C" { * The destination lengths the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_increase_by(). * @@ -51,7 +51,7 @@ extern "C" { * The socketss array to adjust. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. @@ -80,7 +80,7 @@ extern "C" { * The socketss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if new length is larger than max array length. diff --git a/level_0/f_socket/c/socket/socket.c b/level_0/f_socket/c/socket/socket.c index a8d9eea..5632ae6 100644 --- a/level_0/f_socket/c/socket/socket.c +++ b/level_0/f_socket/c/socket/socket.c @@ -27,7 +27,7 @@ extern "C" { destination->array[destination->used++] = source; - return F_none; + return F_okay; } #endif // _di_f_sockets_append_ @@ -119,7 +119,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_socketss_append_ @@ -144,7 +144,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_socketss_append_all_ diff --git a/level_0/f_socket/c/socket/socket.h b/level_0/f_socket/c/socket/socket.h index c0392ac..20487da 100644 --- a/level_0/f_socket/c/socket/socket.h +++ b/level_0/f_socket/c/socket/socket.h @@ -46,7 +46,7 @@ extern "C" { * The destination sockets the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -70,7 +70,7 @@ extern "C" { * The destination sockets the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -215,7 +215,7 @@ extern "C" { * The string socketss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -236,7 +236,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). @@ -262,7 +262,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * Success from f_memory_array_resize(). diff --git a/level_0/f_socket/tests/unit/c/test-socket-accept.c b/level_0/f_socket/tests/unit/c/test-socket-accept.c index 6e2d3fe..dd194d6 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-accept.c +++ b/level_0/f_socket/tests/unit/c/test-socket-accept.c @@ -99,7 +99,7 @@ void test__f_socket_accept__works(void **state) { const f_status_t status = f_socket_accept(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(socket.id_data, id); assert_int_not_equal(socket.id, id); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-bind.c b/level_0/f_socket/tests/unit/c/test-socket-bind.c index 5e7236f..356ba6f 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-bind.c +++ b/level_0/f_socket/tests/unit/c/test-socket-bind.c @@ -68,7 +68,7 @@ void test__f_socket_bind__works(void **state) { const f_status_t status = f_socket_bind(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-bind_inet4.c b/level_0/f_socket/tests/unit/c/test-socket-bind_inet4.c index 9df5460..5d552dd 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-bind_inet4.c +++ b/level_0/f_socket/tests/unit/c/test-socket-bind_inet4.c @@ -93,7 +93,7 @@ void test__f_socket_bind_inet4__works(void **state) { const f_status_t status = f_socket_bind_inet4(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-bind_inet6.c b/level_0/f_socket/tests/unit/c/test-socket-bind_inet6.c index 17bf2d5..9329a13 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-bind_inet6.c +++ b/level_0/f_socket/tests/unit/c/test-socket-bind_inet6.c @@ -93,7 +93,7 @@ void test__f_socket_bind_inet6__works(void **state) { const f_status_t status = f_socket_bind_inet6(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-bind_local.c b/level_0/f_socket/tests/unit/c/test-socket-bind_local.c index 4fa04a8..9df2ed2 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-bind_local.c +++ b/level_0/f_socket/tests/unit/c/test-socket-bind_local.c @@ -93,7 +93,7 @@ void test__f_socket_bind_local__works(void **state) { const f_status_t status = f_socket_bind_local(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-connect.c b/level_0/f_socket/tests/unit/c/test-socket-connect.c index 930650d..f4d32ff 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-connect.c +++ b/level_0/f_socket/tests/unit/c/test-socket-connect.c @@ -71,7 +71,7 @@ void test__f_socket_connect__works(void **state) { const f_status_t status = f_socket_connect(socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-create.c b/level_0/f_socket/tests/unit/c/test-socket-create.c index 3cad44b..6b55abc 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-create.c +++ b/level_0/f_socket/tests/unit/c/test-socket-create.c @@ -65,7 +65,7 @@ void test__f_socket_create__works(void **state) { const f_status_t status = f_socket_create(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-create_pair.c b/level_0/f_socket/tests/unit/c/test-socket-create_pair.c index caf5850..2da791e 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-create_pair.c +++ b/level_0/f_socket/tests/unit/c/test-socket-create_pair.c @@ -78,7 +78,7 @@ void test__f_socket_create_pair__works(void **state) { const f_status_t status = f_socket_create_pair(0, 0, 0, &id_1, &id_2); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-disconnect.c b/level_0/f_socket/tests/unit/c/test-socket-disconnect.c index 771ebb5..da567a0 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-disconnect.c +++ b/level_0/f_socket/tests/unit/c/test-socket-disconnect.c @@ -168,7 +168,7 @@ void test__f_socket_disconnect__works_for_close_fast(void **state) { const f_status_t status = f_socket_disconnect(&socket, f_socket_close_fast_e); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(socket.id, -1); } } @@ -184,7 +184,7 @@ void test__f_socket_disconnect__works_for_close_read(void **state) { const f_status_t status = f_socket_disconnect(&socket, f_socket_close_read_e); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(socket.id, 1); } } @@ -200,7 +200,7 @@ void test__f_socket_disconnect__works_for_close_write(void **state) { const f_status_t status = f_socket_disconnect(&socket, f_socket_close_write_e); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(socket.id, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-listen.c b/level_0/f_socket/tests/unit/c/test-socket-listen.c index fcc57b9..3a172c9 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-listen.c +++ b/level_0/f_socket/tests/unit/c/test-socket-listen.c @@ -54,7 +54,7 @@ void test__f_socket_listen__works(void **state) { const f_status_t status = f_socket_listen(&socket, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-name_host.c b/level_0/f_socket/tests/unit/c/test-socket-name_host.c index 79f2ef3..7f675ae 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-name_host.c +++ b/level_0/f_socket/tests/unit/c/test-socket-name_host.c @@ -15,7 +15,7 @@ void test__f_socket_name_host__allocates_default(void **state) { const f_status_t status = f_socket_name_host(&socket, &name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(name.size, F_socket_default_name_max_d); } @@ -103,7 +103,7 @@ void test__f_socket_name_host__works(void **state) { const f_status_t status = f_socket_name_host(&socket, &name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-name_peer.c b/level_0/f_socket/tests/unit/c/test-socket-name_peer.c index 25a9c42..1cc5bb2 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-name_peer.c +++ b/level_0/f_socket/tests/unit/c/test-socket-name_peer.c @@ -58,7 +58,7 @@ void test__f_socket_name_peer__works(void **state) { const f_status_t status = f_socket_name_peer(&socket); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-option_get.c b/level_0/f_socket/tests/unit/c/test-socket-option_get.c index 484fce8..1e527e6 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-option_get.c +++ b/level_0/f_socket/tests/unit/c/test-socket-option_get.c @@ -100,7 +100,7 @@ void test__f_socket_option_get__works(void **state) { const f_status_t status = f_socket_option_get(&socket, 0, 0, (void *) &value, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-option_set.c b/level_0/f_socket/tests/unit/c/test-socket-option_set.c index 699ced3..bfc2ddd 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-option_set.c +++ b/level_0/f_socket/tests/unit/c/test-socket-option_set.c @@ -73,7 +73,7 @@ void test__f_socket_option_set__works(void **state) { const f_status_t status = f_socket_option_set(&socket, 0, 0, (void *) &value, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-read.c b/level_0/f_socket/tests/unit/c/test-socket-read.c index f79b184..ade485f 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-read.c +++ b/level_0/f_socket/tests/unit/c/test-socket-read.c @@ -103,7 +103,7 @@ void test__f_socket_read__works(void **state) { const f_status_t status = f_socket_read(&socket, 0, (void *) buffer, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-read_message.c b/level_0/f_socket/tests/unit/c/test-socket-read_message.c index 015738a..1f5bfd3 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-read_message.c +++ b/level_0/f_socket/tests/unit/c/test-socket-read_message.c @@ -108,7 +108,7 @@ void test__f_socket_read_message__works(void **state) { const f_status_t status = f_socket_read_message(&socket, 0, &header, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-read_stream.c b/level_0/f_socket/tests/unit/c/test-socket-read_stream.c index 726ca31..7751877 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-read_stream.c +++ b/level_0/f_socket/tests/unit/c/test-socket-read_stream.c @@ -103,7 +103,7 @@ void test__f_socket_read_stream__works(void **state) { const f_status_t status = f_socket_read_stream(&socket, 0, (void *) buffer, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_adjust.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_adjust.c index 5ba7df2..6db60d4 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_adjust.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_adjust.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_adjust__works(void **state) { { const f_status_t status = f_sockets_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_append.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_append.c index cd44a62..9f1acd3 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_append.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_append.c @@ -25,7 +25,7 @@ void test__f_socket_sockets_append__works(void **state) { { const f_status_t status = f_sockets_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].id, source.id); assert_int_equal(destination.array[0].domain, source.domain); diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_append_all.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_append_all.c index b18e430..e256556 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_append_all.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_append_all.c @@ -25,7 +25,7 @@ void test__f_socket_sockets_append_all__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -63,7 +63,7 @@ void test__f_socket_sockets_append_all__works(void **state) { { const f_status_t status = f_sockets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -76,7 +76,7 @@ void test__f_socket_sockets_append_all__works(void **state) { { const f_status_t status = f_sockets_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_decimate_by.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_decimate_by.c index 8dcf494..6b36e57 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_decimate_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_decimate_by.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_decimate_by__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_sockets_decimate_by__works(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_socket_sockets_decimate_by__works(void **state) { { const f_status_t status = f_sockets_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_decrease_by.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_decrease_by.c index a3d0053..8910dea 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_decrease_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_decrease_by.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_decrease_by__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_sockets_decrease_by__works(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_socket_sockets_decrease_by__works(void **state) { { const f_status_t status = f_sockets_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_increase.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_increase.c index 95e4650..d008c9a 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_increase.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_increase.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_increase__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_sockets_increase__works(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -63,7 +63,7 @@ void test__f_socket_sockets_increase__works(void **state) { const f_status_t status = f_sockets_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_increase_by.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_increase_by.c index d94e7e0..8e86a71 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_increase_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_increase_by.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_increase_by__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_sockets_increase_by__works(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -63,7 +63,7 @@ void test__f_socket_sockets_increase_by__works(void **state) { const f_status_t status = f_sockets_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-sockets_resize.c b/level_0/f_socket/tests/unit/c/test-socket-sockets_resize.c index 6b37f71..bcbb025 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-sockets_resize.c +++ b/level_0/f_socket/tests/unit/c/test-socket-sockets_resize.c @@ -29,7 +29,7 @@ void test__f_socket_sockets_resize__works(void **state) { { const f_status_t status = f_sockets_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_adjust.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_adjust.c index 6377334..566a3bd 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_adjust.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_adjust.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_adjust__works(void **state) { { const f_status_t status = f_socketss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_append.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_append.c index 5b8b623..23a10fb 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_append.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_append.c @@ -25,7 +25,7 @@ void test__f_socket_socketss_append__returns_data_not(void **state) { { const f_status_t status = f_sockets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -68,7 +68,7 @@ void test__f_socket_socketss_append__works(void **state) { { const f_status_t status = f_sockets_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -80,7 +80,7 @@ void test__f_socket_socketss_append__works(void **state) { { const f_status_t status = f_socketss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); assert_int_equal(destination.array[0].size, source.used); diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_append_all.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_append_all.c index 16520af..d4ce3b0 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_append_all.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_append_all.c @@ -25,7 +25,7 @@ void test__f_socket_socketss_append_all__returns_data_not(void **state) { { const f_status_t status = f_socketss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -63,7 +63,7 @@ void test__f_socket_socketss_append_all__works(void **state) { { const f_status_t status = f_socketss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } @@ -73,7 +73,7 @@ void test__f_socket_socketss_append_all__works(void **state) { const f_status_t status = f_sockets_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { source.array[source.used].array[source.array[source.used].used++] = sources[i]; @@ -84,7 +84,7 @@ void test__f_socket_socketss_append_all__works(void **state) { { const f_status_t status = f_socketss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_decimate_by.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_decimate_by.c index 676e571..0fa2f61 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_decimate_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_decimate_by.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_decimate_by__returns_data_not(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_socketss_decimate_by__works(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_socket_socketss_decimate_by__works(void **state) { { const f_status_t status = f_socketss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_decrease_by.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_decrease_by.c index 119d669..1741b27 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_decrease_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_decrease_by.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_decrease_by__returns_data_not(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_socketss_decrease_by__works(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_socket_socketss_decrease_by__works(void **state) { { const f_status_t status = f_socketss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_increase.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_increase.c index 752624a..d54233b 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_increase.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_increase.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_increase__returns_data_not(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -53,7 +53,7 @@ void test__f_socket_socketss_increase__works(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -63,7 +63,7 @@ void test__f_socket_socketss_increase__works(void **state) { const f_status_t status = f_socketss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_increase_by.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_increase_by.c index 240ea5e..0d80f80 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_increase_by.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_increase_by.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_increase_by__returns_data_not(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -61,7 +61,7 @@ void test__f_socket_socketss_increase_by__works(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -71,7 +71,7 @@ void test__f_socket_socketss_increase_by__works(void **state) { const f_status_t status = f_socketss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-socketss_resize.c b/level_0/f_socket/tests/unit/c/test-socket-socketss_resize.c index 0e96c1c..dfb0f62 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-socketss_resize.c +++ b/level_0/f_socket/tests/unit/c/test-socket-socketss_resize.c @@ -29,7 +29,7 @@ void test__f_socket_socketss_resize__works(void **state) { { const f_status_t status = f_socketss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_socket/tests/unit/c/test-socket-write.c b/level_0/f_socket/tests/unit/c/test-socket-write.c index fdc34d7..c311fb0 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-write.c +++ b/level_0/f_socket/tests/unit/c/test-socket-write.c @@ -109,7 +109,7 @@ void test__f_socket_write__works(void **state) { const f_status_t status = f_socket_write(&socket, 0, buffer, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-write_message.c b/level_0/f_socket/tests/unit/c/test-socket-write_message.c index df6c30a..c300c39 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-write_message.c +++ b/level_0/f_socket/tests/unit/c/test-socket-write_message.c @@ -114,7 +114,7 @@ void test__f_socket_write_message__works(void **state) { const f_status_t status = f_socket_write_message(&socket, 0, &header, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_socket/tests/unit/c/test-socket-write_stream.c b/level_0/f_socket/tests/unit/c/test-socket-write_stream.c index 3f71d34..54c4491 100644 --- a/level_0/f_socket/tests/unit/c/test-socket-write_stream.c +++ b/level_0/f_socket/tests/unit/c/test-socket-write_stream.c @@ -109,7 +109,7 @@ void test__f_socket_write_stream__works(void **state) { const f_status_t status = f_socket_write_stream(&socket, 0, buffer, &length); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(length, 1); } } diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index a3a0c76..64ef7f3 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -203,7 +203,14 @@ extern "C" { // Basic. // Start at 197 to allow compatibility with the reserved bash return codes (keep in mind fss return codes can be larger than 255). F_okay = 197, + F_okay_block, + F_okay_eoa, + F_okay_eof, + F_okay_eol, + F_okay_eos, F_okay_not, + F_okay_start, + F_okay_stop, F_abort, F_abort_not, F_absolute, @@ -621,13 +628,6 @@ extern "C" { F_complete_not_utf_eos, F_complete_not_utf_start, F_complete_not_utf_stop, - F_none_block, - F_none_eoa, - F_none_eof, - F_none_eol, - F_none_eos, - F_none_start, - F_none_stop, F_data, F_data_not, F_data_not_block, diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_error.c b/level_0/f_status/tests/unit/c/test-status-macro-is_error.c index cad6422..6264b01 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_error.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_error.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_error__works(void **state) { assert_false(F_status_is_error(0)); - assert_false(F_status_is_error(F_none)); + assert_false(F_status_is_error(F_okay)); assert_true(F_status_is_error(F_status_bit_error)); assert_true(F_status_is_error(F_status_bit_signal)); // The signal bit uses the error bit. assert_false(F_status_is_error(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_error_not.c b/level_0/f_status/tests/unit/c/test-status-macro-is_error_not.c index f638f12..432c546 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_error_not.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_error_not.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_error_not__works(void **state) { assert_true(F_status_is_error_not(0)); - assert_true(F_status_is_error_not(F_none)); + assert_true(F_status_is_error_not(F_okay)); assert_false(F_status_is_error_not(F_status_bit_error)); assert_false(F_status_is_error_not(F_status_bit_signal)); // The signal bit uses the error bit. assert_true(F_status_is_error_not(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_fine.c b/level_0/f_status/tests/unit/c/test-status-macro-is_fine.c index 8bd2141..cb275fd 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_fine.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_fine.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_fine__works(void **state) { assert_true(F_status_is_fine(0)); - assert_true(F_status_is_fine(F_none)); + assert_true(F_status_is_fine(F_okay)); assert_false(F_status_is_fine(F_status_bit_error)); assert_false(F_status_is_fine(F_status_bit_signal)); assert_false(F_status_is_fine(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_fine_not.c b/level_0/f_status/tests/unit/c/test-status-macro-is_fine_not.c index 0469073..b441834 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_fine_not.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_fine_not.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_fine_not__works(void **state) { assert_false(F_status_is_fine_not(0)); - assert_false(F_status_is_fine_not(F_none)); + assert_false(F_status_is_fine_not(F_okay)); assert_true(F_status_is_fine_not(F_status_bit_error)); assert_true(F_status_is_fine_not(F_status_bit_signal)); assert_true(F_status_is_fine_not(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_problem.c b/level_0/f_status/tests/unit/c/test-status-macro-is_problem.c index e95ad58..eece295 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_problem.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_problem.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_problem__works(void **state) { assert_false(F_status_is_problem(0)); - assert_false(F_status_is_problem(F_none)); + assert_false(F_status_is_problem(F_okay)); assert_true(F_status_is_problem(F_status_bit_error)); assert_true(F_status_is_problem(F_status_bit_signal)); assert_true(F_status_is_problem(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_problem_not.c b/level_0/f_status/tests/unit/c/test-status-macro-is_problem_not.c index 73bb487..f647022 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_problem_not.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_problem_not.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_problem_not__works(void **state) { assert_true(F_status_is_problem_not(0)); - assert_true(F_status_is_problem_not(F_none)); + assert_true(F_status_is_problem_not(F_okay)); assert_false(F_status_is_problem_not(F_status_bit_error)); assert_false(F_status_is_problem_not(F_status_bit_signal)); assert_false(F_status_is_problem_not(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_signal.c b/level_0/f_status/tests/unit/c/test-status-macro-is_signal.c index 57ee47d..3857e51 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_signal.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_signal.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_signal__works(void **state) { assert_false(F_status_is_signal(0)); - assert_false(F_status_is_signal(F_none)); + assert_false(F_status_is_signal(F_okay)); assert_false(F_status_is_signal(F_status_bit_error)); assert_true(F_status_is_signal(F_status_bit_signal)); assert_false(F_status_is_signal(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_signal_not.c b/level_0/f_status/tests/unit/c/test-status-macro-is_signal_not.c index 4d5a1d9..601a20c 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_signal_not.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_signal_not.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_signal_not__works(void **state) { assert_true(F_status_is_signal_not(0)); - assert_true(F_status_is_signal_not(F_none)); + assert_true(F_status_is_signal_not(F_okay)); assert_true(F_status_is_signal_not(F_status_bit_error)); assert_false(F_status_is_signal_not(F_status_bit_signal)); assert_true(F_status_is_signal_not(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_warning.c b/level_0/f_status/tests/unit/c/test-status-macro-is_warning.c index 81e0949..e0b52dd 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_warning.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_warning.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_warning__works(void **state) { assert_false(F_status_is_warning(0)); - assert_false(F_status_is_warning(F_none)); + assert_false(F_status_is_warning(F_okay)); assert_false(F_status_is_warning(F_status_bit_error)); assert_true(F_status_is_warning(F_status_bit_signal)); // The signal bit uses the warning bit. assert_true(F_status_is_warning(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-is_warning_not.c b/level_0/f_status/tests/unit/c/test-status-macro-is_warning_not.c index 0668b93..c0c91bc 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-is_warning_not.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-is_warning_not.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_is_warning_not__works(void **state) { assert_true(F_status_is_warning_not(0)); - assert_true(F_status_is_warning_not(F_none)); + assert_true(F_status_is_warning_not(F_okay)); assert_true(F_status_is_warning_not(F_status_bit_error)); assert_false(F_status_is_warning_not(F_status_bit_signal)); assert_false(F_status_is_warning_not(F_status_bit_warning)); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-set_error.c b/level_0/f_status/tests/unit/c/test-status-macro-set_error.c index f7dba25..7c7bd65 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-set_error.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-set_error.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_set_error__works(void **state) { assert_true(F_status_is_error(F_status_set_error(0))); - assert_true(F_status_is_error(F_status_set_error(F_none))); + assert_true(F_status_is_error(F_status_set_error(F_okay))); assert_true(F_status_is_error(F_status_set_error(F_status_bit_error))); assert_true(F_status_is_error(F_status_set_error(F_status_bit_signal))); assert_true(F_status_is_error(F_status_set_error(F_status_bit_warning))); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-set_fine.c b/level_0/f_status/tests/unit/c/test-status-macro-set_fine.c index b6be659..29d7f95 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-set_fine.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-set_fine.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_set_fine__works(void **state) { assert_true(F_status_is_fine(F_status_set_fine(0))); - assert_true(F_status_is_fine(F_status_set_fine(F_none))); + assert_true(F_status_is_fine(F_status_set_fine(F_okay))); assert_true(F_status_is_fine(F_status_set_fine(F_status_bit_error))); assert_true(F_status_is_fine(F_status_set_fine(F_status_bit_signal))); assert_true(F_status_is_fine(F_status_set_fine(F_status_bit_warning))); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-set_signal.c b/level_0/f_status/tests/unit/c/test-status-macro-set_signal.c index 7b0037f..240ffb2 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-set_signal.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-set_signal.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_set_signal__works(void **state) { assert_true(F_status_is_signal(F_status_set_signal(0))); - assert_true(F_status_is_signal(F_status_set_signal(F_none))); + assert_true(F_status_is_signal(F_status_set_signal(F_okay))); assert_true(F_status_is_signal(F_status_set_signal(F_status_bit_error))); assert_true(F_status_is_signal(F_status_set_signal(F_status_bit_signal))); assert_true(F_status_is_signal(F_status_set_signal(F_status_bit_warning))); diff --git a/level_0/f_status/tests/unit/c/test-status-macro-set_warning.c b/level_0/f_status/tests/unit/c/test-status-macro-set_warning.c index 99ff0a7..c8d2f4c 100644 --- a/level_0/f_status/tests/unit/c/test-status-macro-set_warning.c +++ b/level_0/f_status/tests/unit/c/test-status-macro-set_warning.c @@ -8,7 +8,7 @@ extern "C" { void test__F_status_set_warning__works(void **state) { assert_true(F_status_is_warning(F_status_set_warning(0))); - assert_true(F_status_is_warning(F_status_set_warning(F_none))); + assert_true(F_status_is_warning(F_status_set_warning(F_okay))); assert_true(F_status_is_warning(F_status_set_warning(F_status_bit_error))); assert_true(F_status_is_warning(F_status_set_warning(F_status_bit_signal))); assert_true(F_status_is_warning(F_status_set_warning(F_status_bit_warning))); diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index 7f26946..47e05a2 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -496,13 +496,13 @@ extern "C" { const f_string_static_t f_status_complete_not_utf_eos_s = macro_f_string_static_t_initialize_1(F_status_complete_not_utf_eos_s, 0, F_status_complete_not_utf_eos_s_length); const f_string_static_t f_status_complete_not_utf_start_s = macro_f_string_static_t_initialize_1(F_status_complete_not_utf_start_s, 0, F_status_complete_not_utf_start_s_length); const f_string_static_t f_status_complete_not_utf_stop_s = macro_f_string_static_t_initialize_1(F_status_complete_not_utf_stop_s, 0, F_status_complete_not_utf_stop_s_length); - const f_string_static_t f_status_none_block_s = macro_f_string_static_t_initialize_1(F_status_none_block_s, 0, F_status_none_block_s_length); - const f_string_static_t f_status_none_eoa_s = macro_f_string_static_t_initialize_1(F_status_none_eoa_s, 0, F_status_none_eoa_s_length); - const f_string_static_t f_status_none_eof_s = macro_f_string_static_t_initialize_1(F_status_none_eof_s, 0, F_status_none_eof_s_length); - const f_string_static_t f_status_none_eol_s = macro_f_string_static_t_initialize_1(F_status_none_eol_s, 0, F_status_none_eol_s_length); - const f_string_static_t f_status_none_eos_s = macro_f_string_static_t_initialize_1(F_status_none_eos_s, 0, F_status_none_eos_s_length); - const f_string_static_t f_status_none_start_s = macro_f_string_static_t_initialize_1(F_status_none_start_s, 0, F_status_none_start_s_length); - const f_string_static_t f_status_none_stop_s = macro_f_string_static_t_initialize_1(F_status_none_stop_s, 0, F_status_none_stop_s_length); + const f_string_static_t f_status_okay_block_s = macro_f_string_static_t_initialize_1(F_status_okay_block_s, 0, F_status_okay_block_s_length); + const f_string_static_t f_status_okay_eoa_s = macro_f_string_static_t_initialize_1(F_status_okay_eoa_s, 0, F_status_okay_eoa_s_length); + const f_string_static_t f_status_okay_eof_s = macro_f_string_static_t_initialize_1(F_status_okay_eof_s, 0, F_status_okay_eof_s_length); + const f_string_static_t f_status_okay_eol_s = macro_f_string_static_t_initialize_1(F_status_okay_eol_s, 0, F_status_okay_eol_s_length); + const f_string_static_t f_status_okay_eos_s = macro_f_string_static_t_initialize_1(F_status_okay_eos_s, 0, F_status_okay_eos_s_length); + const f_string_static_t f_status_okay_start_s = macro_f_string_static_t_initialize_1(F_status_okay_start_s, 0, F_status_okay_start_s_length); + const f_string_static_t f_status_okay_stop_s = macro_f_string_static_t_initialize_1(F_status_okay_stop_s, 0, F_status_okay_stop_s_length); const f_string_static_t f_status_data_s = macro_f_string_static_t_initialize_1(F_status_data_s, 0, F_status_data_s_length); const f_string_static_t f_status_data_not_s = macro_f_string_static_t_initialize_1(F_status_data_not_s, 0, F_status_data_not_s_length); const f_string_static_t f_status_data_not_block_s = macro_f_string_static_t_initialize_1(F_status_data_not_block_s, 0, F_status_data_not_block_s_length); @@ -1012,11 +1012,46 @@ extern "C" { break; + case F_okay_block: + *name = f_status_okay_block_s; + + break; + + case F_okay_eoa: + *name = f_status_okay_eoa_s; + + break; + + case F_okay_eof: + *name = f_status_okay_eof_s; + + break; + + case F_okay_eol: + *name = f_status_okay_eol_s; + + break; + + case F_okay_eos: + *name = f_status_okay_eos_s; + + break; + case F_okay_not: *name = f_status_okay_not_s; break; + case F_okay_start: + *name = f_status_okay_start_s; + + break; + + case F_okay_stop: + *name = f_status_okay_stop_s; + + break; + case F_abort: *name = f_status_abort_s; @@ -3039,41 +3074,6 @@ extern "C" { break; - case F_none_block: - *name = f_status_none_block_s; - - break; - - case F_none_eoa: - *name = f_status_none_eoa_s; - - break; - - case F_none_eof: - *name = f_status_none_eof_s; - - break; - - case F_none_eol: - *name = f_status_none_eol_s; - - break; - - case F_none_eos: - *name = f_status_none_eos_s; - - break; - - case F_none_start: - *name = f_status_none_start_s; - - break; - - case F_none_stop: - *name = f_status_none_stop_s; - - break; - case F_data: *name = f_status_data_s; @@ -3820,7 +3820,7 @@ extern "C" { return F_status_set_error(F_data); } - return F_none; + return F_okay; } #endif // _di_f_status_string_to_ diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index 0d4bd77..b9c2f57 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -231,7 +231,14 @@ extern "C" { // Basic. #define F_status_okay_s "F_okay" + #define F_status_okay_block_s "F_okay_block" + #define F_status_okay_eoa_s "F_okay_eoa" + #define F_status_okay_eof_s "F_okay_eof" + #define F_status_okay_eol_s "F_okay_eol" + #define F_status_okay_eos_s "F_okay_eos" #define F_status_okay_not_s "F_okay_not" + #define F_status_okay_start_s "F_okay_start" + #define F_status_okay_stop_s "F_okay_stop" #define F_status_abort_s "F_abort" #define F_status_abort_not_s "F_abort_not" #define F_status_absolute_s "F_absolute" @@ -550,7 +557,14 @@ extern "C" { #define F_status_yes_not_s "F_yes_not" #define F_status_okay_s_length 6 + #define F_status_okay_block_s_length 12 + #define F_status_okay_eoa_s_length 10 + #define F_status_okay_eof_s_length 10 + #define F_status_okay_eol_s_length 10 + #define F_status_okay_eos_s_length 10 #define F_status_okay_not_s_length 10 + #define F_status_okay_start_s_length 12 + #define F_status_okay_stop_s_length 11 #define F_status_abort_s_length 7 #define F_status_abort_not_s_length 11 #define F_status_absolute_s_length 10 @@ -869,7 +883,14 @@ extern "C" { #define F_status_yes_not_s_length 9 extern const f_string_static_t f_status_okay_s; + extern const f_string_static_t f_status_okay_block_s; + extern const f_string_static_t f_status_okay_eoa_s; + extern const f_string_static_t f_status_okay_eof_s; + extern const f_string_static_t f_status_okay_eol_s; + extern const f_string_static_t f_status_okay_eos_s; extern const f_string_static_t f_status_okay_not_s; + extern const f_string_static_t f_status_okay_start_s; + extern const f_string_static_t f_status_okay_stop_s; extern const f_string_static_t f_status_abort_s; extern const f_string_static_t f_status_abort_not_s; extern const f_string_static_t f_status_absolute_s; @@ -1447,13 +1468,6 @@ extern "C" { #define F_status_complete_not_utf_eos_s "F_complete_not_utf_eos" #define F_status_complete_not_utf_start_s "F_complete_not_utf_start" #define F_status_complete_not_utf_stop_s "F_complete_not_utf_stop" - #define F_status_none_block_s "F_none_block" - #define F_status_none_eoa_s "F_none_eoa" - #define F_status_none_eof_s "F_none_eof" - #define F_status_none_eol_s "F_none_eol" - #define F_status_none_eos_s "F_none_eos" - #define F_status_none_start_s "F_none_start" - #define F_status_none_stop_s "F_none_stop" #define F_status_data_s "F_data" #define F_status_data_not_s "F_data_not" #define F_status_data_not_block_s "F_data_not_block" @@ -1478,13 +1492,6 @@ extern "C" { #define F_status_complete_not_utf_eos_s_length 22 #define F_status_complete_not_utf_start_s_length 24 #define F_status_complete_not_utf_stop_s_length 23 - #define F_status_none_block_s_length 12 - #define F_status_none_eoa_s_length 10 - #define F_status_none_eof_s_length 10 - #define F_status_none_eol_s_length 10 - #define F_status_none_eos_s_length 10 - #define F_status_none_start_s_length 12 - #define F_status_none_stop_s_length 11 #define F_status_data_s_length 6 #define F_status_data_not_s_length 10 #define F_status_data_not_block_s_length 16 @@ -1509,13 +1516,6 @@ extern "C" { extern const f_string_static_t f_status_complete_not_utf_eos_s; extern const f_string_static_t f_status_complete_not_utf_start_s; extern const f_string_static_t f_status_complete_not_utf_stop_s; - extern const f_string_static_t f_status_none_block_s; - extern const f_string_static_t f_status_none_eoa_s; - extern const f_string_static_t f_status_none_eof_s; - extern const f_string_static_t f_status_none_eol_s; - extern const f_string_static_t f_status_none_eos_s; - extern const f_string_static_t f_status_none_start_s; - extern const f_string_static_t f_status_none_stop_s; extern const f_string_static_t f_status_data_s; extern const f_string_static_t f_status_data_not_s; extern const f_string_static_t f_status_data_not_block_s; @@ -1987,7 +1987,7 @@ extern "C" { * The processed code name. * * @return - * F_none on success. + * F_okay on success. * * F_data (with error bit) if there status is unknown. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_status_string/tests/unit/c/test-status_string-to.c b/level_0/f_status_string/tests/unit/c/test-status_string-to.c index b1785c5..c42784c 100644 --- a/level_0/f_status_string/tests/unit/c/test-status_string-to.c +++ b/level_0/f_status_string/tests/unit/c/test-status_string-to.c @@ -97,7 +97,14 @@ void test__f_status_string_to__works(void **state) { F_signal_reserved_63, F_signal_reserved_64, F_okay, + F_okay_block, + F_okay_eoa, + F_okay_eof, + F_okay_eol, + F_okay_eos, F_okay_not, + F_okay_start, + F_okay_stop, F_abort, F_abort_not, F_absolute, @@ -501,13 +508,6 @@ void test__f_status_string_to__works(void **state) { F_complete_not_utf_eos, F_complete_not_utf_start, F_complete_not_utf_stop, - F_none_block, - F_none_eoa, - F_none_eof, - F_none_eol, - F_none_eos, - F_none_start, - F_none_stop, F_data, F_data_not, F_data_not_block, @@ -659,7 +659,7 @@ void test__f_status_string_to__works(void **state) { const f_string_static_t status_strings[] = { f_status_false_s, f_status_true_s, - f_status_signal_hangup_s, + f_status_true_s, // This is F_signal_hangup, but it overlaps and falls back to F_true. f_status_signal_interrupt_s, f_status_signal_quit_s, f_status_signal_illegal_s, @@ -724,7 +724,14 @@ void test__f_status_string_to__works(void **state) { f_status_signal_reserved_63_s, f_status_signal_reserved_64_s, f_status_okay_s, + f_status_okay_block_s, + f_status_okay_eoa_s, + f_status_okay_eof_s, + f_status_okay_eol_s, + f_status_okay_eos_s, f_status_okay_not_s, + f_status_okay_start_s, + f_status_okay_stop_s, f_status_abort_s, f_status_abort_not_s, f_status_absolute_s, @@ -1128,13 +1135,6 @@ void test__f_status_string_to__works(void **state) { f_status_complete_not_utf_eos_s, f_status_complete_not_utf_start_s, f_status_complete_not_utf_stop_s, - f_status_none_block_s, - f_status_none_eoa_s, - f_status_none_eof_s, - f_status_none_eol_s, - f_status_none_eos_s, - f_status_none_start_s, - f_status_none_stop_s, f_status_data_s, f_status_data_not_s, f_status_data_not_block_s, @@ -1289,7 +1289,7 @@ void test__f_status_string_to__works(void **state) { const f_status_t status = f_status_string_to(statuss[i], &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result.used, status_strings[i].used); assert_string_equal(result.string, status_strings[i].string); } // for diff --git a/level_0/f_string/c/private-string.c b/level_0/f_string/c/private-string.c index 1c8def8..d2fef9e 100644 --- a/level_0/f_string/c/private-string.c +++ b/level_0/f_string/c/private-string.c @@ -17,7 +17,7 @@ extern "C" { destination->used += length; destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_string_append_) || !defined(_di_f_string_append_assure_) || !defined(_di_f_string_dynamic_append_) || !defined(_di_f_string_dynamic_append_assure_) || !defined(_di_f_string_dynamic_mash_) || !defined(_di_f_string_dynamic_partial_append_) || !defined(_di_f_string_dynamic_partial_append_assure_) || !defined(_di_f_string_dynamic_partial_mash_) || !defined(_di_f_string_dynamic_partial_mash_nulless_) || !defined(_di_f_string_dynamic_partial_mish_) || !defined(_di_f_string_dynamic_partial_mish_nulless_) || !defined(_di_f_string_dynamic_partial_prepend_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_mash_) || !defined(_di_f_string_maps_append_) || !defined(_di_f_string_triples_append_) @@ -26,7 +26,7 @@ extern "C" { if (destination->used >= F_string_t_size_d) return F_status_set_error(F_string_too_large); - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t size = 0; @@ -69,7 +69,7 @@ extern "C" { destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_string_append_assure_nulless_) || !defined(_di_f_string_append_nulless_) || !defined(_di_f_string_dynamic_append_assure_nulless_) || !defined(_di_f_string_dynamic_append_nulless_) || !defined(_di_f_string_dynamic_mash_nulless_) || !defined(_di_f_string_dynamic_partial_append_assure_nulless_) || !defined(_di_f_string_dynamic_partial_append_nulless_) || !defined(_di_f_string_dynamic_partial_mash_nulless_) || !defined(_di_f_string_mash_nulless_) @@ -94,7 +94,7 @@ extern "C" { destination->used += length; - return F_none; + return F_okay; } #endif // !defined(_di_f_string_dynamic_mish_) || !defined(_di_f_string_dynamic_partial_mish_) || !defined(_di_f_string_dynamic_partial_prepend_assure_) || !defined(_di_f_string_dynamic_partial_prepend_) || !defined(_di_f_string_dynamic_prepend_assure_) || !defined(_di_f_string_dynamic_prepend_) || !defined(_di_f_string_mish_) || !defined(_di_f_string_prepend_assure_) || !defined(_di_f_string_prepend_) @@ -103,7 +103,7 @@ extern "C" { if (destination->used + length > F_string_t_size_d) return F_status_set_error(F_string_too_large); - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t first = 0; f_number_unsigned_t offset = 0; @@ -154,7 +154,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_dynamic_mish_nulless_) || !defined(_di_f_string_dynamic_partial_mish_nulless_) || !defined(_di_f_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_f_string_dynamic_partial_prepend_nulless_) || !defined(_di_f_string_dynamic_prepend_assure_nulless_) || !defined(_di_f_string_dynamic_prepend_nulless_) || !defined(_di_f_string_mish_nulless_) || !defined(_di_f_string_prepend_assure_nulless_) || !defined(_di_f_string_prepend_nulless_) diff --git a/level_0/f_string/c/private-string.h b/level_0/f_string/c/private-string.h index e99b04b..2d06568 100644 --- a/level_0/f_string/c/private-string.h +++ b/level_0/f_string/c/private-string.h @@ -28,7 +28,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -71,7 +71,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -104,7 +104,7 @@ extern "C" { * The destination string the source and glue are prepended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -140,7 +140,7 @@ extern "C" { * The destination string the source and glue are prepended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * diff --git a/level_0/f_string/c/string.c b/level_0/f_string/c/string.c index 3cc631a..f9c1c11 100644 --- a/level_0/f_string/c/string.c +++ b/level_0/f_string/c/string.c @@ -51,7 +51,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_append_assure_ @@ -89,7 +89,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_append_assure_nulless_ @@ -219,7 +219,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_prepend_assure_ @@ -257,7 +257,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_prepend_assure_nulless_ @@ -285,10 +285,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_seek_line_ @@ -302,14 +302,14 @@ extern "C" { while (string[range->start] != seek_to) { - if (string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_seek_line_to_ @@ -325,10 +325,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_seek_to_ diff --git a/level_0/f_string/c/string.h b/level_0/f_string/c/string.h index e9b0cb2..653b525 100644 --- a/level_0/f_string/c/string.h +++ b/level_0/f_string/c/string.h @@ -60,7 +60,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -87,7 +87,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -115,7 +115,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -142,7 +142,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -173,7 +173,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -206,7 +206,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -237,7 +237,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -270,7 +270,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -297,7 +297,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -326,7 +326,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -356,7 +356,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -386,7 +386,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -410,8 +410,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_stop on success, but stopped at end of range. * F_data_not_stop on success, but the range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -436,9 +436,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -459,8 +459,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment. diff --git a/level_0/f_string/c/string/dynamic.c b/level_0/f_string/c/string/dynamic.c index be5c4de..4d2f457 100644 --- a/level_0/f_string/c/string/dynamic.c +++ b/level_0/f_string/c/string/dynamic.c @@ -49,7 +49,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_append_assure_ @@ -87,7 +87,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_append_assure_nulless_ @@ -257,7 +257,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_partial_append_assure_ @@ -301,7 +301,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_append_assure_nulless_ @@ -460,7 +460,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_partial_prepend_assure_ @@ -505,7 +505,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_partial_prepend_assure_nulless @@ -555,7 +555,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_prepend_assure_ @@ -591,7 +591,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_prepend_assure_nulless_ @@ -630,11 +630,11 @@ extern "C" { ++range->start; - if (range->start >= structure.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= structure.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_seek_line_ @@ -649,15 +649,15 @@ extern "C" { while (structure.string[range->start] != seek_to_this) { - if (structure.string[range->start] == f_string_eol_s.string[0]) return F_none_eol; + if (structure.string[range->start] == f_string_eol_s.string[0]) return F_okay_eol; ++range->start; - if (range->start >= structure.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= structure.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_seek_line_to_ @@ -674,11 +674,11 @@ extern "C" { ++range->start; - if (range->start >= structure.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= structure.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_seek_to_ @@ -688,7 +688,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (destination->used && !destination->string[destination->used - 1]) return F_none; + if (destination->used && !destination->string[destination->used - 1]) return F_okay; if (destination->used == F_string_t_size_d) return F_status_set_error(F_string_too_large); { @@ -698,7 +698,7 @@ extern "C" { destination->string[destination->used++] = 0; - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_terminate_ @@ -709,7 +709,7 @@ extern "C" { #endif // _di_level_0_parameter_checking_ if (destination->used < destination->size) { - if (!destination->string[destination->used]) return F_none; + if (!destination->string[destination->used]) return F_okay; } if (destination->used == F_string_t_size_d) return F_status_set_error(F_string_too_large); @@ -721,7 +721,7 @@ extern "C" { destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_string_dynamic_terminate_after_ diff --git a/level_0/f_string/c/string/dynamic.h b/level_0/f_string/c/string/dynamic.h index f6d9060..6d660b8 100644 --- a/level_0/f_string/c/string/dynamic.h +++ b/level_0/f_string/c/string/dynamic.h @@ -61,7 +61,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -79,7 +79,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -100,7 +100,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -123,7 +123,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -171,7 +171,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -196,7 +196,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -222,7 +222,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size) (or step is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -247,7 +247,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_parameter (with error bit) if a parameter is invalid. @@ -272,7 +272,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -299,7 +299,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -324,7 +324,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -351,7 +351,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -376,7 +376,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -401,7 +401,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -430,7 +430,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -457,7 +457,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -486,7 +486,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -517,7 +517,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -546,7 +546,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -577,7 +577,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -604,7 +604,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -631,7 +631,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -660,7 +660,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -687,7 +687,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -712,7 +712,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -735,7 +735,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -760,7 +760,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -783,7 +783,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -804,7 +804,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -824,9 +824,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -850,9 +850,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -876,9 +876,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -902,7 +902,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if string is too large to fit into the buffer. @@ -927,7 +927,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if string is too large to fit into the buffer. diff --git a/level_0/f_string/c/string/dynamics.h b/level_0/f_string/c/string/dynamics.h index bed662a..86f328d 100644 --- a/level_0/f_string/c/string/dynamics.h +++ b/level_0/f_string/c/string/dynamics.h @@ -54,7 +54,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -73,7 +73,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -94,7 +94,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -119,7 +119,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -143,7 +143,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -192,7 +192,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -213,7 +213,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/dynamicss.c b/level_0/f_string/c/string/dynamicss.c index 488bc14..d6a447f 100644 --- a/level_0/f_string/c/string/dynamicss.c +++ b/level_0/f_string/c/string/dynamicss.c @@ -25,7 +25,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_dynamicss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -41,7 +41,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_dynamicss_append_ @@ -53,7 +53,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_dynamicss_resize(destination->used + source.used, destination); @@ -70,7 +70,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_dynamicss_append_all_ diff --git a/level_0/f_string/c/string/dynamicss.h b/level_0/f_string/c/string/dynamicss.h index 38e986f..a228a86 100644 --- a/level_0/f_string/c/string/dynamicss.h +++ b/level_0/f_string/c/string/dynamicss.h @@ -54,7 +54,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -73,7 +73,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -94,7 +94,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -119,7 +119,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -143,7 +143,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -192,7 +192,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -213,7 +213,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/map_multis.c b/level_0/f_string/c/string/map_multis.c index 36f4527..37412a1 100644 --- a/level_0/f_string/c/string/map_multis.c +++ b/level_0/f_string/c/string/map_multis.c @@ -23,7 +23,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_map_multis_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -45,7 +45,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_map_multis_append_ diff --git a/level_0/f_string/c/string/map_multis.h b/level_0/f_string/c/string/map_multis.h index 4cb5259..2b5147b 100644 --- a/level_0/f_string/c/string/map_multis.h +++ b/level_0/f_string/c/string/map_multis.h @@ -58,7 +58,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The map_multis array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/map_multiss.c b/level_0/f_string/c/string/map_multiss.c index 8aafa17..3e740a8 100644 --- a/level_0/f_string/c/string/map_multiss.c +++ b/level_0/f_string/c/string/map_multiss.c @@ -26,7 +26,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_map_multiss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -42,7 +42,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_map_multiss_append_ @@ -54,7 +54,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_map_multiss_resize(destination->used + source.used, destination); @@ -71,7 +71,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_map_multiss_append_all_ diff --git a/level_0/f_string/c/string/map_multiss.h b/level_0/f_string/c/string/map_multiss.h index cc9614d..01110a4 100644 --- a/level_0/f_string/c/string/map_multiss.h +++ b/level_0/f_string/c/string/map_multiss.h @@ -58,7 +58,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The map_multiss array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/maps.c b/level_0/f_string/c/string/maps.c index cc7fb37..edb9737 100644 --- a/level_0/f_string/c/string/maps.c +++ b/level_0/f_string/c/string/maps.c @@ -22,7 +22,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_maps_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -44,7 +44,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_maps_append_ diff --git a/level_0/f_string/c/string/maps.h b/level_0/f_string/c/string/maps.h index 55e83c2..4fbee7e 100644 --- a/level_0/f_string/c/string/maps.h +++ b/level_0/f_string/c/string/maps.h @@ -58,7 +58,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The string maps array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/mapss.c b/level_0/f_string/c/string/mapss.c index 5df1e48..0b84da3 100644 --- a/level_0/f_string/c/string/mapss.c +++ b/level_0/f_string/c/string/mapss.c @@ -25,7 +25,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_mapss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -41,7 +41,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_mapss_append_ @@ -53,7 +53,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_mapss_resize(destination->used + source.used, destination); @@ -70,7 +70,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_mapss_append_all_ diff --git a/level_0/f_string/c/string/mapss.h b/level_0/f_string/c/string/mapss.h index b086d0f..b859067 100644 --- a/level_0/f_string/c/string/mapss.h +++ b/level_0/f_string/c/string/mapss.h @@ -58,7 +58,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination mapss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination mapss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size) (or step is 0). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string mapss array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/private-dynamics.c b/level_0/f_string/c/string/private-dynamics.c index bfed5a9..9083748 100644 --- a/level_0/f_string/c/string/private-dynamics.c +++ b/level_0/f_string/c/string/private-dynamics.c @@ -9,7 +9,7 @@ extern "C" { #if !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_) f_status_t private_f_string_dynamics_adjust(const f_number_unsigned_t length, f_string_dynamics_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -24,7 +24,7 @@ extern "C" { #if !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) f_status_t private_f_string_dynamics_append(const f_string_dynamic_t source, f_string_dynamics_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_dynamics_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -40,14 +40,14 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) #if !defined(_di_f_string_dynamics_append_all_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) f_status_t private_f_string_dynamics_append_all(const f_string_dynamics_t source, f_string_dynamics_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_dynamics_resize(destination->used + source.used, destination); @@ -64,14 +64,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_dynamics_append_all_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) #if !defined(_di_f_string_dynamics_decrease_by_) || !defined(_di_f_string_dynamics_increase_) || !defined(_di_f_string_dynamics_increase_by_) || !defined(f_string_dynamics_resize) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) f_status_t private_f_string_dynamics_resize(const f_number_unsigned_t length, f_string_dynamics_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-dynamics.h b/level_0/f_string/c/string/private-dynamics.h index c6ae012..bed384b 100644 --- a/level_0/f_string/c/string/private-dynamics.h +++ b/level_0/f_string/c/string/private-dynamics.h @@ -26,7 +26,7 @@ extern "C" { * The dynamics to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -55,7 +55,7 @@ extern "C" { * The destination dynamics the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -82,7 +82,7 @@ extern "C" { * The destination dynamics the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -109,7 +109,7 @@ extern "C" { * The dynamics to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-dynamicss.c b/level_0/f_string/c/string/private-dynamicss.c index 8f45b00..df95146 100644 --- a/level_0/f_string/c/string/private-dynamicss.c +++ b/level_0/f_string/c/string/private-dynamicss.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_dynamicss_adjust_) || !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_dynamicss_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_) f_status_t private_f_string_dynamicss_adjust(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -25,7 +25,7 @@ extern "C" { #if !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) || !defined(_di_f_string_dynamicss_append_all_) || !defined(_di_f_string_map_multis_append_all_) f_status_t private_f_string_dynamicss_resize(const f_number_unsigned_t length, f_string_dynamicss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-dynamicss.h b/level_0/f_string/c/string/private-dynamicss.h index 882622f..a8b2ff3 100644 --- a/level_0/f_string/c/string/private-dynamicss.h +++ b/level_0/f_string/c/string/private-dynamicss.h @@ -26,7 +26,7 @@ extern "C" { * The dynamicss to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -55,7 +55,7 @@ extern "C" { * The dynamicss to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-map_multis.c b/level_0/f_string/c/string/private-map_multis.c index 6eb3133..4535fbb 100644 --- a/level_0/f_string/c/string/private-map_multis.c +++ b/level_0/f_string/c/string/private-map_multis.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_) f_status_t private_f_string_map_multis_adjust(const f_number_unsigned_t length, f_string_map_multis_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -28,7 +28,7 @@ extern "C" { #if !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) f_status_t private_f_string_map_multis_append_all(const f_string_map_multis_t source, f_string_map_multis_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_map_multis_resize(destination->used + source.used, destination); @@ -51,14 +51,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) #if !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_map_multis_append_all_) || !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_resize_) || !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multiss_append_all_) || !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) f_status_t private_f_string_map_multis_resize(const f_number_unsigned_t length, f_string_map_multis_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-map_multis.h b/level_0/f_string/c/string/private-map_multis.h index 60af0f7..fea1b7c 100644 --- a/level_0/f_string/c/string/private-map_multis.h +++ b/level_0/f_string/c/string/private-map_multis.h @@ -26,7 +26,7 @@ extern "C" { * The map_multis to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The destination map_multis the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -78,7 +78,7 @@ extern "C" { * The map_multis to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-map_multiss.c b/level_0/f_string/c/string/private-map_multiss.c index a84e881..0526453 100644 --- a/level_0/f_string/c/string/private-map_multiss.c +++ b/level_0/f_string/c/string/private-map_multiss.c @@ -11,7 +11,7 @@ extern "C" { #if !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_) f_status_t private_f_string_map_multiss_adjust(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -26,7 +26,7 @@ extern "C" { #if !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) f_status_t private_f_string_map_multiss_resize(const f_number_unsigned_t length, f_string_map_multiss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-map_multiss.h b/level_0/f_string/c/string/private-map_multiss.h index 1f6dd6a..02756ac 100644 --- a/level_0/f_string/c/string/private-map_multiss.h +++ b/level_0/f_string/c/string/private-map_multiss.h @@ -26,7 +26,7 @@ extern "C" { * The map_multiss to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The map_multiss to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-maps.c b/level_0/f_string/c/string/private-maps.c index e1e1c8d..5e1fb3d 100644 --- a/level_0/f_string/c/string/private-maps.c +++ b/level_0/f_string/c/string/private-maps.c @@ -9,7 +9,7 @@ extern "C" { #if !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_) f_status_t private_f_string_maps_adjust(const f_number_unsigned_t length, f_string_maps_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -27,7 +27,7 @@ extern "C" { #if !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) f_status_t private_f_string_maps_append_all(const f_string_maps_t source, f_string_maps_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_maps_resize(destination->used + source.used, destination); @@ -50,14 +50,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) #if !defined(_di_f_string_maps_append_) || !defined(_di_f_string_maps_append_all_) || !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_resize_) || !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_mapss_append_all_) || !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_) f_status_t private_f_string_maps_resize(const f_number_unsigned_t length, f_string_maps_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-maps.h b/level_0/f_string/c/string/private-maps.h index 91b01c1..af64c7f 100644 --- a/level_0/f_string/c/string/private-maps.h +++ b/level_0/f_string/c/string/private-maps.h @@ -26,7 +26,7 @@ extern "C" { * The maps to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -78,7 +78,7 @@ extern "C" { * The maps to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-mapss.c b/level_0/f_string/c/string/private-mapss.c index 707461b..aee11fd 100644 --- a/level_0/f_string/c/string/private-mapss.c +++ b/level_0/f_string/c/string/private-mapss.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_) f_status_t private_f_string_mapss_adjust(const f_number_unsigned_t length, f_string_mapss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -25,7 +25,7 @@ extern "C" { #if !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_) f_status_t private_f_string_mapss_resize(const f_number_unsigned_t length, f_string_mapss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-mapss.h b/level_0/f_string/c/string/private-mapss.h index 19116a5..7e6618d 100644 --- a/level_0/f_string/c/string/private-mapss.h +++ b/level_0/f_string/c/string/private-mapss.h @@ -26,7 +26,7 @@ extern "C" { * The structure to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The structure to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-quantitys.c b/level_0/f_string/c/string/private-quantitys.c index da888f3..1ccd0ff 100644 --- a/level_0/f_string/c/string/private-quantitys.c +++ b/level_0/f_string/c/string/private-quantitys.c @@ -20,7 +20,7 @@ extern "C" { destination->array[destination->used++].total = source.array[i].total; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_quantitys_append_all_) || !defined(_di_f_string_quantityss_append_) || !defined(_di_f_string_quantityss_append_all_) diff --git a/level_0/f_string/c/string/private-quantitys.h b/level_0/f_string/c/string/private-quantitys.h index 86ffe25..f6636c5 100644 --- a/level_0/f_string/c/string/private-quantitys.h +++ b/level_0/f_string/c/string/private-quantitys.h @@ -26,7 +26,7 @@ extern "C" { * The destination quantitys the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-quantityss.c b/level_0/f_string/c/string/private-quantityss.c index 4b0a944..7e29f4b 100644 --- a/level_0/f_string/c/string/private-quantityss.c +++ b/level_0/f_string/c/string/private-quantityss.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_) f_status_t private_f_string_quantityss_adjust(const f_number_unsigned_t length, f_string_quantityss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -25,7 +25,7 @@ extern "C" { #if !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_) f_status_t private_f_string_quantityss_resize(const f_number_unsigned_t length, f_string_quantityss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-quantityss.h b/level_0/f_string/c/string/private-quantityss.h index d28eb4d..db2b5c8 100644 --- a/level_0/f_string/c/string/private-quantityss.h +++ b/level_0/f_string/c/string/private-quantityss.h @@ -26,7 +26,7 @@ extern "C" { * The structure to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The structure to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-ranges.c b/level_0/f_string/c/string/private-ranges.c index c2e48d5..bd0dc34 100644 --- a/level_0/f_string/c/string/private-ranges.c +++ b/level_0/f_string/c/string/private-ranges.c @@ -20,7 +20,7 @@ extern "C" { destination->array[destination->used++].stop = source.array[i].stop; } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) diff --git a/level_0/f_string/c/string/private-ranges.h b/level_0/f_string/c/string/private-ranges.h index f63d42a..998c344 100644 --- a/level_0/f_string/c/string/private-ranges.h +++ b/level_0/f_string/c/string/private-ranges.h @@ -26,7 +26,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-rangess.c b/level_0/f_string/c/string/private-rangess.c index 9cb754c..f066079 100644 --- a/level_0/f_string/c/string/private-rangess.c +++ b/level_0/f_string/c/string/private-rangess.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_) f_status_t private_f_string_rangess_adjust(const f_number_unsigned_t length, f_string_rangess_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -25,7 +25,7 @@ extern "C" { #if !defined(_di_f_string_ranges_append_) || !defined(_di_f_string_ranges_append_all_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_resize_) || !defined(_di_f_string_rangess_append_) || !defined(_di_f_string_rangess_append_all_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_) f_status_t private_f_string_rangess_resize(const f_number_unsigned_t length, f_string_rangess_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-rangess.h b/level_0/f_string/c/string/private-rangess.h index 44868ef..212dedd 100644 --- a/level_0/f_string/c/string/private-rangess.h +++ b/level_0/f_string/c/string/private-rangess.h @@ -26,7 +26,7 @@ extern "C" { * The structure to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -50,7 +50,7 @@ extern "C" { * The structure to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-triples.c b/level_0/f_string/c/string/private-triples.c index 3bc2ef4..4abf778 100644 --- a/level_0/f_string/c/string/private-triples.c +++ b/level_0/f_string/c/string/private-triples.c @@ -9,7 +9,7 @@ extern "C" { #if !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_) f_status_t private_f_string_triples_adjust(const f_number_unsigned_t length, f_string_triples_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -30,7 +30,7 @@ extern "C" { #if !defined(_di_f_string_triples_append_all_) || !defined(_di_f_string_tripless_append_) || !defined(_di_f_string_tripless_append_all_) f_status_t private_f_string_triples_append_all(const f_string_triples_t source, f_string_triples_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_triples_resize(destination->used + source.used, destination); @@ -59,14 +59,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_string_triples_append_all_) || !defined(_di_f_string_tripless_append_) || !defined(_di_f_string_tripless_append_all_) #if !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_) f_status_t private_f_string_triples_resize(const f_number_unsigned_t length, f_string_triples_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-triples.h b/level_0/f_string/c/string/private-triples.h index 739e02d..ba3d24b 100644 --- a/level_0/f_string/c/string/private-triples.h +++ b/level_0/f_string/c/string/private-triples.h @@ -26,7 +26,7 @@ extern "C" { * The triples to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -50,7 +50,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -76,7 +76,7 @@ extern "C" { * The triples to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -102,7 +102,7 @@ extern "C" { * The tripless to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -126,7 +126,7 @@ extern "C" { * The tripless to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/private-tripless.c b/level_0/f_string/c/string/private-tripless.c index e92a1ab..f000ac2 100644 --- a/level_0/f_string/c/string/private-tripless.c +++ b/level_0/f_string/c/string/private-tripless.c @@ -10,7 +10,7 @@ extern "C" { #if !defined(_di_f_string_tripless_adjust_) || !defined(_di_f_string_tripless_decimate_by_) f_status_t private_f_string_tripless_adjust(const f_number_unsigned_t length, f_string_tripless_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -25,7 +25,7 @@ extern "C" { #if !defined(_di_f_string_tripless_decrease_by_) || !defined(_di_f_string_tripless_increase_) || !defined(_di_f_string_tripless_increase_by_) f_status_t private_f_string_tripless_resize(const f_number_unsigned_t length, f_string_tripless_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_string/c/string/private-tripless.h b/level_0/f_string/c/string/private-tripless.h index 44bf4d4..11c16cd 100644 --- a/level_0/f_string/c/string/private-tripless.h +++ b/level_0/f_string/c/string/private-tripless.h @@ -26,7 +26,7 @@ extern "C" { * The tripless to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -50,7 +50,7 @@ extern "C" { * The tripless to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_string/c/string/quantitys.c b/level_0/f_string/c/string/quantitys.c index ef8d6ae..5848842 100644 --- a/level_0/f_string/c/string/quantitys.c +++ b/level_0/f_string/c/string/quantitys.c @@ -30,7 +30,7 @@ extern "C" { destination->array[destination->used].start = source.start; destination->array[destination->used++].total = source.total; - return F_none; + return F_okay; } #endif // _di_f_string_quantitys_append_ diff --git a/level_0/f_string/c/string/quantitys.h b/level_0/f_string/c/string/quantitys.h index ceed908..24b0f80 100644 --- a/level_0/f_string/c/string/quantitys.h +++ b/level_0/f_string/c/string/quantitys.h @@ -58,7 +58,7 @@ extern "C" { * The string quantitys array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination quantitys the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -97,7 +97,7 @@ extern "C" { * The destination quantitys the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -121,7 +121,7 @@ extern "C" { * The string quantitys array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -145,7 +145,7 @@ extern "C" { * The string quantitys array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -168,7 +168,7 @@ extern "C" { * The string quantitys array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_parameter (with error bit) if a parameter is invalid. @@ -192,7 +192,7 @@ extern "C" { * The string quantitys array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the new array length is too large. * F_parameter (with error bit) if a parameter is invalid. @@ -212,7 +212,7 @@ extern "C" { * The string quantitys array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/quantityss.c b/level_0/f_string/c/string/quantityss.c index c03b7d1..3761a27 100644 --- a/level_0/f_string/c/string/quantityss.c +++ b/level_0/f_string/c/string/quantityss.c @@ -25,7 +25,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_quantityss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -41,7 +41,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_quantityss_append_ @@ -53,7 +53,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_quantityss_resize(destination->used + source.used, destination); @@ -70,7 +70,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_quantityss_append_all_ diff --git a/level_0/f_string/c/string/quantityss.h b/level_0/f_string/c/string/quantityss.h index 6467c2c..49516e0 100644 --- a/level_0/f_string/c/string/quantityss.h +++ b/level_0/f_string/c/string/quantityss.h @@ -60,7 +60,7 @@ extern "C" { * The string quantityss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -79,7 +79,7 @@ extern "C" { * The destination quantityss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -99,7 +99,7 @@ extern "C" { * The destination quantityss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -123,7 +123,7 @@ extern "C" { * The string quantityss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -147,7 +147,7 @@ extern "C" { * The string quantityss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -170,7 +170,7 @@ extern "C" { * The string quantityss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string quantityss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string quantityss array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/ranges.c b/level_0/f_string/c/string/ranges.c index 7528a8d..875740e 100644 --- a/level_0/f_string/c/string/ranges.c +++ b/level_0/f_string/c/string/ranges.c @@ -30,7 +30,7 @@ extern "C" { destination->array[destination->used].start = source.start; destination->array[destination->used++].stop = source.stop; - return F_none; + return F_okay; } #endif // _di_f_string_ranges_append_ @@ -53,7 +53,7 @@ extern "C" { destination->array[destination->used++].stop = source.array[i].stop; } // for - return F_none; + return F_okay; } #endif // _di_f_string_ranges_append_all_ diff --git a/level_0/f_string/c/string/ranges.h b/level_0/f_string/c/string/ranges.h index 8347659..e30c145 100644 --- a/level_0/f_string/c/string/ranges.h +++ b/level_0/f_string/c/string/ranges.h @@ -58,7 +58,7 @@ extern "C" { * The string ranges array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -76,7 +76,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -96,7 +96,7 @@ extern "C" { * The destination ranges the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -120,7 +120,7 @@ extern "C" { * The string ranges array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -144,7 +144,7 @@ extern "C" { * The string ranges array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -169,7 +169,7 @@ extern "C" { * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * @return - * F_none on success. + * F_okay on success. * F_array_too_large (with error bit) if the new array length is too large. * * F_parameter (with error bit) if a parameter is invalid. @@ -193,7 +193,7 @@ extern "C" { * The string ranges array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -214,7 +214,7 @@ extern "C" { * The string ranges array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/rangess.c b/level_0/f_string/c/string/rangess.c index 0315dc2..7f0a8fe 100644 --- a/level_0/f_string/c/string/rangess.c +++ b/level_0/f_string/c/string/rangess.c @@ -25,7 +25,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_rangess_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -41,7 +41,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_rangess_append_ @@ -53,7 +53,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_rangess_resize(destination->used + source.used, destination); @@ -70,7 +70,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_rangess_append_all_ diff --git a/level_0/f_string/c/string/rangess.h b/level_0/f_string/c/string/rangess.h index 3364db7..3b20e55 100644 --- a/level_0/f_string/c/string/rangess.h +++ b/level_0/f_string/c/string/rangess.h @@ -60,7 +60,7 @@ extern "C" { * The string rangess array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -79,7 +79,7 @@ extern "C" { * The destination rangess the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -99,7 +99,7 @@ extern "C" { * The destination rangess the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -123,7 +123,7 @@ extern "C" { * The string rangess array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -147,7 +147,7 @@ extern "C" { * The string rangess array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -171,7 +171,7 @@ extern "C" { * The string rangess array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -196,7 +196,7 @@ extern "C" { * The string rangess array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -217,7 +217,7 @@ extern "C" { * The string rangess array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/triples.c b/level_0/f_string/c/string/triples.c index 1b0e7fa..9159d31 100644 --- a/level_0/f_string/c/string/triples.c +++ b/level_0/f_string/c/string/triples.c @@ -22,7 +22,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -50,7 +50,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_triples_append_ @@ -62,7 +62,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_triples_resize(destination->used + source.used, destination); @@ -91,7 +91,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_triples_append_all_ diff --git a/level_0/f_string/c/string/triples.h b/level_0/f_string/c/string/triples.h index 04f512c..2cfacc4 100644 --- a/level_0/f_string/c/string/triples.h +++ b/level_0/f_string/c/string/triples.h @@ -58,7 +58,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -76,7 +76,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -97,7 +97,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string triples array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/c/string/tripless.c b/level_0/f_string/c/string/tripless.c index c3a6b54..8f2c9b5 100644 --- a/level_0/f_string/c/string/tripless.c +++ b/level_0/f_string/c/string/tripless.c @@ -15,7 +15,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_string_tripless_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -31,7 +31,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_string_tripless_append_ @@ -43,7 +43,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_string_tripless_resize(destination->used + source.used, destination); @@ -60,7 +60,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_string_tripless_append_all_ diff --git a/level_0/f_string/c/string/tripless.h b/level_0/f_string/c/string/tripless.h index deae166..58ed1ff 100644 --- a/level_0/f_string/c/string/tripless.h +++ b/level_0/f_string/c/string/tripless.h @@ -58,7 +58,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -76,7 +76,7 @@ extern "C" { * The destination tripless the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -97,7 +97,7 @@ extern "C" { * The destination tripless the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string tripless array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_string/tests/unit/c/test-string-append.c b/level_0/f_string/tests/unit/c/test-string-append.c index d2cccf3..a239680 100644 --- a/level_0/f_string/tests/unit/c/test-string-append.c +++ b/level_0/f_string/tests/unit/c/test-string-append.c @@ -13,7 +13,7 @@ void test__f_string_append__works(void **state) { { const f_status_t status = f_string_append(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-append_assure.c b/level_0/f_string/tests/unit/c/test-string-append_assure.c index 6664e7a..ce2407d 100644 --- a/level_0/f_string/tests/unit/c/test-string-append_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-append_assure.c @@ -13,7 +13,7 @@ void test__f_string_append_assure__works(void **state) { { const f_status_t status = f_string_append_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -24,7 +24,7 @@ void test__f_string_append_assure__works(void **state) { { const f_status_t status = f_string_append_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-append_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-append_assure_nulless.c index bba2bea..41c2d07 100644 --- a/level_0/f_string/tests/unit/c/test-string-append_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-append_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_string_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_append_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -24,7 +24,7 @@ void test__f_string_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_append_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-append_nulless.c b/level_0/f_string/tests/unit/c/test-string-append_nulless.c index 7629c7d..479b950 100644 --- a/level_0/f_string/tests/unit/c/test-string-append_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-append_nulless.c @@ -14,7 +14,7 @@ void test__f_string_append_nulless__works(void **state) { { const f_status_t status = f_string_append_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_adjust.c b/level_0/f_string/tests/unit/c/test-string-dynamic_adjust.c index e1f5afe..464b7f6 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_adjust.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_adjust__works(void **state) { { const f_status_t status = f_string_dynamic_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_append.c b/level_0/f_string/tests/unit/c/test-string-dynamic_append.c index 4c93f96..0f0d544 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_append.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_append.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_append__works(void **state) { { const f_status_t status = f_string_dynamic_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure.c b/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure.c index 35aef73..511d85a 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_append_assure__works(void **state) { { const f_status_t status = f_string_dynamic_append_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -24,7 +24,7 @@ void test__f_string_dynamic_append_assure__works(void **state) { { const f_status_t status = f_string_dynamic_append_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure_nulless.c index c58595b..e94ac93 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_append_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_string_dynamic_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_append_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -24,7 +24,7 @@ void test__f_string_dynamic_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_append_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_append_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_append_nulless.c index a79b7f9..48e24e0 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_append_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_append_nulless.c @@ -14,7 +14,7 @@ void test__f_string_dynamic_append_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_append_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-dynamic_decimate_by.c index 8f54726..ddc3677 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamic_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamic_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-dynamic_decrease_by.c index 510db9c..d0662f0 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamic_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamic_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_increase.c b/level_0/f_string/tests/unit/c/test-string-dynamic_increase.c index b6503da..a1cc8ca 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_increase.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_increase__works(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamic_increase__works(void **state) { const f_status_t status = f_string_dynamic_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_dynamic_increase__returns_data_not(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_increase_by.c b/level_0/f_string/tests/unit/c/test-string-dynamic_increase_by.c index a94e8fe..73fb929 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_increase_by__works(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamic_increase_by__works(void **state) { const f_status_t status = f_string_dynamic_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_mash.c b/level_0/f_string/tests/unit/c/test-string-dynamic_mash.c index 7f9b938..4a3ad7e 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_mash.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_mash.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_mash__works(void **state) { { const f_status_t status = f_string_dynamic_mash(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_mash__works(void **state) { { const f_status_t status = f_string_dynamic_mash(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_mash_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_mash_nulless.c index 550dbf1..6aaaba3 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_mash_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_mash_nulless.c @@ -16,7 +16,7 @@ void test__f_string_dynamic_mash_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_mash_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_mash_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_mash_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_mish.c b/level_0/f_string/tests/unit/c/test-string-dynamic_mish.c index 5aa44a1..7df910b 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_mish.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_mish.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_mish__works(void **state) { { const f_status_t status = f_string_dynamic_mish(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_mish__works(void **state) { { const f_status_t status = f_string_dynamic_mish(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_mish_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_mish_nulless.c index 3f7114f..42ee635 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_mish_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_mish_nulless.c @@ -16,7 +16,7 @@ void test__f_string_dynamic_mish_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_mish_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_mish_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_mish_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append.c index 36f8031..5096417 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_append__works(void **state) { { const f_status_t status = f_string_dynamic_partial_append(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure.c index 917548d..3ecc0b9 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_append_assure__works(void **state) { { const f_status_t status = f_string_dynamic_append(expected, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_partial_append_assure__works(void **state) { { const f_status_t status = f_string_dynamic_partial_append_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure_nulless.c index 864d641..ae1afb6 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_assure_nulless.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_append(expected, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -25,7 +25,7 @@ void test__f_string_dynamic_partial_append_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_append_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_nulless.c index e8be104..8c8bdca 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_append_nulless.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_append_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_append_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash.c index c361bda..9c8a5ff 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash.c @@ -17,7 +17,7 @@ void test__f_string_dynamic_partial_mash__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mash(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -28,7 +28,7 @@ void test__f_string_dynamic_partial_mash__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mash(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash_nulless.c index 3436b79..6831723 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mash_nulless.c @@ -17,7 +17,7 @@ void test__f_string_dynamic_partial_mash_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mash_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -27,7 +27,7 @@ void test__f_string_dynamic_partial_mash_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mash_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish.c index d6432e5..d8b131a 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish.c @@ -17,7 +17,7 @@ void test__f_string_dynamic_partial_mish__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mish(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -28,7 +28,7 @@ void test__f_string_dynamic_partial_mish__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mish(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish_nulless.c index f6de98e..b55bcd4 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_mish_nulless.c @@ -17,7 +17,7 @@ void test__f_string_dynamic_partial_mish_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mish_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -27,7 +27,7 @@ void test__f_string_dynamic_partial_mish_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_mish_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend.c index 2aa940e..c908f90 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_prepend__works(void **state) { { const f_status_t status = f_string_dynamic_partial_prepend(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure.c index e233b04..48769f4 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_prepend_assure__works(void **state) { { const f_status_t status = f_string_dynamic_partial_prepend_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -26,7 +26,7 @@ void test__f_string_dynamic_partial_prepend_assure__works(void **state) { { const f_status_t status = f_string_dynamic_partial_prepend_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure_nulless.c index 1c6457b..32534c6 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_assure_nulless.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_prepend_assure_nulless__works(void **state) { const f_status_t status = f_string_dynamic_partial_prepend_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -25,7 +25,7 @@ void test__f_string_dynamic_partial_prepend_assure_nulless__works(void **state) { const f_status_t status = f_string_dynamic_partial_prepend_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_nulless.c index ee4a636..78ac3f8 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_partial_prepend_nulless.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_partial_prepend_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_partial_prepend_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend.c b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend.c index 00af117..9564944 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_prepend__works(void **state) { { const f_status_t status = f_string_dynamic_prepend(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure.c b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure.c index 32fe1e5..c98cd24 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_prepend_assure__works(void **state) { { const f_status_t status = f_string_dynamic_prepend_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -24,7 +24,7 @@ void test__f_string_dynamic_prepend_assure__works(void **state) { { const f_status_t status = f_string_dynamic_prepend_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure_nulless.c index 729815d..c85fa82 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_string_dynamic_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_prepend_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -24,7 +24,7 @@ void test__f_string_dynamic_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_prepend_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_nulless.c b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_nulless.c index 4845adf..3a2f600 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_prepend_nulless.c @@ -14,7 +14,7 @@ void test__f_string_dynamic_prepend_nulless__works(void **state) { { const f_status_t status = f_string_dynamic_prepend_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_resize.c b/level_0/f_string/tests/unit/c/test-string-dynamic_resize.c index 4c763f6..370ec19 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_resize.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_resize__works(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.c b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.c index f9b6393..350cd14 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.c @@ -27,7 +27,7 @@ void test__f_string_dynamic_seek_line__returns_none_eos(void **state) { const f_status_t status = f_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -43,7 +43,7 @@ void test__f_string_dynamic_seek_line__returns_none_stop(void **state) { const f_status_t status = f_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); @@ -59,7 +59,7 @@ void test__f_string_dynamic_seek_line__works(void **state) { const f_status_t status = f_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 4); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.h b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.h index d368f84..2ca646f 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.h +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line.h @@ -18,14 +18,14 @@ extern void test__f_string_dynamic_seek_line__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_string_dynamic_seek_line() */ extern void test__f_string_dynamic_seek_line__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_dynamic_seek_line() */ diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.c b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.c index f0a7648..9ca2a16 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.c @@ -15,7 +15,7 @@ void test__f_string_dynamic_seek_line_to__at_newline(void **state) { const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eol); + assert_int_equal(status, F_okay_eol); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -46,7 +46,7 @@ void test__f_string_dynamic_seek_line_to__returns_none_eos(void **state) { const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_string_dynamic_seek_line_to__returns_none_stop(void **state) { const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); @@ -80,7 +80,7 @@ void test__f_string_dynamic_seek_line_to__works(void **state) { const f_status_t status = f_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.h b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.h index 7d82528..2f08dda 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.h +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_line_to.h @@ -25,14 +25,14 @@ extern void test__f_string_dynamic_seek_line_to__at_newline(void **state); extern void test__f_string_dynamic_seek_line_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_string_dynamic_seek_line_to() */ extern void test__f_string_dynamic_seek_line_to__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_dynamic_seek_line_to() */ diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.c b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.c index 3b6283a..b8413de 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.c @@ -29,7 +29,7 @@ void test__f_string_dynamic_seek_to__returns_none_eos(void **state) { const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -46,7 +46,7 @@ void test__f_string_dynamic_seek_to__returns_none_stop(void **state) { const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); @@ -63,7 +63,7 @@ void test__f_string_dynamic_seek_to__works(void **state) { const f_status_t status = f_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 3); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.h b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.h index 8ddad53..88687fd 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.h +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_seek_to.h @@ -18,14 +18,14 @@ extern void test__f_string_dynamic_seek_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_string_dynamic_seek_to() */ extern void test__f_string_dynamic_seek_to__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_dynamic_seek_to() */ diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_terminate.c b/level_0/f_string/tests/unit/c/test-string-dynamic_terminate.c index 7b0c1c4..fd37da5 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_terminate.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_terminate.c @@ -14,7 +14,7 @@ void test__f_string_dynamic_terminate__appends_null(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = 'X'; } @@ -22,7 +22,7 @@ void test__f_string_dynamic_terminate__appends_null(void **state) { { const f_status_t status = f_string_dynamic_terminate(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 1); assert_int_equal(data.string[0], 0); } @@ -39,7 +39,7 @@ void test__f_string_dynamic_terminate__doesnt_append_null(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = 0; } @@ -47,7 +47,7 @@ void test__f_string_dynamic_terminate__doesnt_append_null(void **state) { { const f_status_t status = f_string_dynamic_terminate(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 1); assert_int_equal(data.string[0], 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamic_terminate_after.c b/level_0/f_string/tests/unit/c/test-string-dynamic_terminate_after.c index f553e95..9354a76 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamic_terminate_after.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamic_terminate_after.c @@ -13,7 +13,7 @@ void test__f_string_dynamic_terminate_after__appends_null(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = 'X'; } @@ -21,7 +21,7 @@ void test__f_string_dynamic_terminate_after__appends_null(void **state) { { const f_status_t status = f_string_dynamic_terminate_after(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_in_range(data.size, 1, 1 + F_memory_default_allocation_small_d); @@ -40,7 +40,7 @@ void test__f_string_dynamic_terminate_after__doesnt_append_null(void **state) { { const f_status_t status = f_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_in_range(data.size, length, length + F_memory_default_allocation_small_d); data.string[0] = 0; @@ -49,7 +49,7 @@ void test__f_string_dynamic_terminate_after__doesnt_append_null(void **state) { { const f_status_t status = f_string_dynamic_terminate_after(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_in_range(data.size, length, length + F_memory_default_allocation_small_d); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_adjust.c b/level_0/f_string/tests/unit/c/test-string-dynamics_adjust.c index bababe1..846219a 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_adjust.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_adjust__works(void **state) { { const f_status_t status = f_string_dynamics_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_append.c b/level_0/f_string/tests/unit/c/test-string-dynamics_append.c index 2a6d428..9c564c4 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_append.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_append.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_append__works(void **state) { { const f_status_t status = f_string_dynamics_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_append_all.c b/level_0/f_string/tests/unit/c/test-string-dynamics_append_all.c index 05c2b03..88f62c5 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_append_all.c @@ -19,14 +19,14 @@ void test__f_string_dynamics_append_all__works(void **state) { { f_status_t status = f_string_dynamics_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_sources[source.used], &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, test_sources[source.used].used); assert_string_equal(source.array[source.used].string, test_sources[source.used].string); @@ -37,7 +37,7 @@ void test__f_string_dynamics_append_all__works(void **state) { { const f_status_t status = f_string_dynamics_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -70,7 +70,7 @@ void test__f_string_dynamics_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-dynamics_decimate_by.c index 65f5200..a83decd 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamics_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamics_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-dynamics_decrease_by.c index 3103997..63dbc22 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamics_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamics_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_increase.c b/level_0/f_string/tests/unit/c/test-string-dynamics_increase.c index 90ab94e..d47798d 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_increase.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_increase__works(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamics_increase__works(void **state) { const f_status_t status = f_string_dynamics_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_dynamics_increase__returns_data_not(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_increase_by.c b/level_0/f_string/tests/unit/c/test-string-dynamics_increase_by.c index e781c22..4816174 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_increase_by__works(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamics_increase_by__works(void **state) { const f_status_t status = f_string_dynamics_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamics_resize.c b/level_0/f_string/tests/unit/c/test-string-dynamics_resize.c index 8f0cb8d..1d6c56f 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamics_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamics_resize.c @@ -13,7 +13,7 @@ void test__f_string_dynamics_resize__works(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_adjust.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_adjust.c index 6c316ef..5df8040 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_adjust.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_adjust__works(void **state) { { const f_status_t status = f_string_dynamicss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_append.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_append.c index f44fcc2..da80177 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_append.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_append.c @@ -19,14 +19,14 @@ void test__f_string_dynamicss_append__works(void **state) { { f_status_t status = f_string_dynamics_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_names[source.used], &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].string, test_names[source.used].string); assert_int_equal(source.array[source.used].used, test_names[source.used].used); } // for @@ -35,7 +35,7 @@ void test__f_string_dynamicss_append__works(void **state) { { const f_status_t status = f_string_dynamicss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -69,7 +69,7 @@ void test__f_string_dynamicss_append__returns_data_not(void **state) { { const f_status_t status = f_string_dynamics_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_append_all.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_append_all.c index efe62b0..76e6b0c 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_append_all.c @@ -20,7 +20,7 @@ void test__f_string_dynamicss_append_all__works(void **state) { { f_status_t status = f_string_dynamicss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -30,7 +30,7 @@ void test__f_string_dynamicss_append_all__works(void **state) { status = f_string_dynamics_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -38,7 +38,7 @@ void test__f_string_dynamicss_append_all__works(void **state) { status = f_string_dynamic_append(test_names[i], &source.array[source.used].array[i]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].array[i].string, test_names[i].string); assert_int_equal(source.array[source.used].array[i].used, test_names[i].used); } // for @@ -50,7 +50,7 @@ void test__f_string_dynamicss_append_all__works(void **state) { { const f_status_t status = f_string_dynamicss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -95,7 +95,7 @@ void test__f_string_dynamicss_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_decimate_by.c index e4b27bd..1bbf434 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamicss_decimate_by__works(void **state) { { const f_status_t status = f_string_dynamicss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_decrease_by.c index f824afb..afd124f 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_dynamicss_decrease_by__works(void **state) { { const f_status_t status = f_string_dynamicss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_increase.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_increase.c index 251c021..ae392c2 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_increase.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_increase__works(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamicss_increase__works(void **state) { const f_status_t status = f_string_dynamicss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_dynamicss_increase__returns_data_not(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_increase_by.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_increase_by.c index dec5bba..0f226f8 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_increase_by__works(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_dynamicss_increase_by__works(void **state) { const f_status_t status = f_string_dynamicss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-dynamicss_resize.c b/level_0/f_string/tests/unit/c/test-string-dynamicss_resize.c index f80e04d..93d27de 100644 --- a/level_0/f_string/tests/unit/c/test-string-dynamicss_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-dynamicss_resize.c @@ -13,7 +13,7 @@ void test__f_string_dynamicss_resize__works(void **state) { { const f_status_t status = f_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_adjust.c b/level_0/f_string/tests/unit/c/test-string-map_multis_adjust.c index 54f12b4..019f242 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_adjust.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_adjust__works(void **state) { { const f_status_t status = f_string_map_multis_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_append.c b/level_0/f_string/tests/unit/c/test-string-map_multis_append.c index f2ad9d0..6dd72cd 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_append.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_append.c @@ -22,13 +22,13 @@ void test__f_string_map_multis_append__works(void **state) { { f_status_t status = f_string_dynamic_append(test_name, &source.name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.name.used, test_name.used); assert_string_equal(source.name.string, test_name.string); status = f_string_dynamics_append_all(test_value, &source.value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.value.used, test_value.used); assert_int_equal(source.value.array[0].used, test_value.array[0].used); assert_int_equal(source.value.array[1].used, test_value.array[1].used); @@ -40,7 +40,7 @@ void test__f_string_map_multis_append__works(void **state) { { const f_status_t status = f_string_map_multis_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].name.used, source.name.used); assert_int_equal(destination.array[0].value.used, source.value.used); diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_append_all.c b/level_0/f_string/tests/unit/c/test-string-map_multis_append_all.c index 7b3d9a4..e9c446b 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_append_all.c @@ -23,20 +23,20 @@ void test__f_string_map_multis_append_all__works(void **state) { { f_status_t status = f_string_map_multis_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_name, &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_name.string); assert_int_equal(source.array[source.used].name.used, test_name.used); status = f_string_dynamics_append_all(test_value, &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].value.array[0].used, test_value.array[0].used); assert_int_equal(source.array[source.used].value.array[1].used, test_value.array[1].used); assert_string_equal(source.array[source.used].value.array[0].string, test_value.array[0].string); @@ -47,7 +47,7 @@ void test__f_string_map_multis_append_all__works(void **state) { { const f_status_t status = f_string_map_multis_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -93,7 +93,7 @@ void test__f_string_map_multis_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-map_multis_decimate_by.c index 2af9695..da3d83a 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_decimate_by__works(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_map_multis_decimate_by__works(void **state) { { const f_status_t status = f_string_map_multis_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-map_multis_decrease_by.c index faf283c..b1f085e 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_decrease_by__works(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_map_multis_decrease_by__works(void **state) { { const f_status_t status = f_string_map_multis_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_increase.c b/level_0/f_string/tests/unit/c/test-string-map_multis_increase.c index ad9c765..e62cab8 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_increase.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_increase__works(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_map_multis_increase__works(void **state) { const f_status_t status = f_string_map_multis_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_map_multis_increase__returns_data_not(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_increase_by.c b/level_0/f_string/tests/unit/c/test-string-map_multis_increase_by.c index 875ab3b..edd3149 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_increase_by__works(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_map_multis_increase_by__works(void **state) { const f_status_t status = f_string_map_multis_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multis_resize.c b/level_0/f_string/tests/unit/c/test-string-map_multis_resize.c index e246488..4ed8a6e 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multis_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multis_resize.c @@ -13,7 +13,7 @@ void test__f_string_map_multis_resize__works(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_adjust.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_adjust.c index ee7956f..31f43b9 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_adjust.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_adjust__works(void **state) { { const f_status_t status = f_string_map_multiss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_append.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_append.c index 8786a12..776b0d4 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_append.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_append.c @@ -35,20 +35,20 @@ void test__f_string_map_multiss_append__works(void **state) { { f_status_t status = f_string_map_multis_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_names[source.used], &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_names[source.used].string); assert_int_equal(source.array[source.used].name.used, test_names[source.used].used); status = f_string_dynamics_append_all(test_values[source.used], &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].value.used, test_values[source.used].used); assert_int_equal(source.array[source.used].value.array[0].used, test_values[source.used].array[0].used); assert_int_equal(source.array[source.used].value.array[1].used, test_values[source.used].array[1].used); @@ -61,7 +61,7 @@ void test__f_string_map_multiss_append__works(void **state) { { const f_status_t status = f_string_map_multiss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -108,7 +108,7 @@ void test__f_string_map_multiss_append__returns_data_not(void **state) { { const f_status_t status = f_string_map_multis_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_append_all.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_append_all.c index 68b7ada..b9ece24 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_append_all.c @@ -36,7 +36,7 @@ void test__f_string_map_multiss_append_all__works(void **state) { { f_status_t status = f_string_map_multiss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -46,7 +46,7 @@ void test__f_string_map_multiss_append_all__works(void **state) { status = f_string_map_multis_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -54,13 +54,13 @@ void test__f_string_map_multiss_append_all__works(void **state) { status = f_string_dynamic_append(test_names[i], &source.array[source.used].array[i].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[i].name.used, test_names[i].used); assert_string_equal(source.array[source.used].array[i].name.string, test_names[i].string); status = f_string_dynamics_append_all(test_values[i], &source.array[source.used].array[i].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[i].value.used, test_values[i].used); assert_int_equal(source.array[source.used].array[i].value.array[0].used, test_values[i].array[0].used); assert_int_equal(source.array[source.used].array[i].value.array[1].used, test_values[i].array[1].used); @@ -76,7 +76,7 @@ void test__f_string_map_multiss_append_all__works(void **state) { { const f_status_t status = f_string_map_multiss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -134,7 +134,7 @@ void test__f_string_map_multiss_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_decimate_by.c index 53746a0..458297f 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_decimate_by__works(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_map_multiss_decimate_by__works(void **state) { { const f_status_t status = f_string_map_multiss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_decrease_by.c index 1c018c2..04ff341 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_decrease_by__works(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_map_multiss_decrease_by__works(void **state) { { const f_status_t status = f_string_map_multiss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_increase.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_increase.c index f87c902..d13a6f6 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_increase.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_increase__works(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_map_multiss_increase__works(void **state) { const f_status_t status = f_string_map_multiss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_map_multiss_increase__returns_data_not(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_increase_by.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_increase_by.c index 14b0e87..2d93fc0 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_increase_by__works(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_map_multiss_increase_by__works(void **state) { const f_status_t status = f_string_map_multiss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-map_multiss_resize.c b/level_0/f_string/tests/unit/c/test-string-map_multiss_resize.c index 31f6b1a..a152b03 100644 --- a/level_0/f_string/tests/unit/c/test-string-map_multiss_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-map_multiss_resize.c @@ -13,7 +13,7 @@ void test__f_string_map_multiss_resize__works(void **state) { { const f_status_t status = f_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_adjust.c b/level_0/f_string/tests/unit/c/test-string-maps_adjust.c index 700a7e3..4ed7edd 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_adjust.c @@ -13,7 +13,7 @@ void test__f_string_maps_adjust__works(void **state) { { const f_status_t status = f_string_maps_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_append.c b/level_0/f_string/tests/unit/c/test-string-maps_append.c index 913f77e..4a867ea 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_append.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_append.c @@ -16,13 +16,13 @@ void test__f_string_maps_append__works(void **state) { { f_status_t status = f_string_dynamic_append(test_name, &source.name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.name.string, test_name.string); assert_int_equal(source.name.used, test_name.used); status = f_string_dynamic_append(test_value, &source.value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.value.string, test_value.string); assert_int_equal(source.value.used, test_value.used); } @@ -30,7 +30,7 @@ void test__f_string_maps_append__works(void **state) { { const f_status_t status = f_string_maps_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].name.used, source.name.used); assert_int_equal(destination.array[0].value.used, source.value.used); diff --git a/level_0/f_string/tests/unit/c/test-string-maps_append_all.c b/level_0/f_string/tests/unit/c/test-string-maps_append_all.c index 3194cac..8b8fce5 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_append_all.c @@ -17,20 +17,20 @@ void test__f_string_maps_append_all__works(void **state) { { f_status_t status = f_string_maps_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_name, &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_name.string); assert_int_equal(source.array[source.used].name.used, test_name.used); status = f_string_dynamic_append(test_value, &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].value.string, test_value.string); assert_int_equal(source.array[source.used].value.used, test_value.used); } // for @@ -39,7 +39,7 @@ void test__f_string_maps_append_all__works(void **state) { { const f_status_t status = f_string_maps_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -78,7 +78,7 @@ void test__f_string_maps_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_maps_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-maps_decimate_by.c index ee9cd18..fcb4d47 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_maps_decimate_by__works(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_maps_decimate_by__works(void **state) { { const f_status_t status = f_string_maps_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-maps_decrease_by.c index cd6f88e..ab81270 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_maps_decrease_by__works(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_maps_decrease_by__works(void **state) { { const f_status_t status = f_string_maps_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_increase.c b/level_0/f_string/tests/unit/c/test-string-maps_increase.c index fa1e369..46bed9f 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_increase.c @@ -13,7 +13,7 @@ void test__f_string_maps_increase__works(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_maps_increase__works(void **state) { const f_status_t status = f_string_maps_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_maps_increase__returns_data_not(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_increase_by.c b/level_0/f_string/tests/unit/c/test-string-maps_increase_by.c index 0d0cd23..f7d860a 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_maps_increase_by__works(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_maps_increase_by__works(void **state) { const f_status_t status = f_string_maps_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-maps_resize.c b/level_0/f_string/tests/unit/c/test-string-maps_resize.c index 38f41e7..c6550b3 100644 --- a/level_0/f_string/tests/unit/c/test-string-maps_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-maps_resize.c @@ -13,7 +13,7 @@ void test__f_string_maps_resize__works(void **state) { { const f_status_t status = f_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_adjust.c b/level_0/f_string/tests/unit/c/test-string-mapss_adjust.c index 5bf50cb..6fdbbb1 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_adjust.c @@ -13,7 +13,7 @@ void test__f_string_mapss_adjust__works(void **state) { { const f_status_t status = f_string_mapss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_append.c b/level_0/f_string/tests/unit/c/test-string-mapss_append.c index 853312c..381700d 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_append.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_append.c @@ -24,20 +24,20 @@ void test__f_string_mapss_append__works(void **state) { { f_status_t status = f_string_maps_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_string_dynamic_append(test_names[source.used], &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_names[source.used].string); assert_int_equal(source.array[source.used].name.used, test_names[source.used].used); status = f_string_dynamic_append(test_values[source.used], &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].value.string, test_values[source.used].string); assert_int_equal(source.array[source.used].value.used, test_values[source.used].used); } // for @@ -46,7 +46,7 @@ void test__f_string_mapss_append__works(void **state) { { const f_status_t status = f_string_mapss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -87,7 +87,7 @@ void test__f_string_mapss_append__returns_data_not(void **state) { { const f_status_t status = f_string_maps_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_append_all.c b/level_0/f_string/tests/unit/c/test-string-mapss_append_all.c index 74a1f1c..369732a 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_append_all.c @@ -25,7 +25,7 @@ void test__f_string_mapss_append_all__works(void **state) { { f_status_t status = f_string_mapss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -35,7 +35,7 @@ void test__f_string_mapss_append_all__works(void **state) { status = f_string_maps_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -43,13 +43,13 @@ void test__f_string_mapss_append_all__works(void **state) { status = f_string_dynamic_append(test_names[i], &source.array[source.used].array[i].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].array[i].name.string, test_names[i].string); assert_int_equal(source.array[source.used].array[i].name.used, test_names[i].used); status = f_string_dynamic_append(test_values[i], &source.array[source.used].array[i].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].array[i].value.string, test_values[i].string); assert_int_equal(source.array[source.used].array[i].value.used, test_values[i].used); } // for @@ -61,7 +61,7 @@ void test__f_string_mapss_append_all__works(void **state) { { const f_status_t status = f_string_mapss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -112,7 +112,7 @@ void test__f_string_mapss_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_mapss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-mapss_decimate_by.c index 7058683..281d947 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_mapss_decimate_by__works(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_mapss_decimate_by__works(void **state) { { const f_status_t status = f_string_mapss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-mapss_decrease_by.c index 1af9f57..b7c3961 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_mapss_decrease_by__works(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_mapss_decrease_by__works(void **state) { { const f_status_t status = f_string_mapss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_increase.c b/level_0/f_string/tests/unit/c/test-string-mapss_increase.c index 60cfccc..a5bb79e 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_increase.c @@ -13,7 +13,7 @@ void test__f_string_mapss_increase__works(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_mapss_increase__works(void **state) { const f_status_t status = f_string_mapss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_mapss_increase__returns_data_not(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_increase_by.c b/level_0/f_string/tests/unit/c/test-string-mapss_increase_by.c index b208f85..99b63f0 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_mapss_increase_by__works(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_mapss_increase_by__works(void **state) { const f_status_t status = f_string_mapss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-mapss_resize.c b/level_0/f_string/tests/unit/c/test-string-mapss_resize.c index bf99ffe..38e9093 100644 --- a/level_0/f_string/tests/unit/c/test-string-mapss_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-mapss_resize.c @@ -13,7 +13,7 @@ void test__f_string_mapss_resize__works(void **state) { { const f_status_t status = f_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-mash.c b/level_0/f_string/tests/unit/c/test-string-mash.c index 63c4343..6300ec5 100644 --- a/level_0/f_string/tests/unit/c/test-string-mash.c +++ b/level_0/f_string/tests/unit/c/test-string-mash.c @@ -15,7 +15,7 @@ void test__f_string_mash__works(void **state) { { const f_status_t status = f_string_mash(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -26,7 +26,7 @@ void test__f_string_mash__works(void **state) { { const f_status_t status = f_string_mash(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-mash_nulless.c b/level_0/f_string/tests/unit/c/test-string-mash_nulless.c index e8cb54a..7673a3d 100644 --- a/level_0/f_string/tests/unit/c/test-string-mash_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-mash_nulless.c @@ -16,7 +16,7 @@ void test__f_string_mash_nulless__works(void **state) { { const f_status_t status = f_string_mash_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -26,7 +26,7 @@ void test__f_string_mash_nulless__works(void **state) { { const f_status_t status = f_string_mash_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-mish.c b/level_0/f_string/tests/unit/c/test-string-mish.c index e436e0d..f57f580 100644 --- a/level_0/f_string/tests/unit/c/test-string-mish.c +++ b/level_0/f_string/tests/unit/c/test-string-mish.c @@ -15,7 +15,7 @@ void test__f_string_mish__works(void **state) { { const f_status_t status = f_string_mish(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -26,7 +26,7 @@ void test__f_string_mish__works(void **state) { { const f_status_t status = f_string_mish(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-mish_nulless.c b/level_0/f_string/tests/unit/c/test-string-mish_nulless.c index c2ff921..98d421d 100644 --- a/level_0/f_string/tests/unit/c/test-string-mish_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-mish_nulless.c @@ -16,7 +16,7 @@ void test__f_string_mish_nulless__works(void **state) { { const f_status_t status = f_string_mish_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); assert_string_equal(destination.string, expected1.string); @@ -26,7 +26,7 @@ void test__f_string_mish_nulless__works(void **state) { { const f_status_t status = f_string_mish_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); assert_string_equal(destination.string, expected2.string); diff --git a/level_0/f_string/tests/unit/c/test-string-prepend.c b/level_0/f_string/tests/unit/c/test-string-prepend.c index ac9dedc..7542ff4 100644 --- a/level_0/f_string/tests/unit/c/test-string-prepend.c +++ b/level_0/f_string/tests/unit/c/test-string-prepend.c @@ -13,7 +13,7 @@ void test__f_string_prepend__works(void **state) { { const f_status_t status = f_string_prepend(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-prepend_assure.c b/level_0/f_string/tests/unit/c/test-string-prepend_assure.c index 0990ccc..3909399 100644 --- a/level_0/f_string/tests/unit/c/test-string-prepend_assure.c +++ b/level_0/f_string/tests/unit/c/test-string-prepend_assure.c @@ -13,7 +13,7 @@ void test__f_string_prepend_assure__works(void **state) { { const f_status_t status = f_string_prepend_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); @@ -24,7 +24,7 @@ void test__f_string_prepend_assure__works(void **state) { { const f_status_t status = f_string_prepend_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_string_equal(destination.string, source.string); diff --git a/level_0/f_string/tests/unit/c/test-string-prepend_assure_nulless.c b/level_0/f_string/tests/unit/c/test-string-prepend_assure_nulless.c index a3747ff..aac9376 100644 --- a/level_0/f_string/tests/unit/c/test-string-prepend_assure_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-prepend_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_string_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_string_prepend_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); @@ -24,7 +24,7 @@ void test__f_string_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_string_prepend_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-prepend_nulless.c b/level_0/f_string/tests/unit/c/test-string-prepend_nulless.c index d6f86a6..64b337c 100644 --- a/level_0/f_string/tests/unit/c/test-string-prepend_nulless.c +++ b/level_0/f_string/tests/unit/c/test-string-prepend_nulless.c @@ -14,7 +14,7 @@ void test__f_string_prepend_nulless__works(void **state) { { const f_status_t status = f_string_prepend_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); assert_string_equal(destination.string, expected.string); diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_adjust.c b/level_0/f_string/tests/unit/c/test-string-quantitys_adjust.c index cb9562f..2cc7f11 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_adjust.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_adjust__works(void **state) { { const f_status_t status = f_string_quantitys_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_append.c b/level_0/f_string/tests/unit/c/test-string-quantitys_append.c index 1ac4052..181186d 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_append.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_append.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_append__works(void **state) { { const f_status_t status = f_string_quantitys_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].start, source.start); assert_int_equal(destination.array[0].total, source.total); diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_append_all.c b/level_0/f_string/tests/unit/c/test-string-quantitys_append_all.c index ef784b1..c21fd48 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_append_all.c @@ -20,7 +20,7 @@ void test__f_string_quantitys_append_all__works(void **state) { { const f_status_t status = f_string_quantitys_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -43,7 +43,7 @@ void test__f_string_quantitys_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-quantitys_decimate_by.c index f83ab49..cb45b3d 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_decimate_by__works(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_quantitys_decimate_by__works(void **state) { { const f_status_t status = f_string_quantitys_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-quantitys_decrease_by.c index fe517a0..765e7d8 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_decrease_by__works(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_quantitys_decrease_by__works(void **state) { { const f_status_t status = f_string_quantitys_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_increase.c b/level_0/f_string/tests/unit/c/test-string-quantitys_increase.c index c319869..1add3fa 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_increase.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_increase__works(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_quantitys_increase__works(void **state) { const f_status_t status = f_string_quantitys_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_quantitys_increase__returns_data_not(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_increase_by.c b/level_0/f_string/tests/unit/c/test-string-quantitys_increase_by.c index 6e77fc4..8fa0546 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_increase_by__works(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_quantitys_increase_by__works(void **state) { const f_status_t status = f_string_quantitys_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantitys_resize.c b/level_0/f_string/tests/unit/c/test-string-quantitys_resize.c index 76bd355..67e4ebd 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantitys_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-quantitys_resize.c @@ -13,7 +13,7 @@ void test__f_string_quantitys_resize__works(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_adjust.c b/level_0/f_string/tests/unit/c/test-string-quantityss_adjust.c index cbaa424..9b4c8b7 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_adjust.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_adjust__works(void **state) { { const f_status_t status = f_string_quantityss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_append.c b/level_0/f_string/tests/unit/c/test-string-quantityss_append.c index 5176f98..04f5016 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_append.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_append.c @@ -20,7 +20,7 @@ void test__f_string_quantityss_append__works(void **state) { { const f_status_t status = f_string_quantityss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_sources); for (f_number_unsigned_t i = 0; i < length_sources; ++i) { @@ -43,7 +43,7 @@ void test__f_string_quantityss_append__returns_data_not(void **state) { { const f_status_t status = f_string_quantitys_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_append_all.c b/level_0/f_string/tests/unit/c/test-string-quantityss_append_all.c index 79df178..8321f0c 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_append_all.c @@ -31,7 +31,7 @@ void test__f_string_quantityss_append_all__works(void **state) { { const f_status_t status = f_string_quantityss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) { @@ -60,7 +60,7 @@ void test__f_string_quantityss_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-quantityss_decimate_by.c index cf1d197..c6c8b1d 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_decimate_by__works(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_quantityss_decimate_by__works(void **state) { { const f_status_t status = f_string_quantityss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-quantityss_decrease_by.c index 99e87b6..b042e13 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_decrease_by__works(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_quantityss_decrease_by__works(void **state) { { const f_status_t status = f_string_quantityss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_increase.c b/level_0/f_string/tests/unit/c/test-string-quantityss_increase.c index bf108ad..5cd7902 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_increase.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_increase__works(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_quantityss_increase__works(void **state) { const f_status_t status = f_string_quantityss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_quantityss_increase__returns_data_not(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_increase_by.c b/level_0/f_string/tests/unit/c/test-string-quantityss_increase_by.c index 7ef6cfc..66c04d0 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_increase_by__works(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_quantityss_increase_by__works(void **state) { const f_status_t status = f_string_quantityss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-quantityss_resize.c b/level_0/f_string/tests/unit/c/test-string-quantityss_resize.c index e4cb92a..f170ef0 100644 --- a/level_0/f_string/tests/unit/c/test-string-quantityss_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-quantityss_resize.c @@ -13,7 +13,7 @@ void test__f_string_quantityss_resize__works(void **state) { { const f_status_t status = f_string_quantityss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_adjust.c b/level_0/f_string/tests/unit/c/test-string-ranges_adjust.c index 3c8b05d..cdfba97 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_adjust.c @@ -13,7 +13,7 @@ void test__f_string_ranges_adjust__works(void **state) { { const f_status_t status = f_string_ranges_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_append.c b/level_0/f_string/tests/unit/c/test-string-ranges_append.c index 53b2558..f619a07 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_append.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_append.c @@ -13,7 +13,7 @@ void test__f_string_ranges_append__works(void **state) { { const f_status_t status = f_string_ranges_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].start, source.start); assert_int_equal(destination.array[0].stop, source.stop); diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_append_all.c b/level_0/f_string/tests/unit/c/test-string-ranges_append_all.c index ff68b82..386b6a5 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_append_all.c @@ -20,7 +20,7 @@ void test__f_string_ranges_append_all__works(void **state) { { const f_status_t status = f_string_ranges_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -43,7 +43,7 @@ void test__f_string_ranges_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_ranges_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-ranges_decimate_by.c index 624857b..3bce006 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_ranges_decimate_by__works(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_ranges_decimate_by__works(void **state) { { const f_status_t status = f_string_ranges_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-ranges_decrease_by.c index 7ff01c5..387d3b1 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_ranges_decrease_by__works(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_ranges_decrease_by__works(void **state) { { const f_status_t status = f_string_ranges_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_increase.c b/level_0/f_string/tests/unit/c/test-string-ranges_increase.c index 220e7c7..c25e332 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_increase.c @@ -13,7 +13,7 @@ void test__f_string_ranges_increase__works(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_ranges_increase__works(void **state) { const f_status_t status = f_string_ranges_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_ranges_increase__returns_data_not(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_increase_by.c b/level_0/f_string/tests/unit/c/test-string-ranges_increase_by.c index 4034fcb..af1b0ec 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_ranges_increase_by__works(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_ranges_increase_by__works(void **state) { const f_status_t status = f_string_ranges_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-ranges_resize.c b/level_0/f_string/tests/unit/c/test-string-ranges_resize.c index 1bc2660..9870b8b 100644 --- a/level_0/f_string/tests/unit/c/test-string-ranges_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-ranges_resize.c @@ -13,7 +13,7 @@ void test__f_string_ranges_resize__works(void **state) { { const f_status_t status = f_string_ranges_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_adjust.c b/level_0/f_string/tests/unit/c/test-string-rangess_adjust.c index e1bd333..cabfb46 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_adjust.c @@ -13,7 +13,7 @@ void test__f_string_rangess_adjust__works(void **state) { { const f_status_t status = f_string_rangess_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_append.c b/level_0/f_string/tests/unit/c/test-string-rangess_append.c index 549cca1..dab482d 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_append.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_append.c @@ -20,7 +20,7 @@ void test__f_string_rangess_append__works(void **state) { { const f_status_t status = f_string_rangess_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_sources); for (f_number_unsigned_t i = 0; i < length_sources; ++i) { @@ -43,7 +43,7 @@ void test__f_string_rangess_append__returns_data_not(void **state) { { const f_status_t status = f_string_ranges_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_append_all.c b/level_0/f_string/tests/unit/c/test-string-rangess_append_all.c index 216b28e..15f73b3 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_append_all.c @@ -31,7 +31,7 @@ void test__f_string_rangess_append_all__works(void **state) { { const f_status_t status = f_string_rangess_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) { @@ -60,7 +60,7 @@ void test__f_string_rangess_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_rangess_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-rangess_decimate_by.c index 5b5fd75..055e2c8 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_rangess_decimate_by__works(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_rangess_decimate_by__works(void **state) { { const f_status_t status = f_string_rangess_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-rangess_decrease_by.c index 1562f87..47eb21a 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_rangess_decrease_by__works(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_rangess_decrease_by__works(void **state) { { const f_status_t status = f_string_rangess_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_increase.c b/level_0/f_string/tests/unit/c/test-string-rangess_increase.c index 5b7c054..24caa5a 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_increase.c @@ -13,7 +13,7 @@ void test__f_string_rangess_increase__works(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_rangess_increase__works(void **state) { const f_status_t status = f_string_rangess_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_rangess_increase__returns_data_not(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_increase_by.c b/level_0/f_string/tests/unit/c/test-string-rangess_increase_by.c index 4ca9b58..8df2167 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_rangess_increase_by__works(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_rangess_increase_by__works(void **state) { const f_status_t status = f_string_rangess_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-rangess_resize.c b/level_0/f_string/tests/unit/c/test-string-rangess_resize.c index a199759..cc8a2c1 100644 --- a/level_0/f_string/tests/unit/c/test-string-rangess_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-rangess_resize.c @@ -13,7 +13,7 @@ void test__f_string_rangess_resize__works(void **state) { { const f_status_t status = f_string_rangess_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-seek_line.c b/level_0/f_string/tests/unit/c/test-string-seek_line.c index afe2c90..0679723 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_line.c +++ b/level_0/f_string/tests/unit/c/test-string-seek_line.c @@ -27,7 +27,7 @@ void test__f_string_seek_line__returns_none_stop(void **state) { const f_status_t status = f_string_seek_line(source.string, &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -43,7 +43,7 @@ void test__f_string_seek_line__works(void **state) { const f_status_t status = f_string_seek_line(source.string, &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 4); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-seek_line.h b/level_0/f_string/tests/unit/c/test-string-seek_line.h index 3d647c2..5819d71 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_line.h +++ b/level_0/f_string/tests/unit/c/test-string-seek_line.h @@ -18,7 +18,7 @@ extern void test__f_string_seek_line__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_seek_line() */ diff --git a/level_0/f_string/tests/unit/c/test-string-seek_line_to.c b/level_0/f_string/tests/unit/c/test-string-seek_line_to.c index 61158ec..fae1a03 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_line_to.c +++ b/level_0/f_string/tests/unit/c/test-string-seek_line_to.c @@ -15,7 +15,7 @@ void test__f_string_seek_line_to__at_newline(void **state) { const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_eol); + assert_int_equal(status, F_okay_eol); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -46,7 +46,7 @@ void test__f_string_seek_line_to__returns_none_stop(void **state) { const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_string_seek_line_to__works(void **state) { const f_status_t status = f_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-seek_line_to.h b/level_0/f_string/tests/unit/c/test-string-seek_line_to.h index d988d6c..94a7854 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_line_to.h +++ b/level_0/f_string/tests/unit/c/test-string-seek_line_to.h @@ -25,7 +25,7 @@ extern void test__f_string_seek_line_to__at_newline(void **state); extern void test__f_string_seek_line_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_seek_line_to() */ diff --git a/level_0/f_string/tests/unit/c/test-string-seek_to.c b/level_0/f_string/tests/unit/c/test-string-seek_to.c index 8bc2a9e..8607afe 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_to.c +++ b/level_0/f_string/tests/unit/c/test-string-seek_to.c @@ -29,7 +29,7 @@ void test__f_string_seek_to__returns_none_stop(void **state) { const f_status_t status = f_string_seek_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -46,7 +46,7 @@ void test__f_string_seek_to__works(void **state) { const f_status_t status = f_string_seek_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 3); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_string/tests/unit/c/test-string-seek_to.h b/level_0/f_string/tests/unit/c/test-string-seek_to.h index 7b4fb54..fd1b6ac 100644 --- a/level_0/f_string/tests/unit/c/test-string-seek_to.h +++ b/level_0/f_string/tests/unit/c/test-string-seek_to.h @@ -18,7 +18,7 @@ extern void test__f_string_seek_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_string_seek_to() */ diff --git a/level_0/f_string/tests/unit/c/test-string-triples_adjust.c b/level_0/f_string/tests/unit/c/test-string-triples_adjust.c index dc0a159..3035920 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_adjust.c @@ -13,7 +13,7 @@ void test__f_string_triples_adjust__works(void **state) { { const f_status_t status = f_string_triples_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_append.c b/level_0/f_string/tests/unit/c/test-string-triples_append.c index a23e134..c0afa2c 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_append.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_append.c @@ -17,7 +17,7 @@ void test__f_string_triples_append__works(void **state) { { const f_status_t status = f_string_triples_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].a.used, source.a.used); assert_int_equal(destination.array[0].b.used, source.b.used); diff --git a/level_0/f_string/tests/unit/c/test-string-triples_append_all.c b/level_0/f_string/tests/unit/c/test-string-triples_append_all.c index c525489..c03ccb4 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_append_all.c @@ -28,7 +28,7 @@ void test__f_string_triples_append_all__works(void **state) { { const f_status_t status = f_string_triples_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -63,7 +63,7 @@ void test__f_string_triples_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_triples_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-triples_decimate_by.c index 252970f..92b2a22 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_triples_decimate_by__works(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_triples_decimate_by__works(void **state) { { const f_status_t status = f_string_triples_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-triples_decrease_by.c index a40a6fd..22d61db 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_triples_decrease_by__works(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_triples_decrease_by__works(void **state) { { const f_status_t status = f_string_triples_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_increase.c b/level_0/f_string/tests/unit/c/test-string-triples_increase.c index 850ef10..5249d73 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_increase.c @@ -13,7 +13,7 @@ void test__f_string_triples_increase__works(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_triples_increase__works(void **state) { const f_status_t status = f_string_triples_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_triples_increase__returns_data_not(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_increase_by.c b/level_0/f_string/tests/unit/c/test-string-triples_increase_by.c index ba44462..8785980 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_triples_increase_by__works(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_triples_increase_by__works(void **state) { const f_status_t status = f_string_triples_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-triples_resize.c b/level_0/f_string/tests/unit/c/test-string-triples_resize.c index b249fe1..422808a 100644 --- a/level_0/f_string/tests/unit/c/test-string-triples_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-triples_resize.c @@ -13,7 +13,7 @@ void test__f_string_triples_resize__works(void **state) { { const f_status_t status = f_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_adjust.c b/level_0/f_string/tests/unit/c/test-string-tripless_adjust.c index ed99162..9c3024e 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_adjust.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_adjust.c @@ -13,7 +13,7 @@ void test__f_string_tripless_adjust__works(void **state) { { const f_status_t status = f_string_tripless_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_append.c b/level_0/f_string/tests/unit/c/test-string-tripless_append.c index a25386e..b1f294d 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_append.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_append.c @@ -28,7 +28,7 @@ void test__f_string_tripless_append__works(void **state) { { const f_status_t status = f_string_tripless_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_sources); for (f_number_unsigned_t i = 0; i < length_sources; ++i) { @@ -63,7 +63,7 @@ void test__f_string_tripless_append__returns_data_not(void **state) { { const f_status_t status = f_string_triples_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_append_all.c b/level_0/f_string/tests/unit/c/test-string-tripless_append_all.c index c024ddf..d6e9cc9 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_append_all.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_append_all.c @@ -47,7 +47,7 @@ void test__f_string_tripless_append_all__works(void **state) { { const f_status_t status = f_string_tripless_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) { @@ -89,7 +89,7 @@ void test__f_string_tripless_append_all__returns_data_not(void **state) { { const f_status_t status = f_string_tripless_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_decimate_by.c b/level_0/f_string/tests/unit/c/test-string-tripless_decimate_by.c index cb7fe80..10a407a 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_decimate_by.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_decimate_by.c @@ -13,7 +13,7 @@ void test__f_string_tripless_decimate_by__works(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_tripless_decimate_by__works(void **state) { { const f_status_t status = f_string_tripless_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_decrease_by.c b/level_0/f_string/tests/unit/c/test-string-tripless_decrease_by.c index 0e47248..f4d78d9 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_decrease_by.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_decrease_by.c @@ -13,7 +13,7 @@ void test__f_string_tripless_decrease_by__works(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_string_tripless_decrease_by__works(void **state) { { const f_status_t status = f_string_tripless_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_increase.c b/level_0/f_string/tests/unit/c/test-string-tripless_increase.c index 9d65e02..ea5b57e 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_increase.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_increase.c @@ -13,7 +13,7 @@ void test__f_string_tripless_increase__works(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_tripless_increase__works(void **state) { const f_status_t status = f_string_tripless_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_string_tripless_increase__returns_data_not(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_increase_by.c b/level_0/f_string/tests/unit/c/test-string-tripless_increase_by.c index fc8d3e6..213be1e 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_increase_by.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_increase_by.c @@ -13,7 +13,7 @@ void test__f_string_tripless_increase_by__works(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_string_tripless_increase_by__works(void **state) { const f_status_t status = f_string_tripless_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_string/tests/unit/c/test-string-tripless_resize.c b/level_0/f_string/tests/unit/c/test-string-tripless_resize.c index 142d886..8da8956 100644 --- a/level_0/f_string/tests/unit/c/test-string-tripless_resize.c +++ b/level_0/f_string/tests/unit/c/test-string-tripless_resize.c @@ -13,7 +13,7 @@ void test__f_string_tripless_resize__works(void **state) { { const f_status_t status = f_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_thread/c/thread.c b/level_0/f_thread/c/thread.c index 765734e..2369046 100644 --- a/level_0/f_thread/c/thread.c +++ b/level_0/f_thread/c/thread.c @@ -20,7 +20,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_key_create_ @@ -46,7 +46,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_get_) @@ -73,7 +73,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_set_) @@ -85,7 +85,7 @@ extern "C" { *level = pthread_getconcurrency(); - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_concurrency_get_ @@ -101,7 +101,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_concurrency_set_ @@ -119,7 +119,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_create_ @@ -137,7 +137,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_default_get_ @@ -156,7 +156,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_default_set_ @@ -168,7 +168,7 @@ extern "C" { if (pthread_attr_destroy(attribute)) return F_status_set_error(F_failure); - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_delete_ @@ -186,7 +186,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_detach_get_ @@ -204,7 +204,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_detach_set_ @@ -222,7 +222,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_guard_get_ @@ -240,7 +240,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_guard_set_ @@ -258,7 +258,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_inherit_get_ @@ -276,7 +276,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_inherit_set_ @@ -294,7 +294,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_parameter_get_ @@ -312,7 +312,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_parameter_set_ @@ -330,7 +330,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_policy_get_ @@ -348,7 +348,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scheduler_policy_set_ @@ -366,7 +366,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scope_get_ @@ -385,7 +385,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_scope_set_ @@ -405,7 +405,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_stack_get_ @@ -425,7 +425,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_stack_set_ @@ -443,7 +443,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_stack_size_get_ @@ -461,7 +461,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_attribute_stack_size_set_ @@ -479,7 +479,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attribute_create_ @@ -489,7 +489,7 @@ extern "C" { if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - return pthread_barrierattr_destroy(attribute) ? F_status_set_error(F_failure) : F_none; + return pthread_barrierattr_destroy(attribute) ? F_status_set_error(F_failure) : F_okay; } #endif // _di_f_thread_barrier_attribute_delete_ @@ -508,7 +508,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attribute_shared_get_ @@ -526,7 +526,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attribute_shared_set_ @@ -547,7 +547,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_create_ @@ -566,7 +566,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_delete_ @@ -583,7 +583,7 @@ extern "C" { pthread_barrier_wait(barrier); } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_wait_ @@ -605,7 +605,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_cancel_ @@ -630,7 +630,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_cancel_state_set_ @@ -639,7 +639,7 @@ extern "C" { pthread_testcancel(); - return F_none; + return F_okay; } #endif // _di_f_thread_cancel_test_ @@ -654,7 +654,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_cancel_type_set_ @@ -673,7 +673,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_clock_get_id_ @@ -703,7 +703,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_clock_get_ @@ -721,7 +721,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_clock_set_ @@ -740,7 +740,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_create_ @@ -761,7 +761,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_delete_ @@ -780,7 +780,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_shared_get_ @@ -798,7 +798,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attribute_shared_set_ @@ -819,7 +819,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_create_ @@ -838,7 +838,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_delete_ @@ -856,7 +856,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_signal_ @@ -874,7 +874,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_signal_all_ @@ -896,7 +896,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_wait_ @@ -919,7 +919,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_wait_timed_ @@ -940,7 +940,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_create_ @@ -956,7 +956,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_detach_ @@ -968,7 +968,7 @@ extern "C" { pthread_exit(result); - return F_none; + return F_okay; } #endif // _di_f_thread_exit_ @@ -986,7 +986,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_join_ @@ -1005,7 +1005,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_join_try_ @@ -1025,7 +1025,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_join_timed_ @@ -1045,7 +1045,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_key_create_ @@ -1059,7 +1059,7 @@ extern "C" { *key = 0; - return F_none; + return F_okay; } #endif // _di_f_thread_key_delete_ @@ -1071,7 +1071,7 @@ extern "C" { *value = pthread_getspecific(key); - return F_none; + return F_okay; } #endif // _di_f_thread_key_get_ @@ -1089,7 +1089,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_key_set_ @@ -1111,7 +1111,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attribute_create_ @@ -1130,7 +1130,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attribute_delete_ @@ -1145,7 +1145,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attribute_shared_get_ @@ -1163,7 +1163,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attribute_shared_set_ @@ -1182,7 +1182,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_create_ @@ -1203,7 +1203,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_delete_ @@ -1223,7 +1223,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_read_ @@ -1245,7 +1245,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_read_timed_ @@ -1265,7 +1265,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_read_try_ @@ -1285,7 +1285,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_write_ @@ -1306,7 +1306,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_write_timed_ @@ -1326,7 +1326,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_write_try_ @@ -1348,7 +1348,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_create_ @@ -1369,7 +1369,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_delete_ @@ -1389,7 +1389,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_priority_ceiling_get_ @@ -1408,7 +1408,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_priority_ceiling_set_ @@ -1428,7 +1428,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_protocol_get_ @@ -1448,7 +1448,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_protocol_set_ @@ -1463,7 +1463,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_shared_get_ @@ -1481,7 +1481,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_shared_set_ @@ -1496,7 +1496,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_type_get_ @@ -1514,7 +1514,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attribute_type_set_ @@ -1536,7 +1536,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_create_ @@ -1557,7 +1557,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_delete_ @@ -1577,7 +1577,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_lock_ @@ -1601,7 +1601,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_lock_timed_ @@ -1621,7 +1621,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_lock_try_ @@ -1641,7 +1641,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_priority_ceiling_get_ @@ -1664,7 +1664,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_priority_ceiling_set_ @@ -1685,7 +1685,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_unlock_ @@ -1704,7 +1704,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_once_ @@ -1723,7 +1723,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_scheduler_parameter_get_ @@ -1742,7 +1742,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_scheduler_parameter_set_ @@ -1759,7 +1759,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_scheduler_priority_set_ @@ -1776,7 +1776,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_create_ @@ -1788,7 +1788,7 @@ extern "C" { if (sem_destroy(semaphore) == -1) return (errno == EINVAL) ? F_status_set_error(F_parameter) : F_status_set_error(F_failure); - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_delete_ @@ -1804,7 +1804,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_file_close_ @@ -1820,7 +1820,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_file_delete_ @@ -1851,7 +1851,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_file_open_ @@ -1868,7 +1868,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_lock_ @@ -1887,7 +1887,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_lock_timed_ @@ -1905,7 +1905,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_lock_try_ @@ -1922,7 +1922,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_unlock_ @@ -1939,7 +1939,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphore_value_get_ @@ -1958,7 +1958,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_signal_mask_ @@ -1981,7 +1981,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // defined(_pthread_sigqueue_unsupported_) && !defined(_di_f_thread_signal_queue_) @@ -2003,7 +2003,7 @@ extern "C" { } if (signal) { - return F_none; + return F_okay; } return F_found; @@ -2025,7 +2025,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_spin_create_ @@ -2044,7 +2044,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_spin_delete_ @@ -2064,7 +2064,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_spin_lock_ @@ -2084,7 +2084,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_spin_lock_try_ @@ -2105,7 +2105,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_spin_unlock_ @@ -2126,7 +2126,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_f_thread_unlock_ diff --git a/level_0/f_thread/c/thread.h b/level_0/f_thread/c/thread.h index b9d0f99..64f4f76 100644 --- a/level_0/f_thread/c/thread.h +++ b/level_0/f_thread/c/thread.h @@ -62,7 +62,7 @@ extern "C" { * The function called after forking, for the child process. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_memory_not (with error bit) if out of memory. @@ -86,7 +86,7 @@ extern "C" { * The assigned affinity information. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -109,7 +109,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -132,7 +132,7 @@ extern "C" { * The concurrency level. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_resource_not (with error bit) if the new level would cause the system to exceed available resources. @@ -155,7 +155,7 @@ extern "C" { * The concurrency level. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -175,7 +175,7 @@ extern "C" { * Set to NULL to not use (in which case the default attribute is used). * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_memory_not (with error bit) if out of memory. @@ -195,7 +195,7 @@ extern "C" { * The thread attributes to process. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -214,7 +214,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -239,7 +239,7 @@ extern "C" { * The thread attributes to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -260,7 +260,7 @@ extern "C" { * The currently assigned state. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -281,7 +281,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -302,7 +302,7 @@ extern "C" { * The currently assigned guard size. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -323,7 +323,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -344,7 +344,7 @@ extern "C" { * The currently assigned scheduler inherit state. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -365,7 +365,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -386,7 +386,7 @@ extern "C" { * The currently assigned scheduler parameters. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -407,7 +407,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -428,7 +428,7 @@ extern "C" { * The currently assigned scheduler policy state. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -449,7 +449,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -470,7 +470,7 @@ extern "C" { * The currently assigned scheduler scope state. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -491,7 +491,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_support_not (with error bit) if the scope is not supported by the current OS (such as Linux not supporting PTHREAD_SCOPE_PROCESS). @@ -515,7 +515,7 @@ extern "C" { * The assigned stack. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if the caller cannot both read and write to the stack address. * F_parameter (with error bit) if a parameter is invalid. @@ -539,7 +539,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) if the caller cannot both read and write to the stack address. * F_parameter (with error bit) if a parameter is invalid. @@ -561,7 +561,7 @@ extern "C" { * The assigned size of the stack. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -582,7 +582,7 @@ extern "C" { * The thread attributes to update. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -602,7 +602,7 @@ extern "C" { * Set to NULL to not use (in which case the default attribute is used). * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_memory_not (with error bit) if out of memory. @@ -627,7 +627,7 @@ extern "C" { * The thread barrier_attributes to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -648,7 +648,7 @@ extern "C" { * The process shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -669,7 +669,7 @@ extern "C" { * The barrier thread attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -693,7 +693,7 @@ extern "C" { * The barrier to set. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if barrier is already in use (a re-initialization attempt). * F_memory_not (with error bit) if out of memory. @@ -720,7 +720,7 @@ extern "C" { * The thread barriers to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -742,7 +742,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -771,7 +771,7 @@ extern "C" { * The thread to cancel. * * @return - * F_none on success. + * F_okay on success. * * F_found_not (with error bit) if no thread by the given ID was found. * @@ -793,7 +793,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -812,7 +812,7 @@ extern "C" { * If there is a pending thread cancel, the thread cancels and this function never returns. * * @return - * F_none on success. + * F_okay on success. * * @see pthread_testcancel() */ @@ -831,7 +831,7 @@ extern "C" { * (Note: Linux allows this to be optional/NULL but POSIX does not explicitly defined this and there may be portability issues.) * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -852,7 +852,7 @@ extern "C" { * The retrieved clock ID. * * @return - * F_none on success. + * F_okay on success. * * F_found_not (with error bit) if no thread by the given ID was found. * F_support_not (with error bit) if per-CPU clocks are not supported by the OS. @@ -889,7 +889,7 @@ extern "C" { * This assigns the default to the attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -910,7 +910,7 @@ extern "C" { * The clock ID. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -931,7 +931,7 @@ extern "C" { * The thread condition attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -953,7 +953,7 @@ extern "C" { * The attribute to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the attribute is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -975,7 +975,7 @@ extern "C" { * The process shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -996,7 +996,7 @@ extern "C" { * The thread condition attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1018,7 +1018,7 @@ extern "C" { * The condition to wait on. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1040,7 +1040,7 @@ extern "C" { * The condition to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the condition is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -1061,7 +1061,7 @@ extern "C" { * The condition to broadcast the unblock signal to. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1080,7 +1080,7 @@ extern "C" { * The condition to broadcast the unblock signal to. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1103,7 +1103,7 @@ extern "C" { * The mutex to use for waiting on condition. * * @return - * F_none on success. + * F_okay on success. * * F_dead (with error bit) if the owning thread terminated while holding the mutex lock (thread is dead). * F_parameter (with error bit) if a parameter is invalid. @@ -1133,7 +1133,7 @@ extern "C" { * The mutex to use for waiting on condition. * * @return - * F_none on success. + * F_okay on success. * F_time on success, and wait timeout was reached before condition was triggered. * * F_dead (with error bit) if the owning thread terminated while holding the mutex lock (thread is dead). @@ -1165,7 +1165,7 @@ extern "C" { * Set to NULL to not pass an argument. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to set the scheduling policy and parameters specified in attribute. @@ -1192,7 +1192,7 @@ extern "C" { * The ID of the thread to detach. * * @return - * F_none on success. + * F_okay on success. * * F_found_not (with error bit) if no thread by the given ID was found. * F_parameter (with error bit) if a parameter is invalid. @@ -1212,7 +1212,7 @@ extern "C" { * The code returned by the exited thread. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1235,7 +1235,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock.ead. * F_found_not (with error bit) if no thread by the given ID was found. @@ -1263,7 +1263,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but thread could not be joined because it has not yet exited. * * F_deadlock (with error bit) if operation would cause a deadlock.ead. @@ -1296,7 +1296,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but thread could not be joined because it has not yet exited. * F_time on success, but thread could not be joined because it has not yet exited and the wait timeout was reached. * @@ -1322,7 +1322,7 @@ extern "C" { * The thread key. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -1346,7 +1346,7 @@ extern "C" { * The key to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1367,7 +1367,7 @@ extern "C" { * The assigned thread key value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1386,7 +1386,7 @@ extern "C" { * The thread key value to assign. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1405,7 +1405,7 @@ extern "C" { * The lock attributes to create. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the lock is busy. * F_memory_not (with error bit) if out of memory. @@ -1431,7 +1431,7 @@ extern "C" { * The attribute to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the lock is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -1453,7 +1453,7 @@ extern "C" { * The lock shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1474,7 +1474,7 @@ extern "C" { * The lock shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1495,7 +1495,7 @@ extern "C" { * The lock to create. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -1519,7 +1519,7 @@ extern "C" { * The lock to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the lock is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -1541,7 +1541,7 @@ extern "C" { * The thread lock. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock. * F_parameter (with error bit) if a parameter is invalid. @@ -1568,7 +1568,7 @@ extern "C" { * The read/write lock. * * @return - * F_none on success. + * F_okay on success. * F_time if the timeout was reached before obtaining the lock. * * F_deadlock (with error bit) if operation would cause a deadlock. @@ -1594,7 +1594,7 @@ extern "C" { * The thread lock. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but the lock is already locked. * * F_parameter (with error bit) if a parameter is invalid. @@ -1617,7 +1617,7 @@ extern "C" { * The thread lock. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock. * F_parameter (with error bit) if a parameter is invalid. @@ -1644,7 +1644,7 @@ extern "C" { * The read/write lock. * * @return - * F_none on success. + * F_okay on success. * F_time if the timeout was reached before obtaining the lock. * * F_deadlock (with error bit) if operation would cause a deadlock. @@ -1669,7 +1669,7 @@ extern "C" { * The thread lock. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but the lock is already locked. * * F_parameter (with error bit) if a parameter is invalid. @@ -1690,7 +1690,7 @@ extern "C" { * The mutex attributes to create. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the mutex is busy. * F_memory_not (with error bit) if out of memory. @@ -1715,7 +1715,7 @@ extern "C" { * The attribute to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the mutex is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -1736,7 +1736,7 @@ extern "C" { * The priority ceiling. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation. @@ -1756,7 +1756,7 @@ extern "C" { * The thread mutex attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation. @@ -1776,7 +1776,7 @@ extern "C" { * The protocol. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation. @@ -1798,7 +1798,7 @@ extern "C" { * The thread mutex attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation. @@ -1821,7 +1821,7 @@ extern "C" { * The mutex shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1842,7 +1842,7 @@ extern "C" { * The mutex shared attribute value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1863,7 +1863,7 @@ extern "C" { * The type. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1884,7 +1884,7 @@ extern "C" { * The mutex attribute. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -1906,7 +1906,7 @@ extern "C" { * The mutex to create. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the mutex is busy. * F_memory_not (with error bit) if out of memory. @@ -1932,7 +1932,7 @@ extern "C" { * The mutex to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the mutex is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -1954,7 +1954,7 @@ extern "C" { * The priority ceiling. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation. @@ -1979,7 +1979,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock. * F_parameter (with error bit) if a parameter is invalid. @@ -2003,7 +2003,7 @@ extern "C" { * The thread mutex. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation (possibly because mutex is not owned by current thread). @@ -2026,7 +2026,7 @@ extern "C" { * The thread mutex. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock. * F_parameter (with error bit) if a parameter is invalid. @@ -2053,7 +2053,7 @@ extern "C" { * The thread mutex. * * @return - * F_none on success. + * F_okay on success. * F_time if the timeout was reached before obtaining the lock. * * F_deadlock (with error bit) if operation would cause a deadlock. @@ -2082,7 +2082,7 @@ extern "C" { * The thread mutex. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but the mutex is already locked. * * F_parameter (with error bit) if a parameter is invalid. @@ -2105,7 +2105,7 @@ extern "C" { * The once variable designating that the given routine will be called only once. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -2128,7 +2128,7 @@ extern "C" { * The scheduler parameter * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_support_not (with error bit) if the policy or scheduling parameter is invalid. @@ -2152,7 +2152,7 @@ extern "C" { * The scheduler parameter * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if insufficient privileges or scheduler (or policy) does not allow operation. @@ -2174,7 +2174,7 @@ extern "C" { * The scheduler priority. * * @return - * F_none on success. + * F_okay on success. * * F_found_not (with error bit) no thread by the given ID was found. * F_parameter (with error bit) if a parameter is invalid. @@ -2201,7 +2201,7 @@ extern "C" { * The semaphore to create. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_support_not (with error bit) if the system does not support the process shared semaphore (shared == true). @@ -2224,7 +2224,7 @@ extern "C" { * The semaphore to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the semaphore is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -2246,7 +2246,7 @@ extern "C" { * The semaphore to delete. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -2269,7 +2269,7 @@ extern "C" { * The semaphore name to delete. * * @return - * F_none on success. + * F_okay on success. * F_file_found_not the named file was not found. * * F_access_denied (with error bit) on access denied. @@ -2308,7 +2308,7 @@ extern "C" { * The thread semaphore. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_file_descriptor_max (with error bit) if max file descrriptors was reached. @@ -2339,7 +2339,7 @@ extern "C" { * The thread semaphore. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_interrupt (with error bit) if returned due to an interrupt signal. @@ -2365,7 +2365,7 @@ extern "C" { * The thread semaphore. * * @return - * F_none on success. + * F_okay on success. * F_time if the timeout was reached before obtaining the lock. * * F_parameter (with error bit) if a parameter is invalid. @@ -2390,7 +2390,7 @@ extern "C" { * The thread semaphore. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_interrupt (with error bit) if returned due to an interrupt signal. @@ -2413,7 +2413,7 @@ extern "C" { * The thread semaphore. * * @return - * F_none on success. + * F_okay on success. * * F_number_overflow (with error bit) if max semaphore value is reached. * F_parameter (with error bit) if a parameter is invalid. @@ -2435,7 +2435,7 @@ extern "C" { * The semaphore's value. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -2463,7 +2463,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_parameter (with error bit) if a parameter is invalid. * @@ -2486,7 +2486,7 @@ extern "C" { * The signal value to send. * * @return - * F_none on success but no signal found. + * F_okay on success but no signal found. * * F_found_not (with error bit) if no thread by the given ID was found. * F_parameter (with error bit) if a parameter is invalid. @@ -2511,7 +2511,7 @@ extern "C" { * If 0 is used instead of a valid signal, then instead check to see if the thread exists. * * @return - * F_none on success and signal is not 0. + * F_okay on success and signal is not 0. * F_found on success, signal is 0, and the thread by the given ID does exist. * * F_found_not on success, signal is 0, and the thread by the given ID does not exist. @@ -2533,7 +2533,7 @@ extern "C" { * The spin to create. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -2557,7 +2557,7 @@ extern "C" { * The spin to delete. * * @return - * F_none on success. + * F_okay on success. * * F_busy (with error bit) if the spin is busy. * F_parameter (with error bit) if a parameter is invalid. @@ -2579,7 +2579,7 @@ extern "C" { * The thread spin. * * @return - * F_none on success. + * F_okay on success. * * F_deadlock (with error bit) if operation would cause a deadlock. * F_parameter (with error bit) if a parameter is invalid. @@ -2604,7 +2604,7 @@ extern "C" { * The thread spin. * * @return - * F_none on success. + * F_okay on success. * F_busy on success, but the spin is already locked. * * F_parameter (with error bit) if a parameter is invalid. @@ -2625,7 +2625,7 @@ extern "C" { * The thread spin. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation (possibly because spin is not owned by current thread). @@ -2646,7 +2646,7 @@ extern "C" { * The thread lock. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if not allowed to perform the operation (possibly because lock is not owned by current thread). diff --git a/level_0/f_thread/c/thread/attribute.c b/level_0/f_thread/c/thread/attribute.c index a1d1f33..148d69b 100644 --- a/level_0/f_thread/c/thread/attribute.c +++ b/level_0/f_thread/c/thread/attribute.c @@ -16,7 +16,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_attributes_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_attributes_destroy_callback_ @@ -55,7 +55,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_attributess_delete_callback_ @@ -79,7 +79,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_attributess_destroy_callback_ diff --git a/level_0/f_thread/c/thread/attribute.h b/level_0/f_thread/c/thread/attribute.h index 28169de..f630988 100644 --- a/level_0/f_thread/c/thread/attribute.h +++ b/level_0/f_thread/c/thread/attribute.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/barrier.c b/level_0/f_thread/c/thread/barrier.c index 3e5b3fa..31e470a 100644 --- a/level_0/f_thread/c/thread/barrier.c +++ b/level_0/f_thread/c/thread/barrier.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barriers_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barriers_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrierss_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrierss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/barrier.h b/level_0/f_thread/c/thread/barrier.h index 1968f0e..6b60d4e 100644 --- a/level_0/f_thread/c/thread/barrier.h +++ b/level_0/f_thread/c/thread/barrier.h @@ -67,7 +67,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -96,7 +96,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -125,7 +125,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -154,7 +154,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/barrier_attribute.c b/level_0/f_thread/c/thread/barrier_attribute.c index 5af0bae..e9cec2f 100644 --- a/level_0/f_thread/c/thread/barrier_attribute.c +++ b/level_0/f_thread/c/thread/barrier_attribute.c @@ -16,7 +16,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attributes_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attributes_destroy_callback_ @@ -55,7 +55,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attributess_delete_callback_ @@ -79,7 +79,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_barrier_attributess_destroy_callback_ diff --git a/level_0/f_thread/c/thread/barrier_attribute.h b/level_0/f_thread/c/thread/barrier_attribute.h index c2fb6d9..8df8b40 100644 --- a/level_0/f_thread/c/thread/barrier_attribute.h +++ b/level_0/f_thread/c/thread/barrier_attribute.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/condition.c b/level_0/f_thread/c/thread/condition.c index 7292b67..01c7a41 100644 --- a/level_0/f_thread/c/thread/condition.c +++ b/level_0/f_thread/c/thread/condition.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_conditions_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_conditions_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_conditionss_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_conditionss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/condition.h b/level_0/f_thread/c/thread/condition.h index c9c5b49..f759b45 100644 --- a/level_0/f_thread/c/thread/condition.h +++ b/level_0/f_thread/c/thread/condition.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/condition_attribute.c b/level_0/f_thread/c/thread/condition_attribute.c index 991462f..af1bfd7 100644 --- a/level_0/f_thread/c/thread/condition_attribute.c +++ b/level_0/f_thread/c/thread/condition_attribute.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attributes_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attributes_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attributess_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_condition_attributess_destroy_callback_ diff --git a/level_0/f_thread/c/thread/condition_attribute.h b/level_0/f_thread/c/thread/condition_attribute.h index 8e647e6..5366caa 100644 --- a/level_0/f_thread/c/thread/condition_attribute.h +++ b/level_0/f_thread/c/thread/condition_attribute.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/key.c b/level_0/f_thread/c/thread/key.c index 4451547..23136d0 100644 --- a/level_0/f_thread/c/thread/key.c +++ b/level_0/f_thread/c/thread/key.c @@ -19,7 +19,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_keys_delete_callback_ @@ -37,7 +37,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_keys_destroy_callback_ @@ -64,7 +64,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_keyss_delete_callback_ @@ -91,7 +91,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_keyss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/key.h b/level_0/f_thread/c/thread/key.h index 6969a2e..f04fa39 100644 --- a/level_0/f_thread/c/thread/key.h +++ b/level_0/f_thread/c/thread/key.h @@ -67,7 +67,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -96,7 +96,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -125,7 +125,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -154,7 +154,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/lock.c b/level_0/f_thread/c/thread/lock.c index 2448f96..607fe4e 100644 --- a/level_0/f_thread/c/thread/lock.c +++ b/level_0/f_thread/c/thread/lock.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_locks_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_locks_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lockss_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lockss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/lock.h b/level_0/f_thread/c/thread/lock.h index 32fd47f..ca12c4c 100644 --- a/level_0/f_thread/c/thread/lock.h +++ b/level_0/f_thread/c/thread/lock.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/lock_attribute.c b/level_0/f_thread/c/thread/lock_attribute.c index 32ec455..5033f1b 100644 --- a/level_0/f_thread/c/thread/lock_attribute.c +++ b/level_0/f_thread/c/thread/lock_attribute.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attributes_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attributes_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attributess_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_lock_attributess_destroy_callback_ diff --git a/level_0/f_thread/c/thread/lock_attribute.h b/level_0/f_thread/c/thread/lock_attribute.h index 1d4ad14..ea8cabe 100644 --- a/level_0/f_thread/c/thread/lock_attribute.h +++ b/level_0/f_thread/c/thread/lock_attribute.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/mutex.c b/level_0/f_thread/c/thread/mutex.c index c8611cd..5b05e79 100644 --- a/level_0/f_thread/c/thread/mutex.c +++ b/level_0/f_thread/c/thread/mutex.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutexs_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutexs_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutexss_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutexss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/mutex.h b/level_0/f_thread/c/thread/mutex.h index a33747c..345ef33 100644 --- a/level_0/f_thread/c/thread/mutex.h +++ b/level_0/f_thread/c/thread/mutex.h @@ -70,7 +70,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -99,7 +99,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -128,7 +128,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -157,7 +157,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/mutex_attribute.c b/level_0/f_thread/c/thread/mutex_attribute.c index 4f8be39..d7e6a90 100644 --- a/level_0/f_thread/c/thread/mutex_attribute.c +++ b/level_0/f_thread/c/thread/mutex_attribute.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attributes_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attributes_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attributess_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_mutex_attributess_destroy_callback_ diff --git a/level_0/f_thread/c/thread/mutex_attribute.h b/level_0/f_thread/c/thread/mutex_attribute.h index d977396..fc3acc5 100644 --- a/level_0/f_thread/c/thread/mutex_attribute.h +++ b/level_0/f_thread/c/thread/mutex_attribute.h @@ -68,7 +68,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -97,7 +97,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -126,7 +126,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -155,7 +155,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/semaphore.c b/level_0/f_thread/c/thread/semaphore.c index 4ab2444..15ee808 100644 --- a/level_0/f_thread/c/thread/semaphore.c +++ b/level_0/f_thread/c/thread/semaphore.c @@ -16,7 +16,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphores_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphores_destroy_callback_ @@ -55,7 +55,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphoress_delete_callback_ @@ -79,7 +79,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_semaphoress_destroy_callback_ diff --git a/level_0/f_thread/c/thread/semaphore.h b/level_0/f_thread/c/thread/semaphore.h index 6887063..d69e65a 100644 --- a/level_0/f_thread/c/thread/semaphore.h +++ b/level_0/f_thread/c/thread/semaphore.h @@ -69,7 +69,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -98,7 +98,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -127,7 +127,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -156,7 +156,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/set.c b/level_0/f_thread/c/thread/set.c index 93d6389..9085f1e 100644 --- a/level_0/f_thread/c/thread/set.c +++ b/level_0/f_thread/c/thread/set.c @@ -16,7 +16,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_sets_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_sets_destroy_callback_ @@ -55,7 +55,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_setss_delete_callback_ @@ -79,7 +79,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_setss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/set.h b/level_0/f_thread/c/thread/set.h index 7397ed8..be282de 100644 --- a/level_0/f_thread/c/thread/set.h +++ b/level_0/f_thread/c/thread/set.h @@ -79,7 +79,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -108,7 +108,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -137,7 +137,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -166,7 +166,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/c/thread/spin.c b/level_0/f_thread/c/thread/spin.c index e93524b..5db5748 100644 --- a/level_0/f_thread/c/thread/spin.c +++ b/level_0/f_thread/c/thread/spin.c @@ -25,7 +25,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_spins_delete_callback_ @@ -49,7 +49,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_spins_destroy_callback_ @@ -82,7 +82,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_spinss_delete_callback_ @@ -115,7 +115,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_thread_spinss_destroy_callback_ diff --git a/level_0/f_thread/c/thread/spin.h b/level_0/f_thread/c/thread/spin.h index c3aedb9..efb852c 100644 --- a/level_0/f_thread/c/thread/spin.h +++ b/level_0/f_thread/c/thread/spin.h @@ -67,7 +67,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -96,7 +96,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -125,7 +125,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -154,7 +154,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_thread/tests/unit/c/test-thread-at_fork.c b/level_0/f_thread/tests/unit/c/test-thread-at_fork.c index 6b06723..0df4d84 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-at_fork.c +++ b/level_0/f_thread/tests/unit/c/test-thread-at_fork.c @@ -80,7 +80,7 @@ void test__f_thread_at_fork__works(void **state) { const f_status_t status = f_thread_at_fork(stub, stub, stub); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_get.c index 92bf47c..0a8ac81 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_get.c @@ -69,7 +69,7 @@ void test__f_thread_attribute_affinity_get__works(void **state) { const f_status_t status = f_thread_attribute_affinity_get(attribute, 0, &cpu_set); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } #endif // defined(_pthread_attr_unsupported_) } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_set.c index 03a84ea..8f378f5 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_affinity_set.c @@ -73,7 +73,7 @@ void test__f_thread_attribute_affinity_set__works(void **state) { const f_status_t status = f_thread_attribute_affinity_set(0, &cpu_set, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } #endif // defined(_pthread_attr_unsupported_) } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_get.c index 150b2ce..37ce1a3 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_get.c @@ -23,7 +23,7 @@ void test__f_thread_attribute_concurrency_get__works(void **state) { const f_status_t status = f_thread_attribute_concurrency_get(&level); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(level, 1); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_set.c index 38111d7..fc45a64 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_concurrency_set.c @@ -41,7 +41,7 @@ void test__f_thread_attribute_concurrency_set__works(void **state) { const f_status_t status = f_thread_attribute_concurrency_set(level); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_create.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_create.c index 089cf36..4bda424 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_create.c @@ -48,7 +48,7 @@ void test__f_thread_attribute_create__works(void **state) { const f_status_t status = f_thread_attribute_create(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_default_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_default_get.c index 5dd3484..1f23fbe 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_default_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_default_get.c @@ -48,7 +48,7 @@ void test__f_thread_attribute_default_get__works(void **state) { const f_status_t status = f_thread_attribute_default_get(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_default_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_default_set.c index 072e45f..08d80bd 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_default_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_default_set.c @@ -50,7 +50,7 @@ void test__f_thread_attribute_default_set__works(void **state) { const f_status_t status = f_thread_attribute_default_set(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_delete.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_delete.c index 5d3559e..2ce22cb 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_delete.c @@ -46,7 +46,7 @@ void test__f_thread_attribute_delete__works(void **state) { const f_status_t status = f_thread_attribute_delete(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_get.c index 5315e97..c310b44 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_detach_get__works(void **state) { const f_status_t status = f_thread_attribute_detach_get(attribute, &state_data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_set.c index 0c3d8b2..3f6e69a 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_detach_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_detach_set__works(void **state) { const f_status_t status = f_thread_attribute_detach_set(state_data, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_get.c index 8dd41b0..8c81b74 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_guard_get__works(void **state) { const f_status_t status = f_thread_attribute_guard_get(attribute, &guard); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_set.c index c7313a4..5721d25 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_guard_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_guard_set__works(void **state) { const f_status_t status = f_thread_attribute_guard_set(guard, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_get.c index 581d686..ab60053 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scheduler_inherit_get__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_inherit_get(attribute, &inherit); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_set.c index f04cd9c..17478da 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_inherit_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scheduler_inherit_set__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_inherit_set(inherit, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_get.c index 271d4bd..0c9ccdc 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_get.c @@ -56,7 +56,7 @@ void test__f_thread_attribute_scheduler_parameter_get__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_parameter_get(attribute, ¶meter); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_set.c index 667496e..ce3a10e 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_parameter_set.c @@ -58,7 +58,7 @@ void test__f_thread_attribute_scheduler_parameter_set__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_parameter_set(parameter, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_get.c index ed54922..91c01cb 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scheduler_policy_get__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_policy_get(attribute, &policy); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_set.c index 1fb136f..a2a5e82 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scheduler_policy_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scheduler_policy_set__works(void **state) { const f_status_t status = f_thread_attribute_scheduler_policy_set(policy, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_get.c index 1682442..d586c8c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scope_get__works(void **state) { const f_status_t status = f_thread_attribute_scope_get(attribute, &scope); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_set.c index e8f5a86..b123af9 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_scope_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_scope_set__works(void **state) { const f_status_t status = f_thread_attribute_scope_set(scope, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_get.c index 8563b6e..89961fd 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_get.c @@ -56,7 +56,7 @@ void test__f_thread_attribute_stack_get__works(void **state) { const f_status_t status = f_thread_attribute_stack_get(attribute, &stack_size, (void *) &stack); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_set.c index a4cbd56..16864cc 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_set.c @@ -70,7 +70,7 @@ void test__f_thread_attribute_stack_set__works(void **state) { const f_status_t status = f_thread_attribute_stack_set(stack_size, (void *) &stack, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_get.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_get.c index c677d6e..4cc8f59 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_get.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_stack_size_get__works(void **state) { const f_status_t status = f_thread_attribute_stack_size_get(attribute, &stack_size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_set.c b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_set.c index c6fdb4e..38daa98 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attribute_stack_size_set.c @@ -52,7 +52,7 @@ void test__f_thread_attribute_stack_size_set__works(void **state) { const f_status_t status = f_thread_attribute_stack_size_set(stack_size, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attributes_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-attributes_delete_callback.c index f459638..89e6502 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attributes_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attributes_delete_callback.c @@ -46,7 +46,7 @@ void test__f_thread_attributes_delete_callback__works(void **state) { const f_status_t status = f_thread_attributes_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-attributes_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-attributes_destroy_callback.c index 926936c..2fbc439 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-attributes_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-attributes_destroy_callback.c @@ -46,7 +46,7 @@ void test__f_thread_attributes_destroy_callback__works(void **state) { const f_status_t status = f_thread_attributes_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_create.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_create.c index e782615..2b9e846 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_create.c @@ -48,7 +48,7 @@ void test__f_thread_barrier_attribute_create__works(void **state) { const f_status_t status = f_thread_barrier_attribute_create(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_delete.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_delete.c index d3d5833..6da4111 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_delete.c @@ -46,7 +46,7 @@ void test__f_thread_barrier_attribute_delete__works(void **state) { const f_status_t status = f_thread_barrier_attribute_delete(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_get.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_get.c index 795a461..5ef34a0 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_get.c @@ -65,7 +65,7 @@ void test__f_thread_barrier_attribute_shared_get__works(void **state) { const f_status_t status = f_thread_barrier_attribute_shared_get(&attribute, &shared); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_set.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_set.c index f3989cd..c559eb3 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attribute_shared_set.c @@ -52,7 +52,7 @@ void test__f_thread_barrier_attribute_shared_set__works(void **state) { const f_status_t status = f_thread_barrier_attribute_shared_set(shared, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_delete_callback.c index 2a96a15..d27206a 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_delete_callback.c @@ -46,7 +46,7 @@ void test__f_thread_barrier_attributes_delete_callback__works(void **state) { const f_status_t status = f_thread_barrier_attributes_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_destroy_callback.c index 6782da8..d907f66 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_attributes_destroy_callback.c @@ -46,7 +46,7 @@ void test__f_thread_barrier_attributes_destroy_callback__works(void **state) { const f_status_t status = f_thread_barrier_attributes_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_create.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_create.c index 0213680..0b31013 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_create.c @@ -61,7 +61,7 @@ void test__f_thread_barrier_create__works(void **state) { const f_status_t status = f_thread_barrier_create(count, &attribute, &barrier); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_delete.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_delete.c index 689d946..f1f6b9b 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_delete.c @@ -50,7 +50,7 @@ void test__f_thread_barrier_delete__works(void **state) { const f_status_t status = f_thread_barrier_delete(&barrier); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barrier_wait.c b/level_0/f_thread/tests/unit/c/test-thread-barrier_wait.c index 7b66f16..751cb07 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barrier_wait.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barrier_wait.c @@ -24,7 +24,7 @@ void test__f_thread_barrier_wait__works(void **state) { const f_status_t status = f_thread_barrier_wait(&attribute, &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barriers_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-barriers_delete_callback.c index 90c048d..2ce66f5 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barriers_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barriers_delete_callback.c @@ -47,7 +47,7 @@ void test__f_thread_barriers_delete_callback__works(void **state) { const f_status_t status = f_thread_barriers_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-barriers_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-barriers_destroy_callback.c index 0a212a5..5f02dfa 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-barriers_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-barriers_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_barriers_destroy_callback__works(void **state) { const f_status_t status = f_thread_barriers_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-cancel.c b/level_0/f_thread/tests/unit/c/test-thread-cancel.c index 4e722b7..a88cab4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-cancel.c +++ b/level_0/f_thread/tests/unit/c/test-thread-cancel.c @@ -39,7 +39,7 @@ void test__f_thread_cancel__works(void **state) { const f_status_t status = f_thread_cancel(id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-cancel_state_set.c b/level_0/f_thread/tests/unit/c/test-thread-cancel_state_set.c index 7cabcae..ab51458 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-cancel_state_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-cancel_state_set.c @@ -41,7 +41,7 @@ void test__f_thread_cancel_state_set__works(void **state) { const f_status_t status = f_thread_cancel_state_set(state_data, &previous); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-cancel_test.c b/level_0/f_thread/tests/unit/c/test-thread-cancel_test.c index 6e93b94..01df30b 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-cancel_test.c +++ b/level_0/f_thread/tests/unit/c/test-thread-cancel_test.c @@ -10,7 +10,7 @@ void test__f_thread_cancel_test__works(void **state) { { const f_status_t status = f_thread_cancel_test(); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-cancel_type_set.c b/level_0/f_thread/tests/unit/c/test-thread-cancel_type_set.c index 3653ff1..85fe396 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-cancel_type_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-cancel_type_set.c @@ -41,7 +41,7 @@ void test__f_thread_cancel_type_set__works(void **state) { const f_status_t status = f_thread_cancel_type_set(result, &previous); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-clock_get_id.c b/level_0/f_thread/tests/unit/c/test-thread-clock_get_id.c index aa3c6d8..82bb1ca 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-clock_get_id.c +++ b/level_0/f_thread/tests/unit/c/test-thread-clock_get_id.c @@ -58,7 +58,7 @@ void test__f_thread_clock_get_id__works(void **state) { const f_status_t status = f_thread_clock_get_id(id_thread, &id_clock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_get.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_get.c index 3249757..08e04a1 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_get.c @@ -56,7 +56,7 @@ void test__f_thread_condition_attribute_clock_get__works(void **state) { const f_status_t status = f_thread_condition_attribute_clock_get(&attribute, &id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_set.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_set.c index bf82f99..863b830 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_clock_set.c @@ -48,7 +48,7 @@ void test__f_thread_condition_attribute_clock_set__works(void **state) { const f_status_t status = f_thread_condition_attribute_clock_set(0, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_create.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_create.c index ca24110..0eecab1 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_create.c @@ -50,7 +50,7 @@ void test__f_thread_condition_attribute_create__works(void **state) { const f_status_t status = f_thread_condition_attribute_create(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_delete.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_delete.c index 4d25d0b..82bee1c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_delete.c @@ -50,7 +50,7 @@ void test__f_thread_condition_attribute_delete__works(void **state) { const f_status_t status = f_thread_condition_attribute_delete(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_get.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_get.c index 84e624e..296c8e0 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_get.c @@ -65,7 +65,7 @@ void test__f_thread_condition_attribute_shared_get__works(void **state) { const f_status_t status = f_thread_condition_attribute_shared_get(&attribute, &shared); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_set.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_set.c index 979a9ad..f7bd8b4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attribute_shared_set.c @@ -48,7 +48,7 @@ void test__f_thread_condition_attribute_shared_set__works(void **state) { const f_status_t status = f_thread_condition_attribute_shared_set(0, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_delete_callback.c index 8c9d260..e6df924 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_condition_attributes_delete_callback__works(void **state) { const f_status_t status = f_thread_condition_attributes_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_destroy_callback.c index 624da17..869d1d9 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_attributes_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_condition_attributes_destroy_callback__works(void **state) { const f_status_t status = f_thread_condition_attributes_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_create.c b/level_0/f_thread/tests/unit/c/test-thread-condition_create.c index 6a8c703..6a3722f 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_create.c @@ -58,7 +58,7 @@ void test__f_thread_condition_create__works(void **state) { const f_status_t status = f_thread_condition_create(&attribute, &condition); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_delete.c b/level_0/f_thread/tests/unit/c/test-thread-condition_delete.c index 32f94d6..f0e3950 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_delete.c @@ -48,7 +48,7 @@ void test__f_thread_condition_delete__works(void **state) { const f_status_t status = f_thread_condition_delete(&condition); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_signal.c b/level_0/f_thread/tests/unit/c/test-thread-condition_signal.c index dfe4d70..eee4eb2 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_signal.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_signal.c @@ -48,7 +48,7 @@ void test__f_thread_condition_signal__works(void **state) { const f_status_t status = f_thread_condition_signal(&condition); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_signal_all.c b/level_0/f_thread/tests/unit/c/test-thread-condition_signal_all.c index ea01ec7..a9a505e 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_signal_all.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_signal_all.c @@ -48,7 +48,7 @@ void test__f_thread_condition_signal_all__works(void **state) { const f_status_t status = f_thread_condition_signal_all(&condition); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_wait.c b/level_0/f_thread/tests/unit/c/test-thread-condition_wait.c index 4954c17..57554e4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_wait.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_wait.c @@ -71,7 +71,7 @@ void test__f_thread_condition_wait__works(void **state) { const f_status_t status = f_thread_condition_wait(&condition, &mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-condition_wait_timed.c b/level_0/f_thread/tests/unit/c/test-thread-condition_wait_timed.c index 731093d..29592f4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-condition_wait_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-condition_wait_timed.c @@ -82,7 +82,7 @@ void test__f_thread_condition_wait_timed__works(void **state) { const f_status_t status = f_thread_condition_wait_timed(&wait, &condition, &mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-conditions_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-conditions_delete_callback.c index 62a56a1..8209282 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-conditions_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-conditions_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_conditions_delete_callback__works(void **state) { const f_status_t status = f_thread_conditions_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-conditions_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-conditions_destroy_callback.c index 6c7a2ad..e1e99f7 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-conditions_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-conditions_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_conditions_destroy_callback__works(void **state) { const f_status_t status = f_thread_conditions_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-create.c b/level_0/f_thread/tests/unit/c/test-thread-create.c index f772a24..50a7cc8 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-create.c @@ -71,7 +71,7 @@ void test__f_thread_create__works(void **state) { const f_status_t status = f_thread_create(&attribute, &id, stub_callback, &argument); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-detach.c b/level_0/f_thread/tests/unit/c/test-thread-detach.c index fc67345..f91e4ba 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-detach.c +++ b/level_0/f_thread/tests/unit/c/test-thread-detach.c @@ -41,7 +41,7 @@ void test__f_thread_detach__works(void **state) { const f_status_t status = f_thread_detach(id); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-exit.c b/level_0/f_thread/tests/unit/c/test-thread-exit.c index 816add8..039b9ce 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-exit.c +++ b/level_0/f_thread/tests/unit/c/test-thread-exit.c @@ -23,7 +23,7 @@ void test__f_thread_exit__works(void **state) { const f_status_t status = f_thread_exit(&result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, 1); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-join.c b/level_0/f_thread/tests/unit/c/test-thread-join.c index 9ef0203..0b7a9b8 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-join.c +++ b/level_0/f_thread/tests/unit/c/test-thread-join.c @@ -45,7 +45,7 @@ void test__f_thread_join__works(void **state) { const f_status_t status = f_thread_join(id, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-join_timed.c b/level_0/f_thread/tests/unit/c/test-thread-join_timed.c index 9872125..b612f8d 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-join_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-join_timed.c @@ -55,7 +55,7 @@ void test__f_thread_join_timed__works(void **state) { const f_status_t status = f_thread_join_timed(id, wait, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-join_try.c b/level_0/f_thread/tests/unit/c/test-thread-join_try.c index b948a58..5133723 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-join_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-join_try.c @@ -47,7 +47,7 @@ void test__f_thread_join_try__works(void **state) { const f_status_t status = f_thread_join_try(id, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-key_create.c b/level_0/f_thread/tests/unit/c/test-thread-key_create.c index 3fd6afa..cdfcfe7 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-key_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-key_create.c @@ -64,7 +64,7 @@ void test__f_thread_key_create__works(void **state) { const f_status_t status = f_thread_key_create(stub_other, &key); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-key_delete.c b/level_0/f_thread/tests/unit/c/test-thread-key_delete.c index beea9d7..0a5a279 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-key_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-key_delete.c @@ -23,7 +23,7 @@ void test__f_thread_key_delete__works(void **state) { const f_status_t status = f_thread_key_delete(&key); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-key_get.c b/level_0/f_thread/tests/unit/c/test-thread-key_get.c index a0a3eae..88425bc 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-key_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-key_get.c @@ -28,7 +28,7 @@ void test__f_thread_key_get__works(void **state) { const f_status_t status = f_thread_key_get(key, (void *) &value_ptr); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(value_ptr, &expect); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-key_set.c b/level_0/f_thread/tests/unit/c/test-thread-key_set.c index b296711..a1b9e44 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-key_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-key_set.c @@ -52,7 +52,7 @@ void test__f_thread_key_set__works(void **state) { const f_status_t status = f_thread_key_set(key, &value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-keys_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-keys_delete_callback.c index f046325..4dafa74 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-keys_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-keys_delete_callback.c @@ -45,7 +45,7 @@ void test__f_thread_keys_delete_callback__works(void **state) { const f_status_t status = f_thread_keys_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-keys_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-keys_destroy_callback.c index b4740b1..5ffeb13 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-keys_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-keys_destroy_callback.c @@ -45,7 +45,7 @@ void test__f_thread_keys_destroy_callback__works(void **state) { const f_status_t status = f_thread_keys_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_create.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_create.c index f13b149..01823e9 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_create.c @@ -56,7 +56,7 @@ void test__f_thread_lock_attribute_create__works(void **state) { const f_status_t status = f_thread_lock_attribute_create(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_delete.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_delete.c index 907a5d1..bff1dab 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_delete.c @@ -50,7 +50,7 @@ void test__f_thread_lock_attribute_delete__works(void **state) { const f_status_t status = f_thread_lock_attribute_delete(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_get.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_get.c index 60c69db..b2420d6 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_get.c @@ -63,7 +63,7 @@ void test__f_thread_lock_attribute_shared_get__works(void **state) { const f_status_t status = f_thread_lock_attribute_shared_get(&attribute, &shared); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_set.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_set.c index eca0eaa..dd1ff34 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attribute_shared_set.c @@ -52,7 +52,7 @@ void test__f_thread_lock_attribute_shared_set__works(void **state) { const f_status_t status = f_thread_lock_attribute_shared_set(shared, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_delete_callback.c index ddfe6dc..a614212 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_lock_attributes_delete_callback__works(void **state) { const f_status_t status = f_thread_lock_attributes_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_destroy_callback.c index cdfc8a1..188571c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_attributes_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_lock_attributes_destroy_callback__works(void **state) { const f_status_t status = f_thread_lock_attributes_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_create.c b/level_0/f_thread/tests/unit/c/test-thread-lock_create.c index bc1eb59..08bdfbd 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_create.c @@ -54,7 +54,7 @@ void test__f_thread_lock_create__works(void **state) { const f_status_t status = f_thread_lock_create(&attribute, &lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_delete.c b/level_0/f_thread/tests/unit/c/test-thread-lock_delete.c index 55c4ba3..040774f 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_delete.c @@ -50,7 +50,7 @@ void test__f_thread_lock_delete__works(void **state) { const f_status_t status = f_thread_lock_delete(&lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_read.c b/level_0/f_thread/tests/unit/c/test-thread-lock_read.c index 211de69..7c0fcdf 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_read.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_read.c @@ -52,7 +52,7 @@ void test__f_thread_lock_read__works(void **state) { const f_status_t status = f_thread_lock_read(&lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_read_timed.c b/level_0/f_thread/tests/unit/c/test-thread-lock_read_timed.c index 0f9c046..e0e09d9 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_read_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_read_timed.c @@ -77,7 +77,7 @@ void test__f_thread_lock_read_timed__works(void **state) { const f_status_t status = f_thread_lock_read_timed(&timeout, &lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_read_try.c b/level_0/f_thread/tests/unit/c/test-thread-lock_read_try.c index 4829fa4..bb17966 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_read_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_read_try.c @@ -52,7 +52,7 @@ void test__f_thread_lock_read_try__works(void **state) { const f_status_t status = f_thread_lock_read_try(&lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_write.c b/level_0/f_thread/tests/unit/c/test-thread-lock_write.c index 4668fa8..de39549 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_write.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_write.c @@ -52,7 +52,7 @@ void test__f_thread_lock_write__works(void **state) { const f_status_t status = f_thread_lock_write(&lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_write_timed.c b/level_0/f_thread/tests/unit/c/test-thread-lock_write_timed.c index 11cf5db..eb522e4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_write_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_write_timed.c @@ -75,7 +75,7 @@ void test__f_thread_lock_write_timed__works(void **state) { const f_status_t status = f_thread_lock_write_timed(&timeout, &lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-lock_write_try.c b/level_0/f_thread/tests/unit/c/test-thread-lock_write_try.c index 8b43f1f..2faa936 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-lock_write_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-lock_write_try.c @@ -52,7 +52,7 @@ void test__f_thread_lock_write_try__works(void **state) { const f_status_t status = f_thread_lock_write_try(&lock); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-locks_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-locks_delete_callback.c index 7eee359..e048bd5 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-locks_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-locks_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_locks_delete_callback__works(void **state) { const f_status_t status = f_thread_locks_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-locks_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-locks_destroy_callback.c index f2923b6..3fe13f1 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-locks_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-locks_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_locks_destroy_callback__works(void **state) { const f_status_t status = f_thread_locks_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_create.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_create.c index d832377..356a33c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_create.c @@ -56,7 +56,7 @@ void test__f_thread_mutex_attribute_create__works(void **state) { const f_status_t status = f_thread_mutex_attribute_create(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_delete.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_delete.c index 4ed537c..c28ef7c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_delete.c @@ -50,7 +50,7 @@ void test__f_thread_mutex_attribute_delete__works(void **state) { const f_status_t status = f_thread_mutex_attribute_delete(&attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_get.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_get.c index 602eace..9c72b6c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_get.c @@ -67,7 +67,7 @@ void test__f_thread_mutex_attribute_priority_ceiling_get__works(void **state) { const f_status_t status = f_thread_mutex_attribute_priority_ceiling_get(&attribute, &ceiling); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_set.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_set.c index fa0d73a..bf0c381 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_priority_ceiling_set.c @@ -54,7 +54,7 @@ void test__f_thread_mutex_attribute_priority_ceiling_set__works(void **state) { const f_status_t status = f_thread_mutex_attribute_priority_ceiling_set(ceiling, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_get.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_get.c index 1c45705..7b415b1 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_get.c @@ -67,7 +67,7 @@ void test__f_thread_mutex_attribute_protocol_get__works(void **state) { const f_status_t status = f_thread_mutex_attribute_protocol_get(&attribute, &protocol); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_set.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_set.c index 1b3f620..8c98ed0 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_protocol_set.c @@ -54,7 +54,7 @@ void test__f_thread_mutex_attribute_protocol_set__works(void **state) { const f_status_t status = f_thread_mutex_attribute_protocol_set(protocol, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_get.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_get.c index 70230a7..fd9e479 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_get.c @@ -63,7 +63,7 @@ void test__f_thread_mutex_attribute_shared_get__works(void **state) { const f_status_t status = f_thread_mutex_attribute_shared_get(&attribute, &shared); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_set.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_set.c index 04e6f0b..8e93122 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_shared_set.c @@ -52,7 +52,7 @@ void test__f_thread_mutex_attribute_shared_set__works(void **state) { const f_status_t status = f_thread_mutex_attribute_shared_set(shared, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_get.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_get.c index ab6c91c..b091333 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_get.c @@ -48,7 +48,7 @@ void test__f_thread_mutex_attribute_type_get__works(void **state) { const f_status_t status = f_thread_mutex_attribute_type_get(&attribute, &type); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_set.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_set.c index 324c0d9..175b8ea 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attribute_type_set.c @@ -52,7 +52,7 @@ void test__f_thread_mutex_attribute_type_set__works(void **state) { const f_status_t status = f_thread_mutex_attribute_type_set(type, &attribute); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_delete_callback.c index b0030ee..856d198 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_mutex_attributes_delete_callback__works(void **state) { const f_status_t status = f_thread_mutex_attributes_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_destroy_callback.c index ea5de10..35687b3 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_attributes_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_mutex_attributes_destroy_callback__works(void **state) { const f_status_t status = f_thread_mutex_attributes_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_create.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_create.c index f0f59eb..e657e4b 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_create.c @@ -60,7 +60,7 @@ void test__f_thread_mutex_create__works(void **state) { const f_status_t status = f_thread_mutex_create(&attribute, &mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_delete.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_delete.c index 4580f7f..7f3955d 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_delete.c @@ -50,7 +50,7 @@ void test__f_thread_mutex_delete__works(void **state) { const f_status_t status = f_thread_mutex_delete(&mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock.c index f9a3691..aacd97c 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock.c @@ -52,7 +52,7 @@ void test__f_thread_mutex_lock__works(void **state) { const f_status_t status = f_thread_mutex_lock(&mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_timed.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_timed.c index 168e41f..d2bad40 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_timed.c @@ -81,7 +81,7 @@ void test__f_thread_mutex_lock_timed__works(void **state) { const f_status_t status = f_thread_mutex_lock_timed(&timeout, &mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_try.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_try.c index 757f3af..a8479b5 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_lock_try.c @@ -58,7 +58,7 @@ void test__f_thread_mutex_lock_try__works(void **state) { const f_status_t status = f_thread_mutex_lock_try(&mutex); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_get.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_get.c index c9dac07..5905996 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_get.c @@ -67,7 +67,7 @@ void test__f_thread_mutex_priority_ceiling_get__works(void **state) { const f_status_t status = f_thread_mutex_priority_ceiling_get(&mutex, &ceiling); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_set.c b/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_set.c index 1ce7231..e11ec84 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutex_priority_ceiling_set.c @@ -65,7 +65,7 @@ void test__f_thread_mutex_priority_ceiling_set__works(void **state) { const f_status_t status = f_thread_mutex_priority_ceiling_set(ceiling, &mutex, &previous); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutexs_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-mutexs_delete_callback.c index 683a308..6fe6954 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutexs_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutexs_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_mutexs_delete_callback__works(void **state) { const f_status_t status = f_thread_mutexs_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-mutexs_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-mutexs_destroy_callback.c index bb688f0..26499e4 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-mutexs_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-mutexs_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_mutexs_destroy_callback__works(void **state) { const f_status_t status = f_thread_mutexs_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-once.c b/level_0/f_thread/tests/unit/c/test-thread-once.c index aae098e..4d685bd 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-once.c +++ b/level_0/f_thread/tests/unit/c/test-thread-once.c @@ -62,7 +62,7 @@ void test__f_thread_once__works(void **state) { const f_status_t status = f_thread_once(stub, &once); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-onces_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-onces_delete_callback.c index 06d1d7e..52e916e 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-onces_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-onces_delete_callback.c @@ -46,7 +46,7 @@ void test__f_thread_onces_delete_callback__works(void **state) { const f_status_t status = f_thread_onces_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-onces_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-onces_destroy_callback.c index 82cf8db..8f8aea6 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-onces_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-onces_destroy_callback.c @@ -46,7 +46,7 @@ void test__f_thread_onces_destroy_callback__works(void **state) { const f_status_t status = f_thread_onces_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_get.c b/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_get.c index 8fb622f..e1ecdaa 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_get.c @@ -74,7 +74,7 @@ void test__f_thread_scheduler_parameter_get__works(void **state) { const f_status_t status = f_thread_scheduler_parameter_get(id, &policy, ¶meter); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_set.c b/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_set.c index 71c7857..8b8d4da 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_set.c @@ -61,7 +61,7 @@ void test__f_thread_scheduler_parameter_set__works(void **state) { const f_status_t status = f_thread_scheduler_parameter_set(id, policy, ¶meter); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-scheduler_priority_set.c b/level_0/f_thread/tests/unit/c/test-thread-scheduler_priority_set.c index 32fe511..9480f83 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-scheduler_priority_set.c +++ b/level_0/f_thread/tests/unit/c/test-thread-scheduler_priority_set.c @@ -45,7 +45,7 @@ void test__f_thread_scheduler_priority_set__works(void **state) { const f_status_t status = f_thread_scheduler_priority_set(id, priority); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_create.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_create.c index 1cff3f2..d91170a 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_create.c @@ -57,7 +57,7 @@ void test__f_thread_semaphore_create__works(void **state) { const f_status_t status = f_thread_semaphore_create(shared, value, &semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_delete.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_delete.c index cd18177..34999df 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_delete.c @@ -48,7 +48,7 @@ void test__f_thread_semaphore_delete__works(void **state) { const f_status_t status = f_thread_semaphore_delete(&semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_close.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_close.c index 88042a4..3bacc19 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_close.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_close.c @@ -48,7 +48,7 @@ void test__f_thread_semaphore_file_close__works(void **state) { const f_status_t status = f_thread_semaphore_file_close(&semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_delete.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_delete.c index 9ff0701..21e6135 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_delete.c @@ -45,7 +45,7 @@ void test__f_thread_semaphore_file_delete__works(void **state) { const f_status_t status = f_thread_semaphore_file_delete(name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_open.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_open.c index 73efe5d..862b663 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_open.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_file_open.c @@ -101,7 +101,7 @@ void test__f_thread_semaphore_file_open__works(void **state) { const f_status_t status = f_thread_semaphore_file_open(name, flag, &mode, value, &semaphore_ptr); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -112,7 +112,7 @@ void test__f_thread_semaphore_file_open__works(void **state) { const f_status_t status = f_thread_semaphore_file_open(name, flag, &mode, value, &semaphore_ptr); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock.c index 9a65c47..e5f3f40 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock.c @@ -50,7 +50,7 @@ void test__f_thread_semaphore_lock__works(void **state) { const f_status_t status = f_thread_semaphore_lock(&semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_timed.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_timed.c index 816548e..1327ead 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_timed.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_timed.c @@ -75,7 +75,7 @@ void test__f_thread_semaphore_lock_timed__works(void **state) { const f_status_t status = f_thread_semaphore_lock_timed(&timeout, &semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_try.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_try.c index 45a2d48..b188180 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_lock_try.c @@ -52,7 +52,7 @@ void test__f_thread_semaphore_lock_try__works(void **state) { const f_status_t status = f_thread_semaphore_lock_try(&semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_unlock.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_unlock.c index caf3afd..24a7974 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_unlock.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_unlock.c @@ -50,7 +50,7 @@ void test__f_thread_semaphore_unlock__works(void **state) { const f_status_t status = f_thread_semaphore_unlock(&semaphore); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphore_value_get.c b/level_0/f_thread/tests/unit/c/test-thread-semaphore_value_get.c index 2e80ce1..c5bbefa 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphore_value_get.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphore_value_get.c @@ -65,7 +65,7 @@ void test__f_thread_semaphore_value_get__works(void **state) { const f_status_t status = f_thread_semaphore_value_get(&semaphore, &value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphores_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-semaphores_delete_callback.c index 4d1929c..f0d3c0e 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphores_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphores_delete_callback.c @@ -46,7 +46,7 @@ void test__f_thread_semaphores_delete_callback__works(void **state) { const f_status_t status = f_thread_semaphores_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-semaphores_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-semaphores_destroy_callback.c index 6f97be3..f87322d 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-semaphores_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-semaphores_destroy_callback.c @@ -46,7 +46,7 @@ void test__f_thread_semaphores_destroy_callback__works(void **state) { const f_status_t status = f_thread_semaphores_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-sets_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-sets_delete_callback.c index a3640ce..26a6222 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-sets_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-sets_delete_callback.c @@ -46,7 +46,7 @@ void test__f_thread_sets_delete_callback__works(void **state) { const f_status_t status = f_thread_sets_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-sets_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-sets_destroy_callback.c index c4bd582..83cfe11 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-sets_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-sets_destroy_callback.c @@ -46,7 +46,7 @@ void test__f_thread_sets_destroy_callback__works(void **state) { const f_status_t status = f_thread_sets_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-signal_mask.c b/level_0/f_thread/tests/unit/c/test-thread-signal_mask.c index af77830..9e112fd 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-signal_mask.c +++ b/level_0/f_thread/tests/unit/c/test-thread-signal_mask.c @@ -57,7 +57,7 @@ void test__f_thread_signal_mask__parameter_checking(void **state) { const f_status_t status = f_thread_signal_mask(how, &next, 0); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { @@ -65,7 +65,7 @@ void test__f_thread_signal_mask__parameter_checking(void **state) { const f_status_t status = f_thread_signal_mask(how, 0, ¤t); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } @@ -83,7 +83,7 @@ void test__f_thread_signal_mask__works(void **state) { const f_status_t status = f_thread_signal_mask(how, &next, ¤t); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-signal_queue.c b/level_0/f_thread/tests/unit/c/test-thread-signal_queue.c index bb74d82..f7c51a0 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-signal_queue.c +++ b/level_0/f_thread/tests/unit/c/test-thread-signal_queue.c @@ -66,7 +66,7 @@ void test__f_thread_signal_queue__works(void **state) { const f_status_t status = f_thread_signal_queue(id, signal, value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } #endif // _pthread_sigqueue_unsupported_ } diff --git a/level_0/f_thread/tests/unit/c/test-thread-signal_write.c b/level_0/f_thread/tests/unit/c/test-thread-signal_write.c index 15a17ea..03ce781 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-signal_write.c +++ b/level_0/f_thread/tests/unit/c/test-thread-signal_write.c @@ -71,7 +71,7 @@ void test__f_thread_signal_write__works(void **state) { const f_status_t status = f_thread_signal_write(id, signal); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { diff --git a/level_0/f_thread/tests/unit/c/test-thread-spin_create.c b/level_0/f_thread/tests/unit/c/test-thread-spin_create.c index c54bcc3..8d307ec 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spin_create.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spin_create.c @@ -54,7 +54,7 @@ void test__f_thread_spin_create__works(void **state) { const f_status_t status = f_thread_spin_create(shared, &spin); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spin_delete.c b/level_0/f_thread/tests/unit/c/test-thread-spin_delete.c index 34d76a1..fe618ea 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spin_delete.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spin_delete.c @@ -50,7 +50,7 @@ void test__f_thread_spin_delete__works(void **state) { const f_status_t status = f_thread_spin_delete(&spin); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spin_lock.c b/level_0/f_thread/tests/unit/c/test-thread-spin_lock.c index 9ce302b..989fee6 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spin_lock.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spin_lock.c @@ -52,7 +52,7 @@ void test__f_thread_spin_lock__works(void **state) { const f_status_t status = f_thread_spin_lock(&spin); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spin_lock_try.c b/level_0/f_thread/tests/unit/c/test-thread-spin_lock_try.c index 89670d6..13448bc 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spin_lock_try.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spin_lock_try.c @@ -52,7 +52,7 @@ void test__f_thread_spin_lock_try__works(void **state) { const f_status_t status = f_thread_spin_lock_try(&spin); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spin_unlock.c b/level_0/f_thread/tests/unit/c/test-thread-spin_unlock.c index 20b2d5d..a16e076 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spin_unlock.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spin_unlock.c @@ -54,7 +54,7 @@ void test__f_thread_spin_unlock__works(void **state) { const f_status_t status = f_thread_spin_unlock(&spin); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spins_delete_callback.c b/level_0/f_thread/tests/unit/c/test-thread-spins_delete_callback.c index 1cc2272..7852040 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spins_delete_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spins_delete_callback.c @@ -48,7 +48,7 @@ void test__f_thread_spins_delete_callback__works(void **state) { const f_status_t status = f_thread_spins_delete_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_thread/tests/unit/c/test-thread-spins_destroy_callback.c b/level_0/f_thread/tests/unit/c/test-thread-spins_destroy_callback.c index 54617d2..421c0da 100644 --- a/level_0/f_thread/tests/unit/c/test-thread-spins_destroy_callback.c +++ b/level_0/f_thread/tests/unit/c/test-thread-spins_destroy_callback.c @@ -48,7 +48,7 @@ void test__f_thread_spins_destroy_callback__works(void **state) { const f_status_t status = f_thread_spins_destroy_callback(0, length, (void *) datass_array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } } diff --git a/level_0/f_time/c/time.c b/level_0/f_time/c/time.c index 04bd748..fe49c30 100644 --- a/level_0/f_time/c/time.c +++ b/level_0/f_time/c/time.c @@ -41,7 +41,7 @@ extern "C" { time->tv_sec += (time_t) second; - return time->tv_sec < (time_t) second ? F_status_set_error(F_number_overflow) : F_none; + return time->tv_sec < (time_t) second ? F_status_set_error(F_number_overflow) : F_okay; } #endif // _di_f_time_spec_millisecond_ @@ -77,7 +77,7 @@ extern "C" { if (time->tv_sec < (time_t) second) return F_status_set_error(F_number_overflow); } - return F_none; + return F_okay; } #endif // _di_f_time_spec_nanosecond_ diff --git a/level_0/f_time/c/time.h b/level_0/f_time/c/time.h index b87f304..f367cd5 100644 --- a/level_0/f_time/c/time.h +++ b/level_0/f_time/c/time.h @@ -41,7 +41,7 @@ extern "C" { * This is still updated on F_number_underflow, but the underflow value is set to 0. * * @return - * F_none on success. + * F_okay on success. * * F_number_overflow (with error bit) if the summation of seconds and milliseconds results in an overflow when cast to appropriate integer type. * F_number_underflow (with error bit) if the seconds or milliseconds is less than 0 when cast to appropriate integer type. @@ -69,7 +69,7 @@ extern "C" { * This is still updated on F_number_underflow, but the underflow value is set to 0. * * @return - * F_none on success. + * F_okay on success. * * F_number_overflow (with error bit) if the summation of seconds and nanoseconds results in an overflow when cast to appropriate integer type. * F_number_underflow (with error bit) if the second or nanoseconds is less than 0 when cast to appropriate integer type. diff --git a/level_0/f_time/tests/unit/c/test-time-spec_millisecond.c b/level_0/f_time/tests/unit/c/test-time-spec_millisecond.c index 47b0029..587c4e8 100644 --- a/level_0/f_time/tests/unit/c/test-time-spec_millisecond.c +++ b/level_0/f_time/tests/unit/c/test-time-spec_millisecond.c @@ -98,7 +98,7 @@ void test__f_time_spec_millisecond__works(void **state) { const f_status_t status = f_time_spec_millisecond(seconds[i], milliseconds[i], &time); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(time.tv_sec, seconds[i]); assert_int_equal(time.tv_nsec, milliseconds[i] * 1000); } // for @@ -119,7 +119,7 @@ void test__f_time_spec_millisecond__works(void **state) { const f_status_t status = f_time_spec_millisecond(seconds[i], milliseconds[i], &time); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(time.tv_sec, seconds[i] + 1); assert_int_equal(time.tv_nsec, (milliseconds[i] - 1000) * 1000); } // for diff --git a/level_0/f_time/tests/unit/c/test-time-spec_nanosecond.c b/level_0/f_time/tests/unit/c/test-time-spec_nanosecond.c index 0de029b..25dc01f 100644 --- a/level_0/f_time/tests/unit/c/test-time-spec_nanosecond.c +++ b/level_0/f_time/tests/unit/c/test-time-spec_nanosecond.c @@ -98,7 +98,7 @@ void test__f_time_spec_nanosecond__works(void **state) { const f_status_t status = f_time_spec_nanosecond(seconds[i], nanoseconds[i], &time); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(time.tv_sec, seconds[i]); assert_int_equal(time.tv_nsec, nanoseconds[i]); } // for @@ -119,7 +119,7 @@ void test__f_time_spec_nanosecond__works(void **state) { const f_status_t status = f_time_spec_nanosecond(seconds[i], nanoseconds[i], &time); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(time.tv_sec, seconds[i] + 1); assert_int_equal(time.tv_nsec, (nanoseconds[i] - 1000000000)); } // for diff --git a/level_0/f_type/c/type.h b/level_0/f_type/c/type.h index 13e94b4..3813e40 100644 --- a/level_0/f_type/c/type.h +++ b/level_0/f_type/c/type.h @@ -54,7 +54,7 @@ extern "C" { #ifndef _di_f_status_t_ typedef uint16_t f_status_t; - #define f_status_t_initialize F_none + #define f_status_t_initialize F_okay #endif // _di_f_status_t_ /** @@ -124,7 +124,7 @@ extern "C" { #define f_state_t_initialize { \ F_memory_default_allocation_large_d, \ F_memory_default_allocation_small_d, \ - F_none, \ + F_okay, \ 0, \ 0, \ 0, \ @@ -150,7 +150,7 @@ extern "C" { #define macro_f_state_t_clear(state) \ state.step_large = 0; \ state.step_small = 0; \ - state.status = F_none; \ + state.status = F_okay; \ state.flag = 0; \ state.code = 0; \ state.handle = 0; \ diff --git a/level_0/f_type_array/c/type_array/cell.c b/level_0/f_type_array/c/type_array/cell.c index d9e222f..5ee3378 100644 --- a/level_0/f_type_array/c/type_array/cell.c +++ b/level_0/f_type_array/c/type_array/cell.c @@ -10,7 +10,7 @@ extern "C" { { f_cells_t * const array = (f_cells_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_cellss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_cells_t * const array = (f_cells_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_cellss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/cell.h b/level_0/f_type_array/c/type_array/cell.h index 9de564f..585bbf0 100644 --- a/level_0/f_type_array/c/type_array/cell.h +++ b/level_0/f_type_array/c/type_array/cell.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/file.c b/level_0/f_type_array/c/type_array/file.c index 3fb764a..5a268cb 100644 --- a/level_0/f_type_array/c/type_array/file.c +++ b/level_0/f_type_array/c/type_array/file.c @@ -11,7 +11,7 @@ extern "C" { { f_files_t * const array = (f_files_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -22,7 +22,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_filess_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { { f_files_t * const array = (f_files_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -42,7 +42,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_filess_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/file.h b/level_0/f_type_array/c/type_array/file.h index adc23e0..eab7267 100644 --- a/level_0/f_type_array/c/type_array/file.h +++ b/level_0/f_type_array/c/type_array/file.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/fll_id.c b/level_0/f_type_array/c/type_array/fll_id.c index 48cc08d..e28a5ae 100644 --- a/level_0/f_type_array/c/type_array/fll_id.c +++ b/level_0/f_type_array/c/type_array/fll_id.c @@ -10,7 +10,7 @@ extern "C" { { f_fll_ids_t * const array = (f_fll_ids_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fll_idss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_fll_ids_t * const array = (f_fll_ids_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_fll_idss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/fll_id.h b/level_0/f_type_array/c/type_array/fll_id.h index e214836..ebd9c48 100644 --- a/level_0/f_type_array/c/type_array/fll_id.h +++ b/level_0/f_type_array/c/type_array/fll_id.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -90,7 +90,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -119,7 +119,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/int128.c b/level_0/f_type_array/c/type_array/int128.c index 8613c17..1a1fd95 100644 --- a/level_0/f_type_array/c/type_array/int128.c +++ b/level_0/f_type_array/c/type_array/int128.c @@ -10,7 +10,7 @@ extern "C" { { f_int128s_t * const array = (f_int128s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int128ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_int128s_t * const array = (f_int128s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int128ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/int128.h b/level_0/f_type_array/c/type_array/int128.h index 16767db..cb8ab50 100644 --- a/level_0/f_type_array/c/type_array/int128.h +++ b/level_0/f_type_array/c/type_array/int128.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/int16.c b/level_0/f_type_array/c/type_array/int16.c index 9f0ba94..ef5481b 100644 --- a/level_0/f_type_array/c/type_array/int16.c +++ b/level_0/f_type_array/c/type_array/int16.c @@ -10,7 +10,7 @@ extern "C" { { f_int16s_t * const array = (f_int16s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int16ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_int16s_t * const array = (f_int16s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int16ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/int16.h b/level_0/f_type_array/c/type_array/int16.h index 9d9c4b8..a1cf49b 100644 --- a/level_0/f_type_array/c/type_array/int16.h +++ b/level_0/f_type_array/c/type_array/int16.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/int32.c b/level_0/f_type_array/c/type_array/int32.c index a0f4052..b93a858 100644 --- a/level_0/f_type_array/c/type_array/int32.c +++ b/level_0/f_type_array/c/type_array/int32.c @@ -10,7 +10,7 @@ extern "C" { { f_int32s_t * const array = (f_int32s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int32ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_int32s_t * const array = (f_int32s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int32ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/int32.h b/level_0/f_type_array/c/type_array/int32.h index d6cd642..28657eb 100644 --- a/level_0/f_type_array/c/type_array/int32.h +++ b/level_0/f_type_array/c/type_array/int32.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/int64.c b/level_0/f_type_array/c/type_array/int64.c index dddd46b..68de331 100644 --- a/level_0/f_type_array/c/type_array/int64.c +++ b/level_0/f_type_array/c/type_array/int64.c @@ -10,7 +10,7 @@ extern "C" { { f_int64s_t * const array = (f_int64s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int64ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_int64s_t * const array = (f_int64s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int64ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/int64.h b/level_0/f_type_array/c/type_array/int64.h index d8ba3c1..3d702f0 100644 --- a/level_0/f_type_array/c/type_array/int64.h +++ b/level_0/f_type_array/c/type_array/int64.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/int8.c b/level_0/f_type_array/c/type_array/int8.c index ea70902..6bf8d9d 100644 --- a/level_0/f_type_array/c/type_array/int8.c +++ b/level_0/f_type_array/c/type_array/int8.c @@ -10,7 +10,7 @@ extern "C" { { f_int8s_t * const array = (f_int8s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int8ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_int8s_t * const array = (f_int8s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_int8ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/int8.h b/level_0/f_type_array/c/type_array/int8.h index bfffb0f..4ef5031 100644 --- a/level_0/f_type_array/c/type_array/int8.h +++ b/level_0/f_type_array/c/type_array/int8.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/number_unsigned.c b/level_0/f_type_array/c/type_array/number_unsigned.c index 913a6df..a379bdc 100644 --- a/level_0/f_type_array/c/type_array/number_unsigned.c +++ b/level_0/f_type_array/c/type_array/number_unsigned.c @@ -10,7 +10,7 @@ extern "C" { { f_number_unsigneds_t * const array = (f_number_unsigneds_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_number_unsignedss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_number_unsigneds_t * const array = (f_number_unsigneds_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_number_unsignedss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/number_unsigned.h b/level_0/f_type_array/c/type_array/number_unsigned.h index 167f1bb..8838e76 100644 --- a/level_0/f_type_array/c/type_array/number_unsigned.h +++ b/level_0/f_type_array/c/type_array/number_unsigned.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/poll.c b/level_0/f_type_array/c/type_array/poll.c index f00ae9b..f5c589c 100644 --- a/level_0/f_type_array/c/type_array/poll.c +++ b/level_0/f_type_array/c/type_array/poll.c @@ -11,7 +11,7 @@ extern "C" { { f_polls_t * const array = (f_polls_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -22,7 +22,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_pollss_delete_callback_ @@ -31,7 +31,7 @@ extern "C" { { f_polls_t * const array = (f_polls_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -42,7 +42,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_pollss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/poll.h b/level_0/f_type_array/c/type_array/poll.h index 4a3c315..e11bf46 100644 --- a/level_0/f_type_array/c/type_array/poll.h +++ b/level_0/f_type_array/c/type_array/poll.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/state.c b/level_0/f_type_array/c/type_array/state.c index 374351e..9c140b6 100644 --- a/level_0/f_type_array/c/type_array/state.c +++ b/level_0/f_type_array/c/type_array/state.c @@ -10,7 +10,7 @@ extern "C" { { f_states_t * const array = (f_states_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_statess_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_states_t * const array = (f_states_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_statess_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/state.h b/level_0/f_type_array/c/type_array/state.h index ab30f58..c78fccf 100644 --- a/level_0/f_type_array/c/type_array/state.h +++ b/level_0/f_type_array/c/type_array/state.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/status.c b/level_0/f_type_array/c/type_array/status.c index 48415a8..5807a93 100644 --- a/level_0/f_type_array/c/type_array/status.c +++ b/level_0/f_type_array/c/type_array/status.c @@ -10,7 +10,7 @@ extern "C" { { f_statuss_t * const array = (f_statuss_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_statusss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_statuss_t * const array = (f_statuss_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_statusss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/status.h b/level_0/f_type_array/c/type_array/status.h index b6aa5d7..40ede73 100644 --- a/level_0/f_type_array/c/type_array/status.h +++ b/level_0/f_type_array/c/type_array/status.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/uint128.c b/level_0/f_type_array/c/type_array/uint128.c index 01905ed..1f50133 100644 --- a/level_0/f_type_array/c/type_array/uint128.c +++ b/level_0/f_type_array/c/type_array/uint128.c @@ -10,7 +10,7 @@ extern "C" { { f_uint128s_t * const array = (f_uint128s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint128ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_uint128s_t * const array = (f_uint128s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint128ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/uint128.h b/level_0/f_type_array/c/type_array/uint128.h index 8fa67d3..adb664c 100644 --- a/level_0/f_type_array/c/type_array/uint128.h +++ b/level_0/f_type_array/c/type_array/uint128.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/uint16.c b/level_0/f_type_array/c/type_array/uint16.c index 8f16900..fcd1f16 100644 --- a/level_0/f_type_array/c/type_array/uint16.c +++ b/level_0/f_type_array/c/type_array/uint16.c @@ -10,7 +10,7 @@ extern "C" { { f_uint16s_t * const array = (f_uint16s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint16ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_uint16s_t * const array = (f_uint16s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint16ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/uint16.h b/level_0/f_type_array/c/type_array/uint16.h index 8b83bd4..1249dbf 100644 --- a/level_0/f_type_array/c/type_array/uint16.h +++ b/level_0/f_type_array/c/type_array/uint16.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/uint32.c b/level_0/f_type_array/c/type_array/uint32.c index 1b37494..f19b38a 100644 --- a/level_0/f_type_array/c/type_array/uint32.c +++ b/level_0/f_type_array/c/type_array/uint32.c @@ -10,7 +10,7 @@ extern "C" { { f_uint32s_t * const array = (f_uint32s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint32ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_uint32s_t * const array = (f_uint32s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint32ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/uint32.h b/level_0/f_type_array/c/type_array/uint32.h index 79749e8..c6253e7 100644 --- a/level_0/f_type_array/c/type_array/uint32.h +++ b/level_0/f_type_array/c/type_array/uint32.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/uint64.c b/level_0/f_type_array/c/type_array/uint64.c index d0774ed..c7c95bf 100644 --- a/level_0/f_type_array/c/type_array/uint64.c +++ b/level_0/f_type_array/c/type_array/uint64.c @@ -10,7 +10,7 @@ extern "C" { { f_uint64s_t * const array = (f_uint64s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint64ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_uint64s_t * const array = (f_uint64s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint64ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/uint64.h b/level_0/f_type_array/c/type_array/uint64.h index 0d002c7..b4aff40 100644 --- a/level_0/f_type_array/c/type_array/uint64.h +++ b/level_0/f_type_array/c/type_array/uint64.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/c/type_array/uint8.c b/level_0/f_type_array/c/type_array/uint8.c index aa62619..c1bba0e 100644 --- a/level_0/f_type_array/c/type_array/uint8.c +++ b/level_0/f_type_array/c/type_array/uint8.c @@ -10,7 +10,7 @@ extern "C" { { f_uint8s_t * const array = (f_uint8s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -21,7 +21,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint8ss_delete_callback_ @@ -30,7 +30,7 @@ extern "C" { { f_uint8s_t * const array = (f_uint8s_t *) void_array; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = start; i < stop; ++i) { @@ -41,7 +41,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_f_uint8ss_destroy_callback_ diff --git a/level_0/f_type_array/c/type_array/uint8.h b/level_0/f_type_array/c/type_array/uint8.h index 1bb09d9..e9162ec 100644 --- a/level_0/f_type_array/c/type_array/uint8.h +++ b/level_0/f_type_array/c/type_array/uint8.h @@ -32,7 +32,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -61,7 +61,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-cellss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-cellss_delete_callback.c index 1e14bae..ed4c466 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-cellss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-cellss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_cellss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_cells_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_cell_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_cellss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-cellss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-cellss_destroy_callback.c index 6ddc30b..1d1fcae 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-cellss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-cellss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_cellss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_cells_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_cell_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_cellss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-filess_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-filess_delete_callback.c index 9118863..c1adf24 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-filess_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-filess_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_filess_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_files_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_file_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_filess_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-filess_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-filess_destroy_callback.c index 7b58459..4ccfaa4 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-filess_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-filess_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_filess_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_files_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_file_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_filess_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_delete_callback.c index 5797651..12a9bd3 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_fll_idss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_fll_ids_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_fll_id_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fll_idss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_destroy_callback.c index b4d5178..77ea376 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-fll_idss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_fll_idss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_fll_ids_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_fll_id_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_fll_idss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_delete_callback.c index 07512fc..87c044d 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int128ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_int128s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_int128_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int128ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_destroy_callback.c index ac9c4d5..82574af 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int128ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int128ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_int128s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_int128_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int128ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_delete_callback.c index 020e11f..0bf02ae 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int16ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_int16s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(int16_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int16ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_destroy_callback.c index 27d7a1a..8964aec 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int16ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int16ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_int16s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(int16_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int16ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_delete_callback.c index 3062d4e..3ab0150 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int32ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_int32s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(int32_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int32ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_destroy_callback.c index 9d5bcf9..aa7f838 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int32ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int32ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_int32s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(int32_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int32ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_delete_callback.c index ba5a42c..1fa1739 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int64ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_int64s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(int64_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int64ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_destroy_callback.c index 54237d6..3cdd082 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int64ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int64ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_int64s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(int64_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int64ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_delete_callback.c index 3a5ffce..7236ed5 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int8ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_int8s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(int8_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int8ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_destroy_callback.c index 579c020..2c75f44 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-int8ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_int8ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_int8s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(int8_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_int8ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_delete_callback.c index 4fbc32d..9a5f0be 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_number_unsignedss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_number_unsigneds_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_number_unsignedss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_destroy_callback.c index 61a4ea4..55f4b12 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-number_unsignedss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_number_unsignedss_destroy_callback__works(void **state) { f_status_t status = f_memory_array_adjust(length, sizeof(f_number_unsigneds_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_number_unsigned_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_number_unsignedss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-pollss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-pollss_delete_callback.c index ffa0b8c..14d0081 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-pollss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-pollss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_pollss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_polls_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_poll_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_pollss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-pollss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-pollss_destroy_callback.c index 4302b51..e212050 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-pollss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-pollss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_pollss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_polls_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_poll_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_pollss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-statess_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-statess_delete_callback.c index 353a46d..1fe7292 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-statess_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-statess_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_statess_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_states_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_state_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_statess_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-statess_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-statess_destroy_callback.c index a6bef3e..041ee8f 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-statess_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-statess_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_statess_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_states_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_state_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_statess_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-statusss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-statusss_delete_callback.c index e5cac87..f85c834 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-statusss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-statusss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_statusss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_statuss_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_status_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_statusss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-statusss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-statusss_destroy_callback.c index 883c43a..87972b0 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-statusss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-statusss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_statusss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_statuss_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_status_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_statusss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_delete_callback.c index c275081..ae8f880 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint128ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_uint128s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(f_uint128_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint128ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_destroy_callback.c index abd3623..39b1a97 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint128ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint128ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_uint128s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(f_uint128_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint128ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_delete_callback.c index 12b25f2..83e0490 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint16ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_uint16s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint16_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint16ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_destroy_callback.c index 3d9d094..9283dd4 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint16ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint16ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_uint16s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint16_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint16ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_delete_callback.c index 4f57ff3..cc02f07 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint32ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_uint32s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint32_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint32ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_destroy_callback.c index d54d281..b59b23d 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint32ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint32ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_uint32s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint32_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint32ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_delete_callback.c index 8de79e4..d8474d3 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint64ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_uint64s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint64_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint64ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_destroy_callback.c index 68f6e8b..6a4af45 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint64ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint64ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_uint64s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint64_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint64ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_delete_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_delete_callback.c index 672be3a..cdf6a0c 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_delete_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_delete_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint8ss_delete_callback__works(void **state) { { f_status_t status = f_memory_array_resize(length, sizeof(f_uint8s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_resize(1, sizeof(uint8_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint8ss_delete_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_destroy_callback.c b/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_destroy_callback.c index a09ef6d..4555a61 100644 --- a/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_destroy_callback.c +++ b/level_0/f_type_array/tests/unit/c/test-type_array-uint8ss_destroy_callback.c @@ -36,16 +36,16 @@ void test__f_type_array_uint8ss_destroy_callback__works(void **state) { { f_status_t status = f_memory_array_adjust(length, sizeof(f_uint8s_t), (void **) &datass.array, &datass.used, &datass.size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); status = f_memory_array_adjust(1, sizeof(uint8_t), (void **) &datass.array[0].array, &datass.array[0].used, &datass.array[0].size); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); } { const f_status_t status = f_uint8ss_destroy_callback(0, length, (void *) datass.array); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(datass.array[0].size, 0); } diff --git a/level_0/f_utf/c/private-utf.c b/level_0/f_utf/c/private-utf.c index 4243883..7c27966 100644 --- a/level_0/f_utf/c/private-utf.c +++ b/level_0/f_utf/c/private-utf.c @@ -12,7 +12,7 @@ extern "C" { if (!macro_f_utf_byte_width_is(*sequence)) { *character_utf = macro_f_utf_char_t_from_char_1(sequence[0]); - return F_none; + return F_okay; } if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); @@ -20,19 +20,19 @@ extern "C" { *character_utf = macro_f_utf_char_t_from_char_1(sequence[0]); - if (macro_f_utf_byte_width_is(*sequence) < 2) return F_none; + if (macro_f_utf_byte_width_is(*sequence) < 2) return F_okay; *character_utf |= macro_f_utf_char_t_from_char_2(sequence[1]); - if (macro_f_utf_byte_width_is(*sequence) == 2) return F_none; + if (macro_f_utf_byte_width_is(*sequence) == 2) return F_okay; *character_utf |= macro_f_utf_char_t_from_char_3(sequence[2]); - if (macro_f_utf_byte_width_is(*sequence) == 3) return F_none; + if (macro_f_utf_byte_width_is(*sequence) == 3) return F_okay; *character_utf |= macro_f_utf_char_t_from_char_4(sequence[3]); - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_char_to_character_) || !defined(_di_f_utf_is_alphabetic_) || !defined(_di_f_utf_is_alphabetic_digit_) || !defined(_di_f_utf_is_alphabetic_numeric_) || !defined(_di_f_utf_is_ascii_) || !defined(_di_f_utf_is_combining_) || !defined(_di_f_utf_is_control_) || !defined(_di_f_utf_is_control_picture_) || !defined(_di_f_utf_is_digit_) || !defined(_di_f_utf_is_emoji_) || !defined(_di_f_utf_is_graph_) || !defined(_di_f_utf_is_numeric_) || !defined(_di_f_utf_is_phonetic_) || !defined(_di_f_utf_is_private_) || !defined(_di_f_utf_is_punctuation_) || !defined(_di_f_utf_is_symbol_) || !defined(_di_f_utf_is_unassigned_) || !defined(_di_f_utf_is_valid_) || !defined(_di_f_utf_is_whitespace_) || !defined(_di_f_utf_is_whitespace_modifier_) || !defined(_di_f_utf_is_whitespace_other_) || !defined(_di_f_utf_is_wide_) || !defined(_di_f_utf_is_word_) || !defined(_di_f_utf_is_word_dash_) || !defined(_di_f_utf_is_word_dash_plus_) || !defined(_di_f_utf_is_zero_width_) || !defined(_di_f_utf_unicode_to_) @@ -68,7 +68,7 @@ extern "C" { *codepoint |= macro_f_utf_char_t_to_char_4(sequence) & 0x3f; } - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_unicode_to_) || !defined(_di_f_utf_character_unicode_to_) diff --git a/level_0/f_utf/c/private-utf.h b/level_0/f_utf/c/private-utf.h index 9df6623..edc7b1f 100644 --- a/level_0/f_utf/c/private-utf.h +++ b/level_0/f_utf/c/private-utf.h @@ -33,7 +33,7 @@ extern "C" { * This value may be cleared, even on error. * * @return - * F_none if conversion was successful. + * F_okay if conversion was successful. * * F_complete_not_utf (with error bit) if character is an incomplete UTF-8 sequence. * F_parameter (with error bit) if a parameter is invalid. @@ -87,7 +87,7 @@ extern "C" { * Does not need to be interpretted like UTF-8, this is a number from 0 onto max supported Unicode integer value (U+10FFFF). * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) if width is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_utf/c/utf.c b/level_0/f_utf/c/utf.c index 8221afd..b26d88b 100644 --- a/level_0/f_utf/c/utf.c +++ b/level_0/f_utf/c/utf.c @@ -28,7 +28,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_eos); } - return F_none_eos; + return F_okay_eos; } ++i; @@ -36,7 +36,7 @@ extern "C" { } while (i < step); - return F_none; + return F_okay; } #endif // _di_f_utf_buffer_decrement_ @@ -64,7 +64,7 @@ extern "C" { range->start += width; - return F_none_stop; + return F_okay_stop; } else if (range->start + width >= buffer.used) { if (width > 1 && range->start + width >= buffer.used + 1) { @@ -73,7 +73,7 @@ extern "C" { range->start += width; - return F_none_eos; + return F_okay_eos; } ++i; @@ -81,7 +81,7 @@ extern "C" { } while (i < step); - return F_none; + return F_okay; } #endif // _di_f_utf_buffer_increment_ diff --git a/level_0/f_utf/c/utf.h b/level_0/f_utf/c/utf.h index ae66d15..845f805 100644 --- a/level_0/f_utf/c/utf.h +++ b/level_0/f_utf/c/utf.h @@ -91,9 +91,9 @@ extern "C" { * (For UTF-8 character of width 3, each step would be (3 * sizeof(uint8_t)). * * @return - * F_none on success. - * F_none_stop if the stop range is reached before all steps are completed. - * F_none_eos if the end of buffer is reached before all steps are completed. + * F_okay on success. + * F_okay_stop if the stop range is reached before all steps are completed. + * F_okay_eos if the end of buffer is reached before all steps are completed. * F_data_not if buffer is empty or out of range. * * F_complete_not_utf_eos (with error bit) if the end of buffer is reached before the complete UTF-8 character can be processed. @@ -123,9 +123,9 @@ extern "C" { * (For UTF-8 character of width 3, each step would be (3 * sizeof(uint8_t)). * * @return - * F_none on success. - * F_none_stop if the stop range is reached before all steps are completed. - * F_none_eos if the end of buffer is reached before all steps are completed. + * F_okay on success. + * F_okay_stop if the stop range is reached before all steps are completed. + * F_okay_eos if the end of buffer is reached before all steps are completed. * F_data_not if buffer is empty or out of range. * * F_complete_not_utf_stop (with error bit) if the stop range is reached before the complete UTF-8 character can be processed. diff --git a/level_0/f_utf/c/utf/convert.c b/level_0/f_utf/c/utf/convert.c index 478aa24..3e870fe 100644 --- a/level_0/f_utf/c/utf/convert.c +++ b/level_0/f_utf/c/utf/convert.c @@ -60,7 +60,7 @@ extern "C" { memcpy(*character, &unicode, sizeof(f_char_t) * macro_f_utf_char_t_width_is(unicode)); #endif // __BYTE_ORDER == __LITTLE_ENDIAN*/ - return F_none; + return F_okay; } memcpy(*character, &unicode, sizeof(f_char_t)); @@ -73,7 +73,7 @@ extern "C" { memcpy(*character, &unicode, sizeof(f_char_t)); #endif // __BYTE_ORDER == __LITTLE_ENDIAN*/ - return F_none; + return F_okay; } #endif // _di_f_utf_char_to_char_ @@ -124,7 +124,7 @@ extern "C" { *character |= 0xe0808080; } - return F_none; + return F_okay; } #endif // _di_f_utf_character_unicode_from_ @@ -196,7 +196,7 @@ extern "C" { *codepoint = value; - return F_none; + return F_okay; } #endif // _di_f_utf_character_unicode_string_to_ @@ -262,7 +262,7 @@ extern "C" { (*character)[3] = F_utf_byte_1_d | ((f_char_t) (codepoint & 0x3f)); } - return F_none; + return F_okay; } #endif // _di_f_utf_unicode_from_ @@ -342,7 +342,7 @@ extern "C" { *unicode = value; - return F_none; + return F_okay; } #endif // _di_f_utf_unicode_string_to_ diff --git a/level_0/f_utf/c/utf/convert.h b/level_0/f_utf/c/utf/convert.h index d4f267b..b2d16c2 100644 --- a/level_0/f_utf/c/utf/convert.h +++ b/level_0/f_utf/c/utf/convert.h @@ -32,7 +32,7 @@ extern "C" { * This is then updated to represent the max bytes used if enough space is available. * * @return - * F_none if conversion was successful. + * F_okay if conversion was successful. * * F_failure (with error bit) if width is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. @@ -56,7 +56,7 @@ extern "C" { * The Unicode number. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -81,7 +81,7 @@ extern "C" { * The (UTF-8) character. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -108,7 +108,7 @@ extern "C" { * Does not need to be interpretted like UTF-8, this is a number from 0 onto max supported Unicode integer value (U+10FFFF). * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) if width_max is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. @@ -132,7 +132,7 @@ extern "C" { * This value may be cleared, even on error. * * @return - * F_none if conversion was successful. + * F_okay if conversion was successful. * * F_failure (with error bit) if width is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. @@ -159,7 +159,7 @@ extern "C" { * The caller is expected to ensure this. * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) if width_max is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. @@ -185,7 +185,7 @@ extern "C" { * Does not need to be interpretted like UTF-8, this is a number from 0 onto max supported Unicode integer value (U+10FFFF). * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) if width is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. @@ -215,7 +215,7 @@ extern "C" { * Does not need to be interpretted like UTF-8, this is a number from 0 onto max supported Unicode integer value (U+10FFFF). * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) if width_max is not long enough to convert. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_utf/c/utf/dynamic.c b/level_0/f_utf/c/utf/dynamic.c index bf63336..3d8f9c9 100644 --- a/level_0/f_utf/c/utf/dynamic.c +++ b/level_0/f_utf/c/utf/dynamic.c @@ -55,7 +55,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_append_assure_ @@ -96,7 +96,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_append_assure_nulless_ @@ -296,7 +296,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_partial_append_assure_ @@ -342,7 +342,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_append_assure_nulless_ @@ -503,7 +503,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_partial_prepend_assure_ @@ -548,7 +548,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_partial_prepend_assure_nulless @@ -603,7 +603,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_prepend_assure_ @@ -644,7 +644,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_prepend_assure_nulless_ @@ -687,11 +687,11 @@ extern "C" { ++range->start; - if (range->start >= buffer.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= buffer.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_seek_line_ @@ -710,15 +710,15 @@ extern "C" { return F_status_set_error(F_utf_fragment); } - if (buffer.string[range->start] == f_utf_char_eol_s) return F_none_eol; + if (buffer.string[range->start] == f_utf_char_eol_s) return F_okay_eol; ++range->start; - if (range->start >= buffer.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= buffer.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_seek_line_to_ @@ -739,11 +739,11 @@ extern "C" { ++range->start; - if (range->start >= buffer.used) return F_none_eos; - if (range->start > range->stop) return F_none_stop; + if (range->start >= buffer.used) return F_okay_eos; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_seek_to_ @@ -754,7 +754,7 @@ extern "C" { #endif // _di_level_0_parameter_checking_ if (destination->used && !destination->string[destination->used - 1]) { - return F_none; + return F_okay; } if (destination->used == F_string_t_size_d) { @@ -768,7 +768,7 @@ extern "C" { destination->string[destination->used++] = 0; - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_terminate_ @@ -780,7 +780,7 @@ extern "C" { if (destination->used < destination->size) { if (!destination->string[destination->used]) { - return F_none; + return F_okay; } } @@ -795,7 +795,7 @@ extern "C" { destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamic_terminate_after_ diff --git a/level_0/f_utf/c/utf/dynamic.h b/level_0/f_utf/c/utf/dynamic.h index f4888a3..732d9e9 100644 --- a/level_0/f_utf/c/utf/dynamic.h +++ b/level_0/f_utf/c/utf/dynamic.h @@ -59,7 +59,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -77,7 +77,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -98,7 +98,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -121,7 +121,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -144,7 +144,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -169,7 +169,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -194,7 +194,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -220,7 +220,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size) (or step is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -245,7 +245,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_parameter (with error bit) if a parameter is invalid. @@ -270,7 +270,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -297,7 +297,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -322,7 +322,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -349,7 +349,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -374,7 +374,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -399,7 +399,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -428,7 +428,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -455,7 +455,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -484,7 +484,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -515,7 +515,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -544,7 +544,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -575,7 +575,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -602,7 +602,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -629,7 +629,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -658,7 +658,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -685,7 +685,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * F_data_not_eos if range.start >= source.used. * F_data_not_stop if range.start > range.stop. @@ -710,7 +710,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -733,7 +733,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -758,7 +758,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -781,7 +781,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -802,7 +802,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -822,9 +822,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -849,9 +849,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -876,9 +876,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eos on success, but stopped at end of string. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_eos on success, but stopped at end of string. + * F_okay_stop on success, but stopped at end of range. * F_data_not on success, but there was no string data to seek. * F_data_not_stop on success, but the range.start > range.stop. * @@ -903,7 +903,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if string is too large to fit into the buffer. @@ -928,7 +928,7 @@ extern "C" { * The new string, which will be allocated or reallocated as necessary. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if string is too large to fit into the buffer. diff --git a/level_0/f_utf/c/utf/dynamics.h b/level_0/f_utf/c/utf/dynamics.h index 6c527ba..04a232c 100644 --- a/level_0/f_utf/c/utf/dynamics.h +++ b/level_0/f_utf/c/utf/dynamics.h @@ -54,7 +54,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -73,7 +73,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -94,7 +94,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -119,7 +119,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -143,7 +143,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -192,7 +192,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -213,7 +213,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/dynamicss.c b/level_0/f_utf/c/utf/dynamicss.c index f5dc5ed..4866bcf 100644 --- a/level_0/f_utf/c/utf/dynamicss.c +++ b/level_0/f_utf/c/utf/dynamicss.c @@ -28,7 +28,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_dynamicss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -44,7 +44,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamicss_append_ @@ -56,7 +56,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_dynamicss_resize(destination->used + source.used, destination); @@ -73,7 +73,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_utf_string_dynamicss_append_all_ diff --git a/level_0/f_utf/c/utf/dynamicss.h b/level_0/f_utf/c/utf/dynamicss.h index cb732c9..7310e60 100644 --- a/level_0/f_utf/c/utf/dynamicss.h +++ b/level_0/f_utf/c/utf/dynamicss.h @@ -54,7 +54,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -73,7 +73,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -94,7 +94,7 @@ extern "C" { * The destination strings the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -119,7 +119,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -143,7 +143,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0) (or amount is 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -192,7 +192,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -213,7 +213,7 @@ extern "C" { * The array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/is.h b/level_0/f_utf/c/utf/is.h index 84671cc..babe2f8 100644 --- a/level_0/f_utf/c/utf/is.h +++ b/level_0/f_utf/c/utf/is.h @@ -751,7 +751,7 @@ extern "C" { * This is the width in bytes the codepoint takes up in UTF-8. * * @return - * F_none on success. + * F_okay on success. * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. diff --git a/level_0/f_utf/c/utf/map_multis.c b/level_0/f_utf/c/utf/map_multis.c index 285ac9d..ff86a66 100644 --- a/level_0/f_utf/c/utf/map_multis.c +++ b/level_0/f_utf/c/utf/map_multis.c @@ -25,7 +25,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_map_multis_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -47,7 +47,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_map_multis_append_ diff --git a/level_0/f_utf/c/utf/map_multis.h b/level_0/f_utf/c/utf/map_multis.h index 3a2df6a..e75bae0 100644 --- a/level_0/f_utf/c/utf/map_multis.h +++ b/level_0/f_utf/c/utf/map_multis.h @@ -58,7 +58,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The map_multis array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The map_multis array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/map_multiss.c b/level_0/f_utf/c/utf/map_multiss.c index 257fcf2..fceab23 100644 --- a/level_0/f_utf/c/utf/map_multiss.c +++ b/level_0/f_utf/c/utf/map_multiss.c @@ -28,7 +28,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_map_multiss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -44,7 +44,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_map_multiss_append_ @@ -56,7 +56,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_map_multiss_resize(destination->used + source.used, destination); @@ -73,7 +73,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_utf_string_map_multiss_append_all_ diff --git a/level_0/f_utf/c/utf/map_multiss.h b/level_0/f_utf/c/utf/map_multiss.h index 547afa3..7f94472 100644 --- a/level_0/f_utf/c/utf/map_multiss.h +++ b/level_0/f_utf/c/utf/map_multiss.h @@ -58,7 +58,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The map_multiss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The map_multiss array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/maps.c b/level_0/f_utf/c/utf/maps.c index 52b71f2..c556982 100644 --- a/level_0/f_utf/c/utf/maps.c +++ b/level_0/f_utf/c/utf/maps.c @@ -23,7 +23,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_maps_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -45,7 +45,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_maps_append_ diff --git a/level_0/f_utf/c/utf/maps.h b/level_0/f_utf/c/utf/maps.h index 85b02a0..2f9416b 100644 --- a/level_0/f_utf/c/utf/maps.h +++ b/level_0/f_utf/c/utf/maps.h @@ -58,7 +58,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -169,7 +169,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -194,7 +194,7 @@ extern "C" { * The string maps array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -215,7 +215,7 @@ extern "C" { * The string maps array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/mapss.c b/level_0/f_utf/c/utf/mapss.c index b93c9c3..b4eb6c1 100644 --- a/level_0/f_utf/c/utf/mapss.c +++ b/level_0/f_utf/c/utf/mapss.c @@ -26,7 +26,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_mapss_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -42,7 +42,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_mapss_append_ @@ -54,7 +54,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_mapss_resize(destination->used + source.used, destination); @@ -71,7 +71,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_utf_string_mapss_append_all_ diff --git a/level_0/f_utf/c/utf/mapss.h b/level_0/f_utf/c/utf/mapss.h index 0bc0eeb..d05cd5f 100644 --- a/level_0/f_utf/c/utf/mapss.h +++ b/level_0/f_utf/c/utf/mapss.h @@ -58,7 +58,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -77,7 +77,7 @@ extern "C" { * The destination mapss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if the combined string is too large. @@ -97,7 +97,7 @@ extern "C" { * The destination mapss the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is nothing to append (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size) (or step is 0). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string mapss array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string mapss array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/private-dynamic.c b/level_0/f_utf/c/utf/private-dynamic.c index dc4cb48..afa354b 100644 --- a/level_0/f_utf/c/utf/private-dynamic.c +++ b/level_0/f_utf/c/utf/private-dynamic.c @@ -19,7 +19,7 @@ extern "C" { dynamic->used = length; } - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_dynamic_adjust_) || !defined(_di_f_utf_string_dynamic_decimate_by_) || !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_) @@ -50,7 +50,7 @@ extern "C" { dynamic->used = length; } - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_append_) || !defined(_di_f_utf_string_append_assure_) || !defined(_di_f_utf_string_append_mash_) || !defined(_di_f_utf_string_append_nulless_) || !defined(_di_f_utf_string_dynamic_append_) || !defined(_di_f_utf_string_dynamic_append_assure_) || !defined(_di_f_utf_string_dynamic_append_nulless_) || !defined(_di_f_utf_string_dynamic_decrease_by_) || !defined(_di_f_utf_string_dynamic_increase_) || !defined(_di_f_utf_string_dynamic_increase_by_) || !defined(_di_f_utf_string_dynamic_mash_) || !defined(_di_f_utf_string_dynamic_mash_nulless_) || !defined(_di_f_utf_string_dynamic_partial_append_) || !defined(_di_f_utf_string_dynamic_partial_append_assure_) || !defined(_di_f_utf_string_dynamic_partial_mash_) || !defined(_di_f_utf_string_dynamic_prepend_) || !defined(_di_f_utf_string_dynamic_prepend_nulless_) || !defined(_di_f_utf_string_dynamic_terminate_) || !defined(_di_f_utf_string_dynamic_terminate_after_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decrease_by) || !defined(_di_f_utf_string_dynamics_increase) || !defined(_di_f_utf_string_dynamics_increase_by) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_decrease_by) || !defined(_di_f_utf_string_map_multis_increase) || !defined(_di_f_utf_string_map_multis_increase_by) || !defined(_di_f_utf_string_mash_nulless_) || !defined(_di_f_utf_string_mash_) || !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_prepend_) || !defined(_di_f_utf_string_prepend_nulless_) || !defined(_di_f_utf_string_triples_append_) diff --git a/level_0/f_utf/c/utf/private-dynamic.h b/level_0/f_utf/c/utf/private-dynamic.h index ef15161..142ec1f 100644 --- a/level_0/f_utf/c/utf/private-dynamic.h +++ b/level_0/f_utf/c/utf/private-dynamic.h @@ -26,7 +26,7 @@ extern "C" { * The string to adjust. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_adjust(). * @@ -56,7 +56,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_string_too_large (with error bit) if the combined string is too large. @@ -133,7 +133,7 @@ extern "C" { * The string to resize. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_resize(). * diff --git a/level_0/f_utf/c/utf/private-dynamics.c b/level_0/f_utf/c/utf/private-dynamics.c index b8de780..22eecde 100644 --- a/level_0/f_utf/c/utf/private-dynamics.c +++ b/level_0/f_utf/c/utf/private-dynamics.c @@ -11,7 +11,7 @@ extern "C" { #if !defined(_di_f_utf_string_dynamics_adjust_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_dynamics_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_) f_status_t private_f_utf_string_dynamics_adjust(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -26,7 +26,7 @@ extern "C" { #if !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) f_status_t private_f_utf_string_dynamics_append(const f_utf_string_dynamic_t source, f_utf_string_dynamics_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_dynamics_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -42,14 +42,14 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) #if !defined(_di_f_utf_string_dynamics_append_all_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) f_status_t private_f_utf_string_dynamics_append_all(const f_utf_string_dynamics_t source, f_utf_string_dynamics_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_dynamics_resize(destination->used + source.used, destination); @@ -66,14 +66,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_dynamics_append_all_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) #if !defined(_di_f_utf_string_dynamics_decrease_by_) || !defined(_di_f_utf_string_dynamics_increase_) || !defined(_di_f_utf_string_dynamics_increase_by_) || !defined(f_utf_string_dynamics_resize) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_) f_status_t private_f_utf_string_dynamics_resize(const f_number_unsigned_t length, f_utf_string_dynamics_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-dynamics.h b/level_0/f_utf/c/utf/private-dynamics.h index 983e656..03cf259 100644 --- a/level_0/f_utf/c/utf/private-dynamics.h +++ b/level_0/f_utf/c/utf/private-dynamics.h @@ -26,7 +26,7 @@ extern "C" { * The dynamics to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -55,7 +55,7 @@ extern "C" { * The destination dynamics the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -82,7 +82,7 @@ extern "C" { * The destination dynamics the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -109,7 +109,7 @@ extern "C" { * The dynamics to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-dynamicss.c b/level_0/f_utf/c/utf/private-dynamicss.c index 69b5185..0ce0ffd 100644 --- a/level_0/f_utf/c/utf/private-dynamicss.c +++ b/level_0/f_utf/c/utf/private-dynamicss.c @@ -12,7 +12,7 @@ extern "C" { #if !defined(_di_f_utf_string_dynamicss_adjust_) || !defined(_di_f_utf_string_dynamicss_append_) || !defined(_di_f_utf_string_dynamicss_decimate_by_) || !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_append_) f_status_t private_f_utf_string_dynamicss_adjust(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -27,7 +27,7 @@ extern "C" { #if !defined(_di_f_utf_string_dynamicss_decrease_by_) || !defined(_di_f_utf_string_dynamicss_increase_) || !defined(_di_f_utf_string_dynamicss_increase_by_) || !defined(_di_f_utf_string_dynamicss_append_all_) || !defined(_di_f_utf_string_map_multis_append_all_) f_status_t private_f_utf_string_dynamicss_resize(const f_number_unsigned_t length, f_utf_string_dynamicss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-dynamicss.h b/level_0/f_utf/c/utf/private-dynamicss.h index 58d36bc..8977d6f 100644 --- a/level_0/f_utf/c/utf/private-dynamicss.h +++ b/level_0/f_utf/c/utf/private-dynamicss.h @@ -26,7 +26,7 @@ extern "C" { * The dynamicss to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -55,7 +55,7 @@ extern "C" { * The dynamicss to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-map_multis.c b/level_0/f_utf/c/utf/private-map_multis.c index fcfc317..9455a35 100644 --- a/level_0/f_utf/c/utf/private-map_multis.c +++ b/level_0/f_utf/c/utf/private-map_multis.c @@ -12,7 +12,7 @@ extern "C" { #if !defined(_di_f_utf_string_map_multis_adjust_) || !defined(_di_f_utf_string_map_multis_decimate_by_) f_status_t private_f_utf_string_map_multis_adjust(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -30,7 +30,7 @@ extern "C" { #if !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) f_status_t private_f_utf_string_map_multis_append_all(const f_utf_string_map_multis_t source, f_utf_string_map_multis_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_map_multis_resize(destination->used + source.used, destination); @@ -53,14 +53,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) #if !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_map_multis_append_all_) || !defined(_di_f_utf_string_map_multis_decrease_by_) || !defined(_di_f_utf_string_map_multis_increase_) || !defined(_di_f_utf_string_map_multis_increase_by_) || !defined(_di_f_utf_string_map_multis_resize_) || !defined(_di_f_utf_string_map_multiss_append_) || !defined(_di_f_utf_string_map_multiss_append_all_) || !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_) f_status_t private_f_utf_string_map_multis_resize(const f_number_unsigned_t length, f_utf_string_map_multis_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-map_multis.h b/level_0/f_utf/c/utf/private-map_multis.h index aa6c4ed..be99985 100644 --- a/level_0/f_utf/c/utf/private-map_multis.h +++ b/level_0/f_utf/c/utf/private-map_multis.h @@ -26,7 +26,7 @@ extern "C" { * The map_multis to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The destination map_multis the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -78,7 +78,7 @@ extern "C" { * The map_multis to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-map_multiss.c b/level_0/f_utf/c/utf/private-map_multiss.c index 125a668..0472874 100644 --- a/level_0/f_utf/c/utf/private-map_multiss.c +++ b/level_0/f_utf/c/utf/private-map_multiss.c @@ -13,7 +13,7 @@ extern "C" { #if !defined(_di_f_utf_string_map_multiss_adjust_) || !defined(_di_f_utf_string_map_multiss_decimate_by_) f_status_t private_f_utf_string_map_multiss_adjust(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -28,7 +28,7 @@ extern "C" { #if !defined(_di_f_utf_string_map_multiss_decrease_by_) || !defined(_di_f_utf_string_map_multiss_increase_) || !defined(_di_f_utf_string_map_multiss_increase_by_) f_status_t private_f_utf_string_map_multiss_resize(const f_number_unsigned_t length, f_utf_string_map_multiss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-map_multiss.h b/level_0/f_utf/c/utf/private-map_multiss.h index d044bcb..6bcbcf3 100644 --- a/level_0/f_utf/c/utf/private-map_multiss.h +++ b/level_0/f_utf/c/utf/private-map_multiss.h @@ -26,7 +26,7 @@ extern "C" { * The map_multiss to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The map_multiss to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-maps.c b/level_0/f_utf/c/utf/private-maps.c index 70a4e3e..6f087bd 100644 --- a/level_0/f_utf/c/utf/private-maps.c +++ b/level_0/f_utf/c/utf/private-maps.c @@ -11,7 +11,7 @@ extern "C" { #if !defined(_di_f_utf_string_maps_adjust_) || !defined(_di_f_utf_string_maps_decimate_by_) f_status_t private_f_utf_string_maps_adjust(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -29,7 +29,7 @@ extern "C" { #if !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) f_status_t private_f_utf_string_maps_append_all(const f_utf_string_maps_t source, f_utf_string_maps_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_maps_resize(destination->used + source.used, destination); @@ -52,14 +52,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) #if !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_maps_append_all_) || !defined(_di_f_utf_string_maps_decrease_by_) || !defined(_di_f_utf_string_maps_increase_) || !defined(_di_f_utf_string_maps_increase_by_) || !defined(_di_f_utf_string_maps_resize_) || !defined(_di_f_utf_string_mapss_append_) || !defined(_di_f_utf_string_mapss_append_all_) || !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_) f_status_t private_f_utf_string_maps_resize(const f_number_unsigned_t length, f_utf_string_maps_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-maps.h b/level_0/f_utf/c/utf/private-maps.h index 52b159c..9e92670 100644 --- a/level_0/f_utf/c/utf/private-maps.h +++ b/level_0/f_utf/c/utf/private-maps.h @@ -26,7 +26,7 @@ extern "C" { * The maps to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The destination maps the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -78,7 +78,7 @@ extern "C" { * The maps to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-mapss.c b/level_0/f_utf/c/utf/private-mapss.c index b7a77c6..0673eac 100644 --- a/level_0/f_utf/c/utf/private-mapss.c +++ b/level_0/f_utf/c/utf/private-mapss.c @@ -12,7 +12,7 @@ extern "C" { #if !defined(_di_f_utf_string_mapss_adjust_) || !defined(_di_f_utf_string_mapss_decimate_by_) f_status_t private_f_utf_string_mapss_adjust(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -27,7 +27,7 @@ extern "C" { #if !defined(_di_f_utf_string_mapss_decrease_by_) || !defined(_di_f_utf_string_mapss_increase_) || !defined(_di_f_utf_string_mapss_increase_by_) f_status_t private_f_utf_string_mapss_resize(const f_number_unsigned_t length, f_utf_string_mapss_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-mapss.h b/level_0/f_utf/c/utf/private-mapss.h index c6eea33..21cdcae 100644 --- a/level_0/f_utf/c/utf/private-mapss.h +++ b/level_0/f_utf/c/utf/private-mapss.h @@ -26,7 +26,7 @@ extern "C" { * The structure to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -51,7 +51,7 @@ extern "C" { * The structure to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-string.c b/level_0/f_utf/c/utf/private-string.c index 7fc16d2..2994c3d 100644 --- a/level_0/f_utf/c/utf/private-string.c +++ b/level_0/f_utf/c/utf/private-string.c @@ -18,14 +18,14 @@ extern "C" { destination->used += length; destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_append_) || !defined(_di_f_utf_string_append_assure_) || !defined(_di_f_utf_string_dynamic_append_) || !defined(_di_f_utf_string_dynamic_append_assure_) || !defined(_di_f_utf_string_dynamic_mash_) || !defined(_di_f_utf_string_dynamic_partial_append_) || !defined(_di_f_utf_string_dynamic_partial_append_assure_) || !defined(_di_f_utf_string_dynamic_partial_mash_) || !defined(_di_f_utf_string_dynamics_append_) || !defined(_di_f_utf_string_map_multis_append_) || !defined(_di_f_utf_string_mash_) || !defined(_di_f_utf_string_maps_append_) || !defined(_di_f_utf_string_triples_append_) #if !defined(_di_f_utf_string_append_assure_nulless_) || !defined(_di_f_utf_string_append_nulless_) || !defined(_di_f_utf_string_dynamic_append_assure_nulless_) || !defined(_di_f_utf_string_dynamic_append_nulless_) || !defined(_di_f_utf_string_dynamic_mash_nulless_) || !defined(_di_f_utf_string_dynamic_partial_append_assure_nulless_) || !defined(_di_f_utf_string_dynamic_partial_append_nulless_) || !defined(_di_f_utf_string_dynamic_partial_mash_nulless_) || !defined(_di_f_utf_string_mash_nulless_) f_status_t private_f_utf_string_append_nulless(const f_utf_string_t source, const f_number_unsigned_t length, f_utf_string_dynamic_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t size = 0; @@ -69,7 +69,7 @@ extern "C" { destination->string[destination->used] = 0; - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_append_assure_nulless_) || !defined(_di_f_utf_string_append_nulless_) || !defined(_di_f_utf_string_dynamic_append_assure_nulless_) || !defined(_di_f_utf_string_dynamic_append_nulless_) || !defined(_di_f_utf_string_dynamic_mash_nulless_) || !defined(_di_f_utf_string_dynamic_partial_append_assure_nulless_) || !defined(_di_f_utf_string_dynamic_partial_append_nulless_) || !defined(_di_f_utf_string_dynamic_partial_mash_nulless_) || !defined(_di_f_utf_string_mash_nulless_) @@ -95,7 +95,7 @@ extern "C" { destination->used += length; - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_dynamic_mish_) || !defined(_di_f_utf_string_dynamic_partial_mish_) || !defined(_di_f_utf_string_dynamic_partial_prepend_assure_) || !defined(_di_f_utf_string_dynamic_partial_prepend_) || !defined(_di_f_utf_string_dynamic_prepend_assure_) || !defined(_di_f_utf_string_dynamic_prepend_) || !defined(_di_f_utf_string_mish_) || !defined(_di_f_utf_string_prepend_assure_) || !defined(_di_f_utf_string_prepend_) @@ -106,7 +106,7 @@ extern "C" { return F_status_set_error(F_string_too_large); } - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t first = 0; f_number_unsigned_t offset = 0; @@ -162,7 +162,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_dynamic_mish_nulless_) || !defined(_di_f_utf_string_dynamic_partial_mish_nulless_) || !defined(_di_f_utf_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_f_utf_string_dynamic_partial_prepend_nulless_) || !defined(_di_f_utf_string_dynamic_prepend_assure_nulless_) || !defined(_di_f_utf_string_dynamic_prepend_nulless_) || !defined(_di_f_utf_string_mish_nulless_) || !defined(_di_f_utf_string_prepend_assure_nulless_) || !defined(_di_f_utf_string_prepend_nulless_) diff --git a/level_0/f_utf/c/utf/private-string.h b/level_0/f_utf/c/utf/private-string.h index ee67f10..47e8195 100644 --- a/level_0/f_utf/c/utf/private-string.h +++ b/level_0/f_utf/c/utf/private-string.h @@ -30,7 +30,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -71,7 +71,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -108,7 +108,7 @@ extern "C" { * The destination string the source and glue are prepended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * @@ -146,7 +146,7 @@ extern "C" { * The destination string the source and glue are prepended onto. * * @return - * F_none on success. + * F_okay on success. * * F_string_too_large (with error bit) if the combined string is too large. * diff --git a/level_0/f_utf/c/utf/private-triples.c b/level_0/f_utf/c/utf/private-triples.c index c764a8e..c0cecad 100644 --- a/level_0/f_utf/c/utf/private-triples.c +++ b/level_0/f_utf/c/utf/private-triples.c @@ -11,7 +11,7 @@ extern "C" { #if !defined(_di_f_utf_string_triples_adjust_) || !defined(_di_f_utf_string_triples_decimate_by_) f_status_t private_f_utf_string_triples_adjust(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -32,7 +32,7 @@ extern "C" { #if !defined(_di_f_utf_string_triples_append_all_) || !defined(_di_f_utf_string_tripless_append_) || !defined(_di_f_utf_string_tripless_append_all_) f_status_t private_f_utf_string_triples_append_all(const f_utf_string_triples_t source, f_utf_string_triples_t * const destination) { - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_triples_resize(destination->used + source.used, destination); @@ -61,14 +61,14 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_f_utf_string_triples_append_all_) || !defined(_di_f_utf_string_tripless_append_) || !defined(_di_f_utf_string_tripless_append_all_) #if !defined(_di_f_utf_string_triples_decrease_by_) || !defined(_di_f_utf_string_triples_increase_) || !defined(_di_f_utf_string_triples_increase_by_) f_status_t private_f_utf_string_triples_resize(const f_number_unsigned_t length, f_utf_string_triples_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-triples.h b/level_0/f_utf/c/utf/private-triples.h index f401e48..dc15a1f 100644 --- a/level_0/f_utf/c/utf/private-triples.h +++ b/level_0/f_utf/c/utf/private-triples.h @@ -26,7 +26,7 @@ extern "C" { * The triples to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -50,7 +50,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -76,7 +76,7 @@ extern "C" { * The triples to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -102,7 +102,7 @@ extern "C" { * The tripless to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -126,7 +126,7 @@ extern "C" { * The tripless to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/private-tripless.c b/level_0/f_utf/c/utf/private-tripless.c index 875bd23..d451279 100644 --- a/level_0/f_utf/c/utf/private-tripless.c +++ b/level_0/f_utf/c/utf/private-tripless.c @@ -12,7 +12,7 @@ extern "C" { #if !defined(_di_f_utf_string_tripless_adjust_) || !defined(_di_f_utf_string_tripless_decimate_by_) f_status_t private_f_utf_string_tripless_adjust(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { @@ -27,7 +27,7 @@ extern "C" { #if !defined(_di_f_utf_string_tripless_decrease_by_) || !defined(_di_f_utf_string_tripless_increase_) || !defined(_di_f_utf_string_tripless_increase_by_) f_status_t private_f_utf_string_tripless_resize(const f_number_unsigned_t length, f_utf_string_tripless_t * const structure) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < structure->size; ++i) { diff --git a/level_0/f_utf/c/utf/private-tripless.h b/level_0/f_utf/c/utf/private-tripless.h index b2d97f7..c399d49 100644 --- a/level_0/f_utf/c/utf/private-tripless.h +++ b/level_0/f_utf/c/utf/private-tripless.h @@ -26,7 +26,7 @@ extern "C" { * The tripless to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * @@ -50,7 +50,7 @@ extern "C" { * The tripless to resize. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the combined array is too large. * diff --git a/level_0/f_utf/c/utf/string.c b/level_0/f_utf/c/utf/string.c index 88ef2ba..065be85 100644 --- a/level_0/f_utf/c/utf/string.c +++ b/level_0/f_utf/c/utf/string.c @@ -55,7 +55,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_ @@ -96,7 +96,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_nulless_ @@ -231,7 +231,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_ @@ -272,7 +272,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_nulless_ @@ -307,11 +307,11 @@ extern "C" { ++range->start; if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_ @@ -328,17 +328,17 @@ extern "C" { while (string[range->start] != seek_to) { if (string[range->start] == f_utf_char_eol_s) { - return F_none_eol; + return F_okay_eol; } ++range->start; if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_to_ @@ -357,11 +357,11 @@ extern "C" { ++range->start; if (range->start > range->stop) { - return F_none_stop; + return F_okay_stop; } } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_to_ diff --git a/level_0/f_utf/c/utf/string.h b/level_0/f_utf/c/utf/string.h index 27bfcf7..a4c5a55 100644 --- a/level_0/f_utf/c/utf/string.h +++ b/level_0/f_utf/c/utf/string.h @@ -27,7 +27,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -54,7 +54,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -82,7 +82,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -107,7 +107,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -136,7 +136,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -196,7 +196,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -227,7 +227,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -252,7 +252,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -279,7 +279,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -307,7 +307,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -335,7 +335,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -357,8 +357,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_stop on success, but stopped at end of range. * F_data_not_stop on success, but the range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -383,9 +383,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -406,8 +406,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_utf/c/utf/strings.c b/level_0/f_utf/c/utf/strings.c index d03b9b3..2961727 100644 --- a/level_0/f_utf/c/utf/strings.c +++ b/level_0/f_utf/c/utf/strings.c @@ -52,7 +52,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_ @@ -90,7 +90,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_nulless_ @@ -220,7 +220,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_ @@ -258,7 +258,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_nulless_ @@ -288,10 +288,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_ @@ -305,14 +305,14 @@ extern "C" { while (string[range->start] != seek_to) { - if (string[range->start] == f_utf_char_t_eol_s) return F_none_eol; + if (string[range->start] == f_utf_char_t_eol_s) return F_okay_eol; ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_to_ @@ -328,10 +328,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_to_ diff --git a/level_0/f_utf/c/utf/strings.h b/level_0/f_utf/c/utf/strings.h index 27bfcf7..a4c5a55 100644 --- a/level_0/f_utf/c/utf/strings.h +++ b/level_0/f_utf/c/utf/strings.h @@ -27,7 +27,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -54,7 +54,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -82,7 +82,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -107,7 +107,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -136,7 +136,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -196,7 +196,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -227,7 +227,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -252,7 +252,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -279,7 +279,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -307,7 +307,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -335,7 +335,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -357,8 +357,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_stop on success, but stopped at end of range. * F_data_not_stop on success, but the range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -383,9 +383,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -406,8 +406,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_utf/c/utf/stringss.c b/level_0/f_utf/c/utf/stringss.c index d03b9b3..2961727 100644 --- a/level_0/f_utf/c/utf/stringss.c +++ b/level_0/f_utf/c/utf/stringss.c @@ -52,7 +52,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_ @@ -90,7 +90,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_append_assure_nulless_ @@ -220,7 +220,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_ @@ -258,7 +258,7 @@ extern "C" { ++j; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_prepend_assure_nulless_ @@ -288,10 +288,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_ @@ -305,14 +305,14 @@ extern "C" { while (string[range->start] != seek_to) { - if (string[range->start] == f_utf_char_t_eol_s) return F_none_eol; + if (string[range->start] == f_utf_char_t_eol_s) return F_okay_eol; ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_line_to_ @@ -328,10 +328,10 @@ extern "C" { ++range->start; - if (range->start > range->stop) return F_none_stop; + if (range->start > range->stop) return F_okay_stop; } // while - return F_none; + return F_okay; } #endif // _di_f_utf_string_seek_to_ diff --git a/level_0/f_utf/c/utf/stringss.h b/level_0/f_utf/c/utf/stringss.h index 27bfcf7..a4c5a55 100644 --- a/level_0/f_utf/c/utf/stringss.h +++ b/level_0/f_utf/c/utf/stringss.h @@ -27,7 +27,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -54,7 +54,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -82,7 +82,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -107,7 +107,7 @@ extern "C" { * The destination string the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -136,7 +136,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -167,7 +167,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -196,7 +196,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -227,7 +227,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -252,7 +252,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -279,7 +279,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -307,7 +307,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -335,7 +335,7 @@ extern "C" { * The destination string the source is prepended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source length is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -357,8 +357,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at end of range. + * F_okay on success. + * F_okay_stop on success, but stopped at end of range. * F_data_not_stop on success, but the range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -383,9 +383,9 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_eol on success, but stopped at EOL. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_eol on success, but stopped at EOL. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. @@ -406,8 +406,8 @@ extern "C" { * The start location will be incremented by seek. * * @return - * F_none on success. - * F_none_stop on success, but stopped at the stop location. + * F_okay on success. + * F_okay_stop on success, but stopped at the stop location. * F_data_not_stop if range.start > range.stop. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_utf/c/utf/triples.c b/level_0/f_utf/c/utf/triples.c index 6f5ce99..0703369 100644 --- a/level_0/f_utf/c/utf/triples.c +++ b/level_0/f_utf/c/utf/triples.c @@ -23,7 +23,7 @@ extern "C" { if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -51,7 +51,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_triples_append_ @@ -63,7 +63,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_triples_resize(destination->used + source.used, destination); @@ -92,7 +92,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_utf_string_triples_append_all_ diff --git a/level_0/f_utf/c/utf/triples.h b/level_0/f_utf/c/utf/triples.h index 673259a..0eb7bfb 100644 --- a/level_0/f_utf/c/utf/triples.h +++ b/level_0/f_utf/c/utf/triples.h @@ -58,7 +58,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -76,7 +76,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -97,7 +97,7 @@ extern "C" { * The destination triples the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string triples array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string triples array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/c/utf/tripless.c b/level_0/f_utf/c/utf/tripless.c index 7a043e3..ea21ca1 100644 --- a/level_0/f_utf/c/utf/tripless.c +++ b/level_0/f_utf/c/utf/tripless.c @@ -16,7 +16,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + 1 > destination->size) { status = private_f_utf_string_tripless_resize(destination->used + F_memory_default_allocation_small_d, destination); @@ -32,7 +32,7 @@ extern "C" { ++destination->used; - return F_none; + return F_okay; } #endif // _di_f_utf_string_tripless_append_ @@ -44,7 +44,7 @@ extern "C" { if (!source.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; if (destination->used + source.used > destination->size) { status = private_f_utf_string_tripless_resize(destination->used + source.used, destination); @@ -61,7 +61,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // _di_f_utf_string_tripless_append_all_ diff --git a/level_0/f_utf/c/utf/tripless.h b/level_0/f_utf/c/utf/tripless.h index 9dfe427..b74b4b6 100644 --- a/level_0/f_utf/c/utf/tripless.h +++ b/level_0/f_utf/c/utf/tripless.h @@ -58,7 +58,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -76,7 +76,7 @@ extern "C" { * The destination tripless the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -97,7 +97,7 @@ extern "C" { * The destination tripless the source is appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (size == 0). * * F_parameter (with error bit) if a parameter is invalid. @@ -122,7 +122,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -146,7 +146,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not if amount is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + 1 <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -195,7 +195,7 @@ extern "C" { * The string tripless array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + amount <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -216,7 +216,7 @@ extern "C" { * The string tripless array to adjust. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_0/f_utf/tests/unit/c/test-utf-append.c b/level_0/f_utf/tests/unit/c/test-utf-append.c index acc1e1b..a837208 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-append.c @@ -13,7 +13,7 @@ void test__f_utf_append__works(void **state) { { const f_status_t status = f_utf_string_append(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-append_assure.c b/level_0/f_utf/tests/unit/c/test-utf-append_assure.c index 701ed62..fe0ce1e 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-append_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-append_assure.c @@ -13,7 +13,7 @@ void test__f_utf_append_assure__works(void **state) { { const f_status_t status = f_utf_string_append_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -25,7 +25,7 @@ void test__f_utf_append_assure__works(void **state) { { const f_status_t status = f_utf_string_append_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-append_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-append_assure_nulless.c index 51b7690..8971c0f 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-append_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-append_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_append_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -26,7 +26,7 @@ void test__f_utf_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_append_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-append_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-append_nulless.c index 46550ff..de30383 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-append_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-append_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_append_nulless__works(void **state) { { const f_status_t status = f_utf_string_append_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-character_is_valid.c b/level_0/f_utf/tests/unit/c/test-utf-character_is_valid.c index 2733816..253b7a8 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-character_is_valid.c +++ b/level_0/f_utf/tests/unit/c/test-utf-character_is_valid.c @@ -13,7 +13,7 @@ void test__f_utf_character_is_valid__works(void **state) { uint8_t fourth = 0; uint8_t width = 0; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_utf_char_t sequence = 0; sequence < UINT32_MAX; ++sequence) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_adjust.c index 5ebc997..c63ebf9 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_adjust__works(void **state) { { const f_status_t status = f_utf_string_dynamic_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append.c index 61d6321..20a62ac 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_append__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure.c index 31cca70..1b0ea98 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_append_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -25,7 +25,7 @@ void test__f_utf_dynamic_append_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure_nulless.c index 25a79f0..13d66e4 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_dynamic_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -26,7 +26,7 @@ void test__f_utf_dynamic_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_nulless.c index 84961cd..cae6527 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_append_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_dynamic_append_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_decimate_by.c index 396cde3..0f226ec 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamic_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamic_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_decrease_by.c index 15523be..1e7a728 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamic_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamic_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase.c index 8b3a459..996511d 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_increase__works(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamic_increase__works(void **state) { const f_status_t status = f_utf_string_dynamic_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_dynamic_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase_by.c index 1ff7e54..98ebd1e 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_increase_by__works(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamic_increase_by__works(void **state) { const f_status_t status = f_utf_string_dynamic_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash.c index f39a90b..76b1a88 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_mash__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mash(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_mash__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mash(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash_nulless.c index c81df1b..f3c70bf 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mash_nulless.c @@ -16,7 +16,7 @@ void test__f_utf_dynamic_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mash_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -28,7 +28,7 @@ void test__f_utf_dynamic_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mash_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish.c index 032dea6..44570a3 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_mish__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mish(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_mish__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mish(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish_nulless.c index 9521a8d..d9cf1c0 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_mish_nulless.c @@ -16,7 +16,7 @@ void test__f_utf_dynamic_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mish_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -28,7 +28,7 @@ void test__f_utf_dynamic_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_mish_nulless(glue, source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append.c index 2df9367..31ef176 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_append__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_append(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure.c index a45e8c9..b9835d6 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_append_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append(expected, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_partial_append_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_append_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure_nulless.c index ba8ac88..31b0289 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_assure_nulless.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_append(expected, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_partial_append_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_append_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_nulless.c index 428a79c..b2eaf05 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_append_nulless.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_append_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_append_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash.c index 74f810f..2a7d924 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash.c @@ -17,7 +17,7 @@ void test__f_utf_dynamic_partial_mash__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mash(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -29,7 +29,7 @@ void test__f_utf_dynamic_partial_mash__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mash(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash_nulless.c index bdffe2a..e3a346d 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mash_nulless.c @@ -17,7 +17,7 @@ void test__f_utf_dynamic_partial_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mash_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -29,7 +29,7 @@ void test__f_utf_dynamic_partial_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mash_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish.c index 4cc99dd..7ebdaf4 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish.c @@ -17,7 +17,7 @@ void test__f_utf_dynamic_partial_mish__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mish(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -29,7 +29,7 @@ void test__f_utf_dynamic_partial_mish__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mish(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish_nulless.c index 8697a95..e73cab5 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_mish_nulless.c @@ -17,7 +17,7 @@ void test__f_utf_dynamic_partial_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mish_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -29,7 +29,7 @@ void test__f_utf_dynamic_partial_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_mish_nulless(glue, source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend.c index 2a25cc0..9194931 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_prepend__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure.c index 8aab875..e4d2168 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_partial_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend_assure(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure_nulless.c index ff55d32..43673e0 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_assure_nulless.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_dynamic_partial_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend_assure_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_nulless.c index 514e6bb..1106f16 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_partial_prepend_nulless.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_partial_prepend_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_partial_prepend_nulless(source, partial, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend.c index 155cf38..8314bc3 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_prepend__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure.c index ebdf6ae..6179313 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -25,7 +25,7 @@ void test__f_utf_dynamic_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend_assure(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure_nulless.c index 80cf5bb..4223479 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_dynamic_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -26,7 +26,7 @@ void test__f_utf_dynamic_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend_assure_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_nulless.c index eed2182..9dc16ad 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_prepend_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_dynamic_prepend_nulless__works(void **state) { { const f_status_t status = f_utf_string_dynamic_prepend_nulless(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_resize.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_resize.c index 4c77837..092cec8 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_resize.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_resize__works(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.c index ff4794f..b0f09f3 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.c @@ -27,7 +27,7 @@ void test__f_utf_dynamic_seek_line__returns_none_eos(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -43,7 +43,7 @@ void test__f_utf_dynamic_seek_line__returns_none_stop(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); @@ -59,7 +59,7 @@ void test__f_utf_dynamic_seek_line__works(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line(source, &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 4); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.h b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.h index 91fca5c..494f443 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.h +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line.h @@ -18,14 +18,14 @@ extern void test__f_utf_dynamic_seek_line__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_utf_string_dynamic_seek_line() */ extern void test__f_utf_dynamic_seek_line__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_dynamic_seek_line() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.c index 9adddf6..96a42f2 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_seek_line_to__after_newline(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eol); + assert_int_equal(status, F_okay_eol); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -32,7 +32,7 @@ void test__f_utf_dynamic_seek_line_to__before_newline(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_utf_dynamic_seek_line_to__returns_none_eos(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -80,7 +80,7 @@ void test__f_utf_dynamic_seek_line_to__returns_none_stop(void **state) { const f_status_t status = f_utf_string_dynamic_seek_line_to(source, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.h b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.h index 1dda5e4..3cce704 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.h +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_line_to.h @@ -32,14 +32,14 @@ extern void test__f_utf_dynamic_seek_line_to__before_newline(void **state); extern void test__f_utf_dynamic_seek_line_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_utf_string_dynamic_seek_line_to() */ extern void test__f_utf_dynamic_seek_line_to__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_dynamic_seek_line_to() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.c index f39c85d..7183831 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.c @@ -15,7 +15,7 @@ void test__f_utf_dynamic_seek_to__after_newline(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 3); assert_int_equal(range.stop, source.used - 1); @@ -32,7 +32,7 @@ void test__f_utf_dynamic_seek_to__before_newline(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_utf_dynamic_seek_to__returns_none_eos(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none_eos); + assert_int_equal(status, F_okay_eos); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -80,7 +80,7 @@ void test__f_utf_dynamic_seek_to__returns_none_stop(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used - 1); assert_int_equal(range.stop, source.used - 2); @@ -98,7 +98,7 @@ void test__f_utf_dynamic_seek_to__works(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 3); assert_int_equal(range.stop, source.used - 1); @@ -111,7 +111,7 @@ void test__f_utf_dynamic_seek_to__works(void **state) { const f_status_t status = f_utf_string_dynamic_seek_to(source, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.h b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.h index fb2c024..b0fa763 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.h +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_seek_to.h @@ -32,14 +32,14 @@ extern void test__f_utf_dynamic_seek_to__before_newline(void **state); extern void test__f_utf_dynamic_seek_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_eos stopped after end of string because no newline is found. + * Test that the function returns F_okay_eos stopped after end of string because no newline is found. * * @see f_utf_string_dynamic_seek_to() */ extern void test__f_utf_dynamic_seek_to__returns_none_eos(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_dynamic_seek_to() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate.c index 4be036b..3112981 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate.c @@ -14,7 +14,7 @@ void test__f_utf_dynamic_terminate__appends_null(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = (f_utf_char_t) 'X'; } @@ -22,7 +22,7 @@ void test__f_utf_dynamic_terminate__appends_null(void **state) { { const f_status_t status = f_utf_string_dynamic_terminate(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 1); assert_int_equal(data.string[0], 0); } @@ -39,7 +39,7 @@ void test__f_utf_dynamic_terminate__doesnt_append_null(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = 0; } @@ -47,7 +47,7 @@ void test__f_utf_dynamic_terminate__doesnt_append_null(void **state) { { const f_status_t status = f_utf_string_dynamic_terminate(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 1); assert_int_equal(data.string[0], 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate_after.c b/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate_after.c index 5e36f3d..337e686 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate_after.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamic_terminate_after.c @@ -13,7 +13,7 @@ void test__f_utf_dynamic_terminate_after__appends_null(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); data.string[0] = (f_utf_char_t) 'X'; } @@ -21,7 +21,7 @@ void test__f_utf_dynamic_terminate_after__appends_null(void **state) { { const f_status_t status = f_utf_string_dynamic_terminate_after(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_in_range(data.size, 1, 1 + F_memory_default_allocation_small_d); @@ -40,7 +40,7 @@ void test__f_utf_dynamic_terminate_after__doesnt_append_null(void **state) { { const f_status_t status = f_utf_string_dynamic_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_in_range(data.size, length, length + F_memory_default_allocation_small_d); data.string[0] = 0; @@ -49,7 +49,7 @@ void test__f_utf_dynamic_terminate_after__doesnt_append_null(void **state) { { const f_status_t status = f_utf_string_dynamic_terminate_after(&data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_in_range(data.size, length, length + F_memory_default_allocation_small_d); diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_adjust.c index b98121e..ace8059 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_adjust__works(void **state) { { const f_status_t status = f_utf_string_dynamics_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_append.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_append.c index 9ab35e1..7b1d7ca 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_append.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_append__works(void **state) { { const f_status_t status = f_utf_string_dynamics_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].used, source.used); diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_append_all.c index bab2e30..d494a83 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_append_all.c @@ -19,14 +19,14 @@ void test__f_utf_dynamics_append_all__works(void **state) { { f_status_t status = f_utf_string_dynamics_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_sources[source.used], &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, test_sources[source.used].used); for (f_number_unsigned_t i = 0; i < source.array[source.used].used; ++i) { @@ -38,7 +38,7 @@ void test__f_utf_dynamics_append_all__works(void **state) { { const f_status_t status = f_utf_string_dynamics_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -73,7 +73,7 @@ void test__f_utf_dynamics_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_decimate_by.c index 22a1798..c789ec8 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamics_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamics_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_decrease_by.c index edb7496..0e6d5ab 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamics_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamics_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase.c index 7d8fd76..13edd06 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_increase__works(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamics_increase__works(void **state) { const f_status_t status = f_utf_string_dynamics_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_dynamics_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase_by.c index ae1eb8c..ecf50be 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_increase_by__works(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamics_increase_by__works(void **state) { const f_status_t status = f_utf_string_dynamics_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamics_resize.c b/level_0/f_utf/tests/unit/c/test-utf-dynamics_resize.c index 9061455..b0cc03b 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamics_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamics_resize.c @@ -13,7 +13,7 @@ void test__f_utf_dynamics_resize__works(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_adjust.c index 0998fd8..0de0484 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_adjust__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append.c index 9967075..fb7f065 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append.c @@ -19,14 +19,14 @@ void test__f_utf_dynamicss_append__works(void **state) { { f_status_t status = f_utf_string_dynamics_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_names[source.used], &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, test_names[source.used].used); for (f_number_unsigned_t i = 0; i < source.array[source.used].used; ++i) { @@ -38,7 +38,7 @@ void test__f_utf_dynamicss_append__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -74,7 +74,7 @@ void test__f_utf_dynamicss_append__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamics_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c index d6cf571..f88639a 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_append_all.c @@ -20,7 +20,7 @@ void test__f_utf_dynamicss_append_all__works(void **state) { { f_status_t status = f_utf_string_dynamicss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -30,7 +30,7 @@ void test__f_utf_dynamicss_append_all__works(void **state) { status = f_utf_string_dynamics_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -38,7 +38,7 @@ void test__f_utf_dynamicss_append_all__works(void **state) { status = f_utf_string_dynamic_append(test_names[i], &source.array[source.used].array[i]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[i].used, test_names[i].used); for (f_number_unsigned_t j = 0; j < source.array[source.used].array[i].used; ++j) { @@ -53,7 +53,7 @@ void test__f_utf_dynamicss_append_all__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -100,7 +100,7 @@ void test__f_utf_dynamicss_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decimate_by.c index ffbdbe2..2451956 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamicss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decrease_by.c index 0daad5b..d8bf98e 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_dynamicss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase.c index b44e4db..9b84d8a 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_increase__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamicss_increase__works(void **state) { const f_status_t status = f_utf_string_dynamicss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_dynamicss_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase_by.c index 00cea97..c9690c4 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_increase_by__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_dynamicss_increase_by__works(void **state) { const f_status_t status = f_utf_string_dynamicss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_resize.c b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_resize.c index 8d18c8b..b6b53e4 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-dynamicss_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-dynamicss_resize.c @@ -13,7 +13,7 @@ void test__f_utf_dynamicss_resize__works(void **state) { { const f_status_t status = f_utf_string_dynamicss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_adjust.c index db10964..6cca3e2 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_adjust__works(void **state) { { const f_status_t status = f_utf_string_map_multis_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_append.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_append.c index 60ef6b1..09bfd49 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_append.c @@ -22,7 +22,7 @@ void test__f_utf_map_multis_append__works(void **state) { { f_status_t status = f_utf_string_dynamic_append(test_name, &source.name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.name.used, test_name.used); for (f_number_unsigned_t i = 0; i < source.name.used; ++i) { @@ -31,7 +31,7 @@ void test__f_utf_map_multis_append__works(void **state) { status = f_utf_string_dynamics_append_all(test_value, &source.value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.value.used, test_value.used); assert_int_equal(source.value.array[0].used, test_value.array[0].used); assert_int_equal(source.value.array[1].used, test_value.array[1].used); @@ -48,7 +48,7 @@ void test__f_utf_map_multis_append__works(void **state) { { const f_status_t status = f_utf_string_map_multis_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].name.used, source.name.used); assert_int_equal(destination.array[0].value.used, source.value.used); diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_append_all.c index 22dc620..3c5a8ba 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_append_all.c @@ -23,20 +23,20 @@ void test__f_utf_map_multis_append_all__works(void **state) { { f_status_t status = f_utf_string_map_multis_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_name, &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_name.string); assert_int_equal(source.array[source.used].name.used, test_name.used); status = f_utf_string_dynamics_append_all(test_value, &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].value.array[0].used, test_value.array[0].used); assert_int_equal(source.array[source.used].value.array[1].used, test_value.array[1].used); assert_string_equal(source.array[source.used].value.array[0].string, test_value.array[0].string); @@ -47,7 +47,7 @@ void test__f_utf_map_multis_append_all__works(void **state) { { const f_status_t status = f_utf_string_map_multis_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -93,7 +93,7 @@ void test__f_utf_map_multis_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_decimate_by.c index b3fc895..c14f523 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_map_multis_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_map_multis_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_decrease_by.c index 106ddb2..1a6a937 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_map_multis_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_map_multis_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase.c index 69da8fa..912668b 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_increase__works(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_map_multis_increase__works(void **state) { const f_status_t status = f_utf_string_map_multis_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_map_multis_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase_by.c index c161b2b..6828872 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_increase_by__works(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_map_multis_increase_by__works(void **state) { const f_status_t status = f_utf_string_map_multis_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multis_resize.c b/level_0/f_utf/tests/unit/c/test-utf-map_multis_resize.c index c9c0445..e7dfad1 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multis_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multis_resize.c @@ -13,7 +13,7 @@ void test__f_utf_map_multis_resize__works(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_adjust.c index 849aea0..3be8e47 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_adjust__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c index aee96de..9970268 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append.c @@ -35,20 +35,20 @@ void test__f_utf_map_multiss_append__works(void **state) { { f_status_t status = f_utf_string_map_multis_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_names[source.used], &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_names[source.used].string); assert_int_equal(source.array[source.used].name.used, test_names[source.used].used); status = f_utf_string_dynamics_append_all(test_values[source.used], &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].value.used, test_values[source.used].used); assert_int_equal(source.array[source.used].value.array[0].used, test_values[source.used].array[0].used); assert_int_equal(source.array[source.used].value.array[1].used, test_values[source.used].array[1].used); @@ -61,7 +61,7 @@ void test__f_utf_map_multiss_append__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -108,7 +108,7 @@ void test__f_utf_map_multiss_append__returns_data_not(void **state) { { const f_status_t status = f_utf_string_map_multis_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c index bc06232..e386879 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_append_all.c @@ -36,7 +36,7 @@ void test__f_utf_map_multiss_append_all__works(void **state) { { f_status_t status = f_utf_string_map_multiss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -46,7 +46,7 @@ void test__f_utf_map_multiss_append_all__works(void **state) { status = f_utf_string_map_multis_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -54,13 +54,13 @@ void test__f_utf_map_multiss_append_all__works(void **state) { status = f_utf_string_dynamic_append(test_names[i], &source.array[source.used].array[i].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[i].name.used, test_names[i].used); assert_string_equal(source.array[source.used].array[i].name.string, test_names[i].string); status = f_utf_string_dynamics_append_all(test_values[i], &source.array[source.used].array[i].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].array[i].value.used, test_values[i].used); assert_int_equal(source.array[source.used].array[i].value.array[0].used, test_values[i].array[0].used); assert_int_equal(source.array[source.used].array[i].value.array[1].used, test_values[i].array[1].used); @@ -76,7 +76,7 @@ void test__f_utf_map_multiss_append_all__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -134,7 +134,7 @@ void test__f_utf_map_multiss_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decimate_by.c index 6eff1fe..a16bf00 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_map_multiss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decrease_by.c index bf19034..710be02 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_map_multiss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase.c index fa7a995..bcd82d0 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_increase__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_map_multiss_increase__works(void **state) { const f_status_t status = f_utf_string_map_multiss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_map_multiss_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase_by.c index e09df37..0d10bb3 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_increase_by__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_map_multiss_increase_by__works(void **state) { const f_status_t status = f_utf_string_map_multiss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_resize.c b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_resize.c index 8d2410f..56ec209 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-map_multiss_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-map_multiss_resize.c @@ -13,7 +13,7 @@ void test__f_utf_map_multiss_resize__works(void **state) { { const f_status_t status = f_utf_string_map_multiss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-maps_adjust.c index 3a49474..8209721 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_maps_adjust__works(void **state) { { const f_status_t status = f_utf_string_maps_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_append.c b/level_0/f_utf/tests/unit/c/test-utf-maps_append.c index a454569..43296eb 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_append.c @@ -16,13 +16,13 @@ void test__f_utf_maps_append__works(void **state) { { f_status_t status = f_utf_string_dynamic_append(test_name, &source.name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.name.string, test_name.string); assert_int_equal(source.name.used, test_name.used); status = f_utf_string_dynamic_append(test_value, &source.value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.value.string, test_value.string); assert_int_equal(source.value.used, test_value.used); } @@ -30,7 +30,7 @@ void test__f_utf_maps_append__works(void **state) { { const f_status_t status = f_utf_string_maps_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].name.used, source.name.used); assert_int_equal(destination.array[0].value.used, source.value.used); diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c index 7471413..a29d102 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_append_all.c @@ -17,20 +17,20 @@ void test__f_utf_maps_append_all__works(void **state) { { f_status_t status = f_utf_string_maps_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_name, &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_name.string); assert_int_equal(source.array[source.used].name.used, test_name.used); status = f_utf_string_dynamic_append(test_value, &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].value.string, test_value.string); assert_int_equal(source.array[source.used].value.used, test_value.used); } // for @@ -39,7 +39,7 @@ void test__f_utf_maps_append_all__works(void **state) { { const f_status_t status = f_utf_string_maps_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -78,7 +78,7 @@ void test__f_utf_maps_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-maps_decimate_by.c index fca2fa2..492c43d 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_maps_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_maps_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_maps_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-maps_decrease_by.c index 1385d9e..f195894 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_maps_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_maps_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_maps_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_increase.c b/level_0/f_utf/tests/unit/c/test-utf-maps_increase.c index 3ff9973..852fbeb 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_increase.c @@ -13,7 +13,7 @@ void test__f_utf_maps_increase__works(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_maps_increase__works(void **state) { const f_status_t status = f_utf_string_maps_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_maps_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-maps_increase_by.c index 3aa3f71..3ebb7e1 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_maps_increase_by__works(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_maps_increase_by__works(void **state) { const f_status_t status = f_utf_string_maps_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-maps_resize.c b/level_0/f_utf/tests/unit/c/test-utf-maps_resize.c index a0aedc8..79e3ec7 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-maps_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-maps_resize.c @@ -13,7 +13,7 @@ void test__f_utf_maps_resize__works(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_adjust.c index 4f38857..98b6889 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_adjust__works(void **state) { { const f_status_t status = f_utf_string_mapss_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_append.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_append.c index f522e1b..f578837 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_append.c @@ -24,20 +24,20 @@ void test__f_utf_mapss_append__works(void **state) { { f_status_t status = f_utf_string_maps_resize(length_inner, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.size, length_inner); for (; source.used < length_inner; ++source.used) { status = f_utf_string_dynamic_append(test_names[source.used], &source.array[source.used].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].name.string, test_names[source.used].string); assert_int_equal(source.array[source.used].name.used, test_names[source.used].used); status = f_utf_string_dynamic_append(test_values[source.used], &source.array[source.used].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].value.string, test_values[source.used].string); assert_int_equal(source.array[source.used].value.used, test_values[source.used].used); } // for @@ -46,7 +46,7 @@ void test__f_utf_mapss_append__works(void **state) { { const f_status_t status = f_utf_string_mapss_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_inner); for (f_number_unsigned_t i = 0; i < length_inner; ++i) { @@ -87,7 +87,7 @@ void test__f_utf_mapss_append__returns_data_not(void **state) { { const f_status_t status = f_utf_string_maps_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c index 9632928..05996bd 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_append_all.c @@ -25,7 +25,7 @@ void test__f_utf_mapss_append_all__works(void **state) { { f_status_t status = f_utf_string_mapss_resize(length_outer, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length_outer); @@ -35,7 +35,7 @@ void test__f_utf_mapss_append_all__works(void **state) { status = f_utf_string_maps_resize(length_inner, &source.array[source.used]); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.array[source.used].used, 0); assert_int_equal(source.array[source.used].size, length_inner); @@ -43,13 +43,13 @@ void test__f_utf_mapss_append_all__works(void **state) { status = f_utf_string_dynamic_append(test_names[i], &source.array[source.used].array[i].name); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].array[i].name.string, test_names[i].string); assert_int_equal(source.array[source.used].array[i].name.used, test_names[i].used); status = f_utf_string_dynamic_append(test_values[i], &source.array[source.used].array[i].value); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_string_equal(source.array[source.used].array[i].value.string, test_values[i].string); assert_int_equal(source.array[source.used].array[i].value.used, test_values[i].used); } // for @@ -61,7 +61,7 @@ void test__f_utf_mapss_append_all__works(void **state) { { const f_status_t status = f_utf_string_mapss_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_outer; ++j) { @@ -112,7 +112,7 @@ void test__f_utf_mapss_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_decimate_by.c index 33ee567..0b988c6 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_mapss_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_mapss_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_decrease_by.c index 7484e13..693a4ae 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_mapss_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_mapss_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_increase.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_increase.c index 67a911c..45d046a 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_increase.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_increase__works(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_mapss_increase__works(void **state) { const f_status_t status = f_utf_string_mapss_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_mapss_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_increase_by.c index 4151f00..cbb4c10 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_increase_by__works(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_mapss_increase_by__works(void **state) { const f_status_t status = f_utf_string_mapss_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mapss_resize.c b/level_0/f_utf/tests/unit/c/test-utf-mapss_resize.c index d5d6769..e715c82 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mapss_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mapss_resize.c @@ -13,7 +13,7 @@ void test__f_utf_mapss_resize__works(void **state) { { const f_status_t status = f_utf_string_mapss_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-mash.c b/level_0/f_utf/tests/unit/c/test-utf-mash.c index a84dc53..893422e 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mash.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mash.c @@ -15,7 +15,7 @@ void test__f_utf_mash__works(void **state) { { const f_status_t status = f_utf_string_mash(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_mash__works(void **state) { { const f_status_t status = f_utf_string_mash(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-mash_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-mash_nulless.c index c9a3312..f00c74c 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mash_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mash_nulless.c @@ -16,7 +16,7 @@ void test__f_utf_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_mash_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -28,7 +28,7 @@ void test__f_utf_mash_nulless__works(void **state) { { const f_status_t status = f_utf_string_mash_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-mish.c b/level_0/f_utf/tests/unit/c/test-utf-mish.c index 7f0bd53..ac68a5b 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mish.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mish.c @@ -15,7 +15,7 @@ void test__f_utf_mish__works(void **state) { { const f_status_t status = f_utf_string_mish(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -27,7 +27,7 @@ void test__f_utf_mish__works(void **state) { { const f_status_t status = f_utf_string_mish(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-mish_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-mish_nulless.c index 69dec7d..1c9bc46 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-mish_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-mish_nulless.c @@ -16,7 +16,7 @@ void test__f_utf_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_mish_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected1.used); for (f_number_unsigned_t i = 0; i < expected1.used; ++i) { @@ -28,7 +28,7 @@ void test__f_utf_mish_nulless__works(void **state) { { const f_status_t status = f_utf_string_mish_nulless(glue.string, glue.used, source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected2.used); for (f_number_unsigned_t i = 0; i < expected2.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-prepend.c b/level_0/f_utf/tests/unit/c/test-utf-prepend.c index 02a284f..91b1998 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-prepend.c +++ b/level_0/f_utf/tests/unit/c/test-utf-prepend.c @@ -13,7 +13,7 @@ void test__f_utf_prepend__works(void **state) { { const f_status_t status = f_utf_string_prepend(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-prepend_assure.c b/level_0/f_utf/tests/unit/c/test-utf-prepend_assure.c index b2fe26e..b75927c 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-prepend_assure.c +++ b/level_0/f_utf/tests/unit/c/test-utf-prepend_assure.c @@ -13,7 +13,7 @@ void test__f_utf_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_prepend_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { @@ -25,7 +25,7 @@ void test__f_utf_prepend_assure__works(void **state) { { const f_status_t status = f_utf_string_prepend_assure(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t i = 0; i < source.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-prepend_assure_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-prepend_assure_nulless.c index a62459f..ed07042 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-prepend_assure_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-prepend_assure_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_prepend_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { @@ -26,7 +26,7 @@ void test__f_utf_prepend_assure_nulless__works(void **state) { { const f_status_t status = f_utf_string_prepend_assure_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-prepend_nulless.c b/level_0/f_utf/tests/unit/c/test-utf-prepend_nulless.c index a53396e..c35bb41 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-prepend_nulless.c +++ b/level_0/f_utf/tests/unit/c/test-utf-prepend_nulless.c @@ -14,7 +14,7 @@ void test__f_utf_prepend_nulless__works(void **state) { { const f_status_t status = f_utf_string_prepend_nulless(source.string, source.used, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, expected.used); for (f_number_unsigned_t i = 0; i < expected.used; ++i) { diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_line.c b/level_0/f_utf/tests/unit/c/test-utf-seek_line.c index 7b6af23..e30b788 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_line.c +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_line.c @@ -27,7 +27,7 @@ void test__f_utf_seek_line__returns_none_stop(void **state) { const f_status_t status = f_utf_string_seek_line(source.string, &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); @@ -43,7 +43,7 @@ void test__f_utf_seek_line__works(void **state) { const f_status_t status = f_utf_string_seek_line(source.string, &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 4); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_line.h b/level_0/f_utf/tests/unit/c/test-utf-seek_line.h index ba274b1..ae1cf4d 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_line.h +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_line.h @@ -18,7 +18,7 @@ extern void test__f_utf_seek_line__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_seek_line() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.c b/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.c index ccd3462..f9f3204 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.c +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.c @@ -15,7 +15,7 @@ void test__f_utf_seek_line_to__after_newline(void **state) { const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_eol); + assert_int_equal(status, F_okay_eol); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -32,7 +32,7 @@ void test__f_utf_seek_line_to__before_newline(void **state) { const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_utf_seek_line_to__returns_none_stop(void **state) { const f_status_t status = f_utf_string_seek_line_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.h b/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.h index 734df8d..8dc8d10 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.h +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_line_to.h @@ -32,7 +32,7 @@ extern void test__f_utf_seek_line_to__before_newline(void **state); extern void test__f_utf_seek_line_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_seek_line_to() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_to.c b/level_0/f_utf/tests/unit/c/test-utf-seek_to.c index 200c74d..f1e227e 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_to.c +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_to.c @@ -15,7 +15,7 @@ void test__f_utf_seek_to__after_newline(void **state) { const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 3); assert_int_equal(range.stop, source.used - 1); @@ -32,7 +32,7 @@ void test__f_utf_seek_to__before_newline(void **state) { const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(range.start, 2); assert_int_equal(range.stop, source.used - 1); @@ -63,7 +63,7 @@ void test__f_utf_seek_to__returns_none_stop(void **state) { const f_status_t status = f_utf_string_seek_to(source.string, to.string[0], &range); - assert_int_equal(status, F_none_stop); + assert_int_equal(status, F_okay_stop); assert_int_equal(range.start, source.used); assert_int_equal(range.stop, source.used - 1); diff --git a/level_0/f_utf/tests/unit/c/test-utf-seek_to.h b/level_0/f_utf/tests/unit/c/test-utf-seek_to.h index cedfa7b..7184a81 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-seek_to.h +++ b/level_0/f_utf/tests/unit/c/test-utf-seek_to.h @@ -32,7 +32,7 @@ extern void test__f_utf_seek_to__before_newline(void **state); extern void test__f_utf_seek_to__returns_data_not_stop(void **state); /** - * Test that the function returns F_none_stop stopped after end of range because no newline is found. + * Test that the function returns F_okay_stop stopped after end of range because no newline is found. * * @see f_utf_string_seek_to() */ diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-triples_adjust.c index 2478756..6981363 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_triples_adjust__works(void **state) { { const f_status_t status = f_utf_string_triples_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_append.c b/level_0/f_utf/tests/unit/c/test-utf-triples_append.c index 3f218ca..20c3fe8 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_append.c @@ -17,7 +17,7 @@ void test__f_utf_triples_append__works(void **state) { { const f_status_t status = f_utf_string_triples_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, 1); assert_int_equal(destination.array[0].a.used, source.a.used); assert_int_equal(destination.array[0].b.used, source.b.used); diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-triples_append_all.c index 958c368..8c1c415 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_append_all.c @@ -28,7 +28,7 @@ void test__f_utf_triples_append_all__works(void **state) { { const f_status_t status = f_utf_string_triples_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); assert_int_equal(destination.size, source.used); @@ -63,7 +63,7 @@ void test__f_utf_triples_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-triples_decimate_by.c index 210273e..06e9eef 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_triples_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_triples_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_triples_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-triples_decrease_by.c index 46b305a..3667ef7 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_triples_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_triples_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_triples_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_increase.c b/level_0/f_utf/tests/unit/c/test-utf-triples_increase.c index 1ff02e5..144bf17 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_increase.c @@ -13,7 +13,7 @@ void test__f_utf_triples_increase__works(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_triples_increase__works(void **state) { const f_status_t status = f_utf_string_triples_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_triples_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-triples_increase_by.c index 66f1eb1..f6312af 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_triples_increase_by__works(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_triples_increase_by__works(void **state) { const f_status_t status = f_utf_string_triples_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-triples_resize.c b/level_0/f_utf/tests/unit/c/test-utf-triples_resize.c index 5ff770a..c88ccf1 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-triples_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-triples_resize.c @@ -13,7 +13,7 @@ void test__f_utf_triples_resize__works(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_adjust.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_adjust.c index b3da75d..3806a70 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_adjust.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_adjust.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_adjust__works(void **state) { { const f_status_t status = f_utf_string_tripless_adjust(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_append.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_append.c index 13d4903..4a678b2 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_append.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_append.c @@ -28,7 +28,7 @@ void test__f_utf_tripless_append__works(void **state) { { const f_status_t status = f_utf_string_tripless_append(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.array[0].used, length_sources); for (f_number_unsigned_t i = 0; i < length_sources; ++i) { @@ -63,7 +63,7 @@ void test__f_utf_tripless_append__returns_data_not(void **state) { { const f_status_t status = f_utf_string_triples_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_append_all.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_append_all.c index 5e8908e..b840ebb 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_append_all.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_append_all.c @@ -47,7 +47,7 @@ void test__f_utf_tripless_append_all__works(void **state) { { const f_status_t status = f_utf_string_tripless_append_all(source, &destination); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(destination.used, source.used); for (f_number_unsigned_t j = 0; j < length_sources_set; ++j) { @@ -89,7 +89,7 @@ void test__f_utf_tripless_append_all__returns_data_not(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &source); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(source.used, 0); assert_int_equal(source.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_decimate_by.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_decimate_by.c index f6d2cc9..211f672 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_decimate_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_decimate_by.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_tripless_decimate_by__works(void **state) { { const f_status_t status = f_utf_string_tripless_decimate_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_decrease_by.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_decrease_by.c index 03f3a87..6470082 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_decrease_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_decrease_by.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -21,7 +21,7 @@ void test__f_utf_tripless_decrease_by__works(void **state) { { const f_status_t status = f_utf_string_tripless_decrease_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, 0); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_increase.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_increase.c index a6ebc34..326e2d1 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_increase.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_increase.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_increase__works(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_tripless_increase__works(void **state) { const f_status_t status = f_utf_string_tripless_increase(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_in_range(data.size, length + 1, length + 1 + F_memory_default_allocation_small_d); } @@ -39,7 +39,7 @@ void test__f_utf_tripless_increase__returns_data_not(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_increase_by.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_increase_by.c index 8ccf36a..c9f0b37 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_increase_by.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_increase_by.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_increase_by__works(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } @@ -23,7 +23,7 @@ void test__f_utf_tripless_increase_by__works(void **state) { const f_status_t status = f_utf_string_tripless_increase_by(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, length); assert_int_equal(data.size, length * 2); } diff --git a/level_0/f_utf/tests/unit/c/test-utf-tripless_resize.c b/level_0/f_utf/tests/unit/c/test-utf-tripless_resize.c index 17e2e07..b417239 100644 --- a/level_0/f_utf/tests/unit/c/test-utf-tripless_resize.c +++ b/level_0/f_utf/tests/unit/c/test-utf-tripless_resize.c @@ -13,7 +13,7 @@ void test__f_utf_tripless_resize__works(void **state) { { const f_status_t status = f_utf_string_tripless_resize(length, &data); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(data.used, 0); assert_int_equal(data.size, length); } diff --git a/level_1/fl_control_group/c/control_group.c b/level_1/fl_control_group/c/control_group.c index fca2507..2d3c4e0 100644 --- a/level_1/fl_control_group/c/control_group.c +++ b/level_1/fl_control_group/c/control_group.c @@ -22,7 +22,7 @@ extern "C" { } f_file_t file = macro_f_file_t_initialize_2(0, -1, F_file_flag_write_only_d); - f_status_t status = F_none; + f_status_t status = F_okay; f_string_static_t path = f_string_static_t_initialize; for (f_number_unsigned_t i = 0; i < control_group.groups.used; ++i) { @@ -56,7 +56,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fl_control_group_apply_ diff --git a/level_1/fl_control_group/c/control_group.h b/level_1/fl_control_group/c/control_group.h index c4745af..4537c6b 100644 --- a/level_1/fl_control_group/c/control_group.h +++ b/level_1/fl_control_group/c/control_group.h @@ -47,7 +47,7 @@ extern "C" { * The PID of the process to apply the control group(s) to. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) if a out of memory. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_1/fl_conversion/c/conversion.h b/level_1/fl_conversion/c/conversion.h index 3d96b40..9bda4c6 100644 --- a/level_1/fl_conversion/c/conversion.h +++ b/level_1/fl_conversion/c/conversion.h @@ -47,7 +47,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an signed long. + * F_okay if the binary string was converted to an signed long. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -92,7 +92,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -127,7 +127,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an unsigned long. + * F_okay if the binary string was converted to an unsigned long. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -172,7 +172,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * F_number_negative on negative value (has a -, such as '-1'). * F_number_positive on positive value (has a +, such as '+1'). @@ -206,7 +206,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an signed long. + * F_okay if the binary string was converted to an signed long. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -249,7 +249,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -282,7 +282,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an unsigned long. + * F_okay if the binary string was converted to an unsigned long. * F_data_not if string starts with a null (length is 0). * * F_base_not (with error bit) if no supported or valid base unit is provided. @@ -325,7 +325,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * F_number_negative on negative value (has a -, such as '-1'). * F_number_positive on positive value (has a +, such as '+1'). diff --git a/level_1/fl_conversion/c/private-conversion.c b/level_1/fl_conversion/c/private-conversion.c index 2037432..29239b8 100644 --- a/level_1/fl_conversion/c/private-conversion.c +++ b/level_1/fl_conversion/c/private-conversion.c @@ -16,7 +16,7 @@ extern "C" { if (string[i] == f_string_ascii_period_s.string[0]) return F_status_set_error(F_number_decimal); - if (f_conversion_character_to_binary(string[i], &digit) == F_none) { + if (f_conversion_character_to_binary(string[i], &digit) == F_okay) { if (digits) { ++digits; @@ -77,7 +77,7 @@ extern "C" { *number = converted; - return F_none; + return F_okay; } #endif // !defined(_di_fl_conversion_dynamic_partial_to_binary_signed_) || !defined(_di_fl_conversion_dynamic_partial_to_signed_detect_) || !defined(_di_fl_conversion_dynamic_to_binary_signed_) || !defined(_di_fl_conversion_dynamic_to_signed_detect_) @@ -92,7 +92,7 @@ extern "C" { if (string[i] == f_string_ascii_period_s.string[0]) return F_status_set_error(F_number_decimal); - if (f_conversion_character_to_binary(string[i], &digit) == F_none) { + if (f_conversion_character_to_binary(string[i], &digit) == F_okay) { if (digits) { ++digits; @@ -126,7 +126,7 @@ extern "C" { *number = converted; - return F_none; + return F_okay; } #endif // !defined(_di_fl_conversion_dynamic_partial_to_binary_unsigned_) || !defined(_di_fl_conversion_dynamic_partial_to_unsigned_detect_) || !defined(_di_fl_conversion_dynamic_to_binary_unsigned_) || !defined(_di_fl_conversion_dynamic_to_unsigned_detect_) @@ -156,7 +156,7 @@ extern "C" { if (string[i] == f_string_ascii_period_s.string[0]) return F_status_set_error(F_number_decimal); - if (character_to_digit(string[i], &digit) == F_none) { + if (character_to_digit(string[i], &digit) == F_okay) { if (digits) { ++digits; @@ -205,7 +205,7 @@ extern "C" { | macro_f_utf_char_t_from_char_3_le(macro_f_utf_char_t_to_char_3_be(converted)) | macro_f_utf_char_t_from_char_4_le(macro_f_utf_char_t_to_char_4_be(converted)); - return F_none; + return F_okay; } #else if (data.flag & fl_conversion_data_flag_endian_big_e) { @@ -214,13 +214,13 @@ extern "C" { | macro_f_utf_char_t_from_char_3_be(macro_f_utf_char_t_to_char_3_le(converted)) | macro_f_utf_char_t_from_char_4_be(macro_f_utf_char_t_to_char_4_le(converted)); - return F_none; + return F_okay; } #endif // _is_F_endian_big *number = converted; - return F_none; + return F_okay; } #endif // !defined(_di_fl_conversion_dynamic_partial_to_decimal_signed_) || !defined(_di_fl_conversion_dynamic_partial_to_signed_detect_) || !defined(_di_fl_conversion_dynamic_to_decimal_signed_) || !defined(_di_fl_conversion_dynamic_to_signed_detect_) @@ -250,7 +250,7 @@ extern "C" { if (string[i] == f_string_ascii_period_s.string[0]) return F_status_set_error(F_number_decimal); - if (character_to_digit(string[i], &digit) == F_none) { + if (character_to_digit(string[i], &digit) == F_okay) { if (digits) { ++digits; @@ -281,7 +281,7 @@ extern "C" { | macro_f_utf_char_t_from_char_3_le(macro_f_utf_char_t_to_char_3_be(converted)) | macro_f_utf_char_t_from_char_4_le(macro_f_utf_char_t_to_char_4_be(converted)); - return F_none; + return F_okay; } #else if (data.flag & fl_conversion_data_flag_endian_big_e) { @@ -290,13 +290,13 @@ extern "C" { | macro_f_utf_char_t_from_char_3_be(macro_f_utf_char_t_to_char_3_le(converted)) | macro_f_utf_char_t_from_char_4_be(macro_f_utf_char_t_to_char_4_le(converted)); - return F_none; + return F_okay; } #endif // _is_F_endian_big *number = converted; - return F_none; + return F_okay; } #endif // !defined(_di_fl_conversion_dynamic_partial_to_decimal_unsigned_) || !defined(_di_fl_conversion_dynamic_partial_to_unsigned_detect_) || !defined(_di_fl_conversion_dynamic_to_decimal_unsigned_) || !defined(_di_fl_conversion_dynamic_to_unsigned_detect_) @@ -309,7 +309,7 @@ extern "C" { int8_t vector = 0; // 0 for assumed positive, 1 for explicit positive, -1 for negative. f_number_unsigned_t j = 0; f_number_unsigned_t offset = 0; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < length; ++i) { @@ -361,7 +361,7 @@ extern "C" { if (j >= length) { *number = 0; - return F_none; + return F_okay; } if (string[j] > f_string_ascii_slash_backward_s.string[0] && string[j] < f_string_ascii_colon_s.string[0]) { @@ -459,7 +459,7 @@ extern "C" { uint8_t mode = 0; f_number_unsigned_t j = 0; f_number_unsigned_t offset = 0; - f_status_t status = F_none; + f_status_t status = F_okay; int8_t sign_found = 0; for (f_number_unsigned_t i = 0; i < length; ++i) { @@ -512,7 +512,7 @@ extern "C" { if (j >= length) { *number = 0; - return F_none; + return F_okay; } else if (string[j] > f_string_ascii_slash_backward_s.string[0] && string[j] < f_string_ascii_colon_s.string[0]) { mode = 10; @@ -594,7 +594,7 @@ extern "C" { // The +/- signs are not allowed. if (sign_found) { - if (status == F_none) return (sign_found == -1) ? F_number_negative : F_number_positive; + if (status == F_okay) return (sign_found == -1) ? F_number_negative : F_number_positive; return F_status_set_error(F_number); } diff --git a/level_1/fl_conversion/c/private-conversion.h b/level_1/fl_conversion/c/private-conversion.h index 93e6050..dbb6a8a 100644 --- a/level_1/fl_conversion/c/private-conversion.h +++ b/level_1/fl_conversion/c/private-conversion.h @@ -31,7 +31,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an signed long. + * F_okay if the binary string was converted to an signed long. * F_data_not if string starts with a null (length is 0). * * F_number (with error bit) if no conversion was made due to non-binary values being found. @@ -65,7 +65,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the binary string was converted to an unsigned long. + * F_okay if the binary string was converted to an unsigned long. * F_data_not if string starts with a null (length is 0). * * F_number (with error bit) if no conversion was made due to non-binary values being found. @@ -98,7 +98,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the decimal string was converted to an signed long. + * F_okay if the decimal string was converted to an signed long. * F_data_not if string starts with a null (length is 0). * * F_number (with error bit) if no conversion was made due to non-decimal values being found. @@ -132,7 +132,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none if the decimal string was converted to an unsigned long. + * F_okay if the decimal string was converted to an unsigned long. * F_data_not if string starts with a null (length is 0). * * F_number (with error bit) if no conversion was made due to non-decimal values being found. @@ -165,7 +165,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * * F_complete_not_utf (with error bit) if an incomplete UTF-8 fragment is found. @@ -196,7 +196,7 @@ extern "C" { * This value is only changed on success. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string starts with a null (length is 0). * F_number_negative on negative value (has a -, such as '-1'). * F_number_positive on positive value (has a +, such as '+1'). diff --git a/level_1/fl_directory/c/directory.c b/level_1/fl_directory/c/directory.c index 21475c8..87fd542 100644 --- a/level_1/fl_directory/c/directory.c +++ b/level_1/fl_directory/c/directory.c @@ -57,7 +57,7 @@ extern "C" { recurse->path_cache.used = 0; recurse->path_top = &path; recurse->depth = 0; - recurse->state.status = F_none; + recurse->state.status = F_okay; recurse->state.data = (void *) recurse; // Guarantee initialization even for parameter checking failures. @@ -101,7 +101,7 @@ extern "C" { } if ((recurse->flag & f_directory_recurse_do_flag_top_e) && (recurse->flag & f_directory_recurse_do_flag_before_e)) { - recurse->state.status = F_none; + recurse->state.status = F_okay; recurse->action((void *) recurse, path, f_directory_recurse_do_flag_top_e | f_directory_recurse_do_flag_path_e | f_directory_recurse_do_flag_before_e); @@ -111,7 +111,7 @@ extern "C" { } if (recurse->state.status == F_done) { - recurse->state.status = F_none; + recurse->state.status = F_okay; return; } @@ -147,7 +147,7 @@ extern "C" { if (F_status_is_error(recurse->state.status)) return; } - recurse->state.status = F_none; + recurse->state.status = F_okay; recurse->action((void *) recurse, path, f_directory_recurse_do_flag_top_e | f_directory_recurse_do_flag_directory_e); @@ -157,14 +157,14 @@ extern "C" { } if (recurse->state.status == F_done) { - recurse->state.status = F_none; + recurse->state.status = F_okay; return; } } if ((recurse->flag & f_directory_recurse_do_flag_top_e) && (recurse->flag & f_directory_recurse_do_flag_after_e)) { - recurse->state.status = F_none; + recurse->state.status = F_okay; recurse->action((void *) recurse, path, f_directory_recurse_do_flag_top_e | f_directory_recurse_do_flag_path_e | f_directory_recurse_do_flag_after_e); } @@ -174,7 +174,7 @@ extern "C" { if (F_status_is_error(recurse->state.status)) return; } - recurse->state.status = F_none; + recurse->state.status = F_okay; } #endif // _di_fl_directory_do_ @@ -204,7 +204,7 @@ extern "C" { f_number_unsigned_t i = path->used - 1; f_number_unsigned_t j = 0; - f_status_t status = F_none; + f_status_t status = F_okay; for (; i > 0; --i) { @@ -229,7 +229,7 @@ extern "C" { path->used = i + 1; } - return F_none; + return F_okay; } } else { @@ -258,7 +258,7 @@ extern "C" { path->used = 0; - return F_none; + return F_okay; } #endif // _di_fl_directory_path_pop_ diff --git a/level_1/fl_directory/c/directory.h b/level_1/fl_directory/c/directory.h index 3704f34..5d64f3a 100644 --- a/level_1/fl_directory/c/directory.h +++ b/level_1/fl_directory/c/directory.h @@ -60,7 +60,7 @@ extern "C" { * This is applied to all created directories. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * F_directory_found on success, but the directory already exists. * @@ -109,7 +109,7 @@ extern "C" { * This must not be NULL. * * This alters recurse.state.status: - * F_none on success. + * F_okay on success. * F_data_not if source.used or destination.used is 0. * * F_directory_descriptor (with error bit) on directory file descriptor error. @@ -187,7 +187,7 @@ extern "C" { * Will be populated with the names of all top-level paths found within the given directory. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source.used or destination.used is 0. * F_directory_empty if directory is empty. * @@ -229,7 +229,7 @@ extern "C" { * This will only be NULL terminated if path string is already NULL terminated. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -256,7 +256,7 @@ extern "C" { * This will only be NULL terminated if destination string is already NULL terminated. * * @return - * F_none on success. + * F_okay on success. * F_data_not if source.used is 0. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_1/fl_directory/c/private-directory.c b/level_1/fl_directory/c/private-directory.c index 4d011f7..27d983a 100644 --- a/level_1/fl_directory/c/private-directory.c +++ b/level_1/fl_directory/c/private-directory.c @@ -45,7 +45,7 @@ extern "C" { } } - recurse->state.status = F_none; + recurse->state.status = F_okay; if (recurse->flag & f_directory_recurse_do_flag_list_e) { recurse->action((void *) recurse, recurse->path, f_directory_recurse_do_flag_list_e); @@ -56,7 +56,7 @@ extern "C" { } if (recurse->state.status != F_done && F_status_is_error_not(recurse->state.status)) { - recurse->state.status = F_none; + recurse->state.status = F_okay; } } @@ -126,7 +126,7 @@ extern "C" { for (j = 0; j < 3; ++j) { if (!flag_actions[j] || (recurse->flag & flag_actions[j])) { - recurse->state.status = F_none; + recurse->state.status = F_okay; recurse->action((void *) recurse, list[k]->array[i], flag_actions[j] | flags[k]); @@ -201,7 +201,7 @@ extern "C" { } } else { - recurse->state.status = F_none; + recurse->state.status = F_okay; if (recurse->depth < recurse->depth_max) { ++recurse->depth; @@ -232,7 +232,7 @@ extern "C" { if (F_status_is_error(recurse->state.status) || recurse->state.status == F_done) break; - recurse->state.status = F_none; + recurse->state.status = F_okay; } // for } @@ -252,7 +252,7 @@ extern "C" { struct dirent **entity = 0; - f_status_t status = F_none; + f_status_t status = F_okay; DIR *parent = opendir(path.string); @@ -366,7 +366,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (!length) return F_directory_empty; - return F_none; + return F_okay; } #endif // !defined(_di_fl_directory_do_) || !defined(_di_fl_directory_list_) @@ -380,7 +380,7 @@ extern "C" { f_number_unsigned_t total = 0; f_number_unsigned_t start = 0; f_number_unsigned_t length_truncated = source.used; - f_status_t status = F_none; + f_status_t status = F_okay; { f_number_unsigned_t i = 0; @@ -580,7 +580,7 @@ extern "C" { destination->string[destination->used - 1] = 0; } - return F_none; + return F_okay; } #endif // !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_) diff --git a/level_1/fl_directory/c/private-directory.h b/level_1/fl_directory/c/private-directory.h index e220cbc..320f1c7 100644 --- a/level_1/fl_directory/c/private-directory.h +++ b/level_1/fl_directory/c/private-directory.h @@ -23,7 +23,7 @@ extern "C" { * The directory recurse data. * * This alters recurse.state.status: - * F_none on success. + * F_okay on success. * F_done on success and instructed to end recursion. * * F_interrupt (with error bit) if stopping due to an interrupt. @@ -65,7 +65,7 @@ extern "C" { * The directory recurse data. * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) for any other failure, failures might be populated with individual status codes. * @@ -101,7 +101,7 @@ extern "C" { * Will be populated with the names of all top-level paths found within the given directory. * * @return - * F_none on success. + * F_okay on success. * F_data_not if directory is empty. * * F_directory_descriptor (with error bit) on directory file descriptor error. @@ -142,7 +142,7 @@ extern "C" { * This will only be NULL terminated if destination string is already NULL terminated. * * @return - * F_none on success. + * F_okay on success. * F_data_not if length is 0. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_1/fl_environment/c/environment.c b/level_1/fl_environment/c/environment.c index 859acc0..c9e275d 100644 --- a/level_1/fl_environment/c/environment.c +++ b/level_1/fl_environment/c/environment.c @@ -35,7 +35,7 @@ extern "C" { ++environment->used; - return F_none; + return F_okay; } #endif // _di_fl_environment_load_name_ @@ -74,7 +74,7 @@ extern "C" { ++environment->used; } // for - return F_none; + return F_okay; } #endif // _di_fl_environment_load_names_ @@ -84,7 +84,7 @@ extern "C" { if (!paths) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (!path.used) { @@ -95,7 +95,7 @@ extern "C" { paths->array[paths->used++].used = 0; - return F_none; + return F_okay; } f_number_unsigned_t i = 0; @@ -250,7 +250,7 @@ extern "C" { f_string_dynamic_resize(0, &architecture_bits); #endif // _en_kevux_path_architecture_bits_ - return F_none; + return F_okay; } #endif // _di_fl_environment_path_explode_ @@ -260,7 +260,7 @@ extern "C" { if (!paths) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (!path.used) { @@ -271,7 +271,7 @@ extern "C" { paths->array[paths->used++].used = 0; - return F_none; + return F_okay; } f_number_unsigned_t i = 0; @@ -427,7 +427,7 @@ extern "C" { f_string_dynamic_resize(0, &architecture_bits); #endif // _en_kevux_path_architecture_bits_ - return F_none; + return F_okay; } #endif // _di_fl_environment_path_explode_reverse_ diff --git a/level_1/fl_environment/c/environment.h b/level_1/fl_environment/c/environment.h index 53dd339..b904a98 100644 --- a/level_1/fl_environment/c/environment.h +++ b/level_1/fl_environment/c/environment.h @@ -42,7 +42,7 @@ extern "C" { * An array of maps generated from the loaded environment variable names. * * @return - * F_none on success. + * F_okay on success. * F_data_not if names.used is 0. * F_exist_not if name does not exist. * @@ -76,7 +76,7 @@ extern "C" { * All environment names loaded are appended to this. * * @return - * F_none on success. + * F_okay on success. * F_data_not if names.used is 0. * * Errors (with error bit) from: f_environment_get(). @@ -105,7 +105,7 @@ extern "C" { * Each exploded path is not NULL terminated. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if paths array is too large for further addressing. * F_memory_not (with error bit) on out of memory. @@ -139,7 +139,7 @@ extern "C" { * Each exploded path is not NULL terminated. * * @return - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if paths array is too large for further addressing. * F_memory_not (with error bit) on out of memory. diff --git a/level_1/fl_fss/c/fss/basic.c b/level_1/fl_fss/c/fss/basic.c index 9bc7ac4..5345c45 100644 --- a/level_1/fl_fss/c/fss/basic.c +++ b/level_1/fl_fss/c/fss/basic.c @@ -21,20 +21,20 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { ++range->start; state->status = F_fss_found_content_not; return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -55,7 +55,7 @@ extern "C" { f_fss_skip_past_delimit(buffer, range, state); if (F_status_is_error(state->status)) break; - if (state->status == F_none_eos || state->status == F_none_stop) return; + if (state->status == F_okay_eos || state->status == F_okay_stop) return; if (buffer.string[range->start] == f_fss_basic_close_s.string[0]) break; } // for @@ -82,7 +82,7 @@ extern "C" { } #endif // _di_level_1_parameter_checking_ - state->status = F_none; + state->status = F_okay; f_fss_skip_past_delimit(content, range, state); if (F_status_is_error(state->status)) return; @@ -114,7 +114,7 @@ extern "C" { if (content.string[range->start] == f_fss_eol_s.string[0]) { destination->used = destination_used; - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); return; } @@ -144,8 +144,8 @@ extern "C" { destination->string[destination->used++] = f_fss_basic_close_s.string[0]; } - if (range->start > range->stop) state->status = F_none_stop; - else state->status = F_none_eos; + if (range->start > range->stop) state->status = F_okay_stop; + else state->status = F_okay_eos; } #endif // _di_fl_fss_basic_content_write_ @@ -217,7 +217,7 @@ extern "C" { } if (complete == f_fss_complete_partial_e || complete == f_fss_complete_partial_trim_e || complete == f_fss_complete_full_e || complete == f_fss_complete_full_trim_e || complete == f_fss_complete_trim_e) { - if (state->status == F_none_stop || state->status == F_none_eos || state->status == F_data_not_stop || state->status == F_data_not_eos) { + if (state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_data_not_stop || state->status == F_data_not_eos) { const f_status_t status_original = state->status; if (complete == f_fss_complete_full_trim_e || complete == f_fss_complete_trim_e) { diff --git a/level_1/fl_fss/c/fss/basic.h b/level_1/fl_fss/c/fss/basic.h index c415897..0780d1a 100644 --- a/level_1/fl_fss/c/fss/basic.h +++ b/level_1/fl_fss/c/fss/basic.h @@ -58,8 +58,8 @@ extern "C" { * This alters state.status: * F_fss_found_content on success and content was found (start location is at end of content). * F_fss_found_content_not on success and no content was found (start location is after character designating this is not a content). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -113,15 +113,15 @@ extern "C" { * Error bit designates an error but must be passed along with F_interrupt. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching the range stop. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching the range stop. * F_data_not if content is empty (content.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_skip_past_delimit(). @@ -169,8 +169,8 @@ extern "C" { * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_content_not on success but object ended at the line so there can be no content. * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -237,15 +237,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching the range stop. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching the range stop. * F_data_not if object is empty (object.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_space(). diff --git a/level_1/fl_fss/c/fss/basic_list.c b/level_1/fl_fss/c/fss/basic_list.c index 98ef33a..f65b878 100644 --- a/level_1/fl_fss/c/fss/basic_list.c +++ b/level_1/fl_fss/c/fss/basic_list.c @@ -30,11 +30,11 @@ extern "C" { if (range->start >= buffer.used) { found->array[found->used].stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; } else { found->array[found->used].stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; } return; @@ -273,14 +273,14 @@ extern "C" { if (range->start >= buffer.used) { found->array[found->used].stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->array[found->used].stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -306,7 +306,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_stop || state->status == F_none_eos) { + if (state->status == F_okay_stop || state->status == F_okay_eos) { if (complete == f_fss_complete_full_e || complete == f_fss_complete_full_trim_e || complete == f_fss_complete_end_e) { const f_status_t status = f_string_dynamic_increase(state->step_large, destination); @@ -319,7 +319,7 @@ extern "C" { destination->string[destination->used++] = f_fss_basic_list_close_s.string[0]; } - state->status = state->status == F_none_stop ? F_data_not_stop : F_data_not_eos; + state->status = state->status == F_okay_stop ? F_data_not_stop : F_data_not_eos; return; } @@ -528,13 +528,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= content.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_basic_list_content_write_ @@ -557,7 +557,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { // Move the start position to after the EOL. ++range->start; @@ -566,13 +566,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -587,13 +587,13 @@ extern "C" { f_fss_seek_to_eol(buffer, range, state); if (F_status_is_error(state->status)) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -781,14 +781,14 @@ extern "C" { if (range->start >= buffer.used) { found->stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -824,13 +824,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -861,7 +861,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_stop || state->status == F_none_eos) { + if (state->status == F_okay_stop || state->status == F_okay_eos) { if (complete == f_fss_complete_partial_e || complete == f_fss_complete_partial_trim_e || complete == f_fss_complete_full_e || complete == f_fss_complete_full_trim_e) { { const f_status_t status = f_string_dynamic_increase_by(state->step_small + 2, destination); @@ -880,7 +880,7 @@ extern "C" { } } - state->status = state->status == F_none_stop ? F_data_not_stop : F_data_not_eos; + state->status = state->status == F_okay_stop ? F_data_not_stop : F_data_not_eos; return; } @@ -921,7 +921,7 @@ extern "C" { // Objects will not have leading white spaces, but having this does not result in an invalid object, so just write the provided spaces. if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -931,7 +931,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1000,7 +1000,7 @@ extern "C" { if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1054,13 +1054,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= object.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_basic_list_object_write_ diff --git a/level_1/fl_fss/c/fss/basic_list.h b/level_1/fl_fss/c/fss/basic_list.h index b429eb9..514d023 100644 --- a/level_1/fl_fss/c/fss/basic_list.h +++ b/level_1/fl_fss/c/fss/basic_list.h @@ -63,8 +63,8 @@ extern "C" { * This alters state.status: * F_fss_found_content on success and content was found (start location is at end of content). * F_fss_found_content_not on success and no content was found (start location is after character designating this is not a content). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -129,13 +129,13 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eol on success after reaching the end of the line. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eol on success after reaching the end of the line. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if content is empty (content.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. * F_parameter (with error bit) if a parameter is invalid. @@ -189,8 +189,8 @@ extern "C" { * This alters state.status: * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -254,15 +254,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if object is empty (object.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_graph(). diff --git a/level_1/fl_fss/c/fss/embedded_list.c b/level_1/fl_fss/c/fss/embedded_list.c index 228e2f5..a5d492d 100644 --- a/level_1/fl_fss/c/fss/embedded_list.c +++ b/level_1/fl_fss/c/fss/embedded_list.c @@ -20,7 +20,7 @@ extern "C" { f_fss_skip_past_delimit(buffer, range, state); if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos || state->status == F_none_stop) return; + if (state->status == F_okay_eos || state->status == F_okay_stop) return; state->status = f_memory_array_increase(state->step_small, sizeof(f_fss_nest_t), (void **) &found->depth, &found->used, &found->size); if (F_status_is_error(state->status)) return; @@ -119,7 +119,7 @@ extern "C" { f_string_ranges_resize(0, &objects); f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size); - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -643,9 +643,9 @@ extern "C" { f_memory_array_resize(0, sizeof(f_number_unsigned_t), (void **) &slashes.array, &slashes.used, &slashes.size); if (range->start >= buffer.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else { state->status = F_fss_found_content; @@ -808,10 +808,10 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; } - else if (state->status == F_none_stop) { + else if (state->status == F_okay_stop) { state->status = F_data_not_stop; } @@ -1075,13 +1075,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= content.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_embedded_list_content_write_ @@ -1104,7 +1104,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { // Move the start position to after the EOL. ++range->start; @@ -1113,13 +1113,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -1148,13 +1148,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -1342,14 +1342,14 @@ extern "C" { if (range->start >= buffer.used) { found->stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -1444,10 +1444,10 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; } - else if (state->status == F_none_stop) { + else if (state->status == F_okay_stop) { state->status = F_data_not_stop; } @@ -1514,7 +1514,7 @@ extern "C" { // Objects will not have leading white spaces, but having this does not result in an invalid object, so just write the provided spaces. if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1524,7 +1524,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1600,7 +1600,7 @@ extern "C" { if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1612,7 +1612,7 @@ extern "C" { ends_on_space = F_true; if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1674,13 +1674,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= object.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_embedded_list_object_write_ diff --git a/level_1/fl_fss/c/fss/embedded_list.h b/level_1/fl_fss/c/fss/embedded_list.h index 09d711f..8d7fe21 100644 --- a/level_1/fl_fss/c/fss/embedded_list.h +++ b/level_1/fl_fss/c/fss/embedded_list.h @@ -67,8 +67,8 @@ extern "C" { * This alters state.status: * F_fss_found_content on success and content was found (start location is at end of content). * F_fss_found_content_not on success and no content was found (start location is after character designating this is not a content). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -138,12 +138,12 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if content is empty (content.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. * F_parameter (with error bit) if a parameter is invalid. @@ -197,8 +197,8 @@ extern "C" { * This alters state.status: * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -262,15 +262,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if object is empty (object.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_graph(). diff --git a/level_1/fl_fss/c/fss/extended.c b/level_1/fl_fss/c/fss/extended.c index ece6555..0e66a0d 100644 --- a/level_1/fl_fss/c/fss/extended.c +++ b/level_1/fl_fss/c/fss/extended.c @@ -21,20 +21,20 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { ++range->start; state->status = F_fss_found_content_not; return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -46,7 +46,7 @@ extern "C" { uint8_t content_found = 0; uint8_t quote = 0; - f_status_t status = F_none; + f_status_t status = F_okay; while (range->start <= range->stop && range->start < buffer.used) { @@ -92,7 +92,7 @@ extern "C" { } else if (state->status == F_data_not_eos) { if (content_found) { - state->status = F_none_eos; + state->status = F_okay_eos; } content_found = 2; @@ -101,7 +101,7 @@ extern "C" { } else if (state->status == F_data_not_stop) { if (content_found) { - state->status = F_none_stop; + state->status = F_okay_stop; } content_found = 2; @@ -160,7 +160,7 @@ extern "C" { return; } - f_status_t status = F_none; + f_status_t status = F_okay; if (state->status == F_data_not_stop || state->status == F_data_not_eos) { @@ -183,7 +183,7 @@ extern "C" { destination->string[destination->used++] = f_fss_extended_close_s.string[0]; } - state->status = (state->status == F_data_not_stop) ? F_none_stop : F_none_eos; + state->status = (state->status == F_data_not_stop) ? F_okay_stop : F_okay_eos; return; } @@ -258,7 +258,7 @@ void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t return; } - f_status_t status = F_none; + f_status_t status = F_okay; if (state->status == F_data_not_stop || state->status == F_data_not_eos) { @@ -277,8 +277,8 @@ void fl_fss_extended_object_write(const f_string_static_t object, const uint8_t } if (complete == f_fss_complete_partial_e || complete == f_fss_complete_partial_trim_e || complete == f_fss_complete_full_e || complete == f_fss_complete_full_trim_e || complete == f_fss_complete_trim_e) { - if (state->status == F_none_stop || state->status == F_none_eos || state->status == F_data_not_stop || state->status == F_data_not_eos) { - status = F_none; + if (state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_data_not_stop || state->status == F_data_not_eos) { + status = F_okay; if (complete == f_fss_complete_full_trim_e || complete == f_fss_complete_trim_e) { private_fl_fss_basic_write_object_trim(quote ? quote : f_fss_quote_double_s.string[0], destination_used, destination, state); diff --git a/level_1/fl_fss/c/fss/extended.h b/level_1/fl_fss/c/fss/extended.h index c030d62..53dcd80 100644 --- a/level_1/fl_fss/c/fss/extended.h +++ b/level_1/fl_fss/c/fss/extended.h @@ -61,8 +61,8 @@ extern "C" { * This alters state.status: * F_fss_found_content on success and content was found (start location is at end of content). * F_fss_found_content_not on success and no content was found (start location is after character designating this is not a content). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -127,15 +127,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching the range stop. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching the range stop. * F_data_not if content is empty (content.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_space(). @@ -192,8 +192,8 @@ extern "C" { * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_content_not on success but object ended at the line so there can be no content. * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -261,15 +261,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching the range stop. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching the range stop. * F_data_not if object is empty (object.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_space(). diff --git a/level_1/fl_fss/c/fss/extended_list.c b/level_1/fl_fss/c/fss/extended_list.c index 1a53a71..2a57565 100644 --- a/level_1/fl_fss/c/fss/extended_list.c +++ b/level_1/fl_fss/c/fss/extended_list.c @@ -30,11 +30,11 @@ extern "C" { if (range->start >= buffer.used) { found->array[found->used].stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; } else { found->array[found->used].stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; } return; @@ -61,13 +61,13 @@ extern "C" { f_fss_skip_past_space(buffer, range, state); if (F_status_is_error(state->status)) break; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { newline_last = range->start++; continue; } - if (state->status == F_none_eos || state->status == F_none_stop) break; + if (state->status == F_okay_eos || state->status == F_okay_stop) break; if (buffer.string[range->start] == f_fss_slash_s.string[0]) { slash_first = range->start; @@ -240,10 +240,10 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; } - else if (state->status == F_none_stop) { + else if (state->status == F_okay_stop) { state->status = F_data_not_stop; } @@ -515,13 +515,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= content.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_extended_list_content_write_ @@ -544,7 +544,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { // Move the start position to after the EOL. ++range->start; @@ -553,13 +553,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -588,13 +588,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -781,14 +781,14 @@ extern "C" { if (range->start >= buffer.used) { found->stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -883,10 +883,10 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; } - else if (state->status == F_none_stop) { + else if (state->status == F_okay_stop) { state->status = F_data_not_stop; } @@ -954,7 +954,7 @@ extern "C" { // Objects will not have leading white spaces, but having this does not result in an invalid object, so just write the provided spaces. if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -964,7 +964,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1040,7 +1040,7 @@ extern "C" { if (object.string[range->start] != f_fss_placeholder_s.string[0]) { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1052,7 +1052,7 @@ extern "C" { ends_on_space = F_true; if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1114,13 +1114,13 @@ extern "C" { } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; } else if (range->start >= object.used) { - state->status = F_none_eos; + state->status = F_okay_eos; } else { - state->status = F_none; + state->status = F_okay; } } #endif // _di_fl_fss_extended_list_object_write_ diff --git a/level_1/fl_fss/c/fss/extended_list.h b/level_1/fl_fss/c/fss/extended_list.h index 729ca31..a8d962d 100644 --- a/level_1/fl_fss/c/fss/extended_list.h +++ b/level_1/fl_fss/c/fss/extended_list.h @@ -65,8 +65,8 @@ extern "C" { * This alters state.status: * F_fss_found_content on success and content was found (start location is at end of content). * F_fss_found_content_not on success and no content was found (start location is after character designating this is not a content). - * F_none_eos on success after reaching the end of the buffer (a valid content is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid content is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid content is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid content is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no content found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no content found after reaching stopping point (essentially only comments are found). @@ -136,12 +136,12 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if content is empty (content.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. * F_parameter (with error bit) if a parameter is invalid. @@ -195,8 +195,8 @@ extern "C" { * This alters state.status: * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -260,15 +260,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if object is empty (object.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. - * F_none_stop on success after reaching stopping point. + * F_okay_stop on success after reaching stopping point. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_graph(). diff --git a/level_1/fl_fss/c/private-fss.c b/level_1/fl_fss/c/private-fss.c index 2003f54..f35e326 100644 --- a/level_1/fl_fss/c/private-fss.c +++ b/level_1/fl_fss/c/private-fss.c @@ -8,7 +8,7 @@ extern "C" { #if !defined(_di_fl_fss_basic_list_content_write_) || !defined(_di_fl_fss_extended_list_content_write_) || !defined(_di_fl_fss_embedded_list_content_write_) void private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t * const range, f_string_dynamic_t * const destination, f_state_t * const state) { - state->status = F_none; + state->status = F_okay; for (; range->start <= range->stop && range->start < buffer.used; ++range->start) { @@ -35,7 +35,7 @@ extern "C" { f_number_unsigned_t i = 0; uint8_t width = 0; - state->status = F_none; + state->status = F_okay; for (; destination_range.start < destination->used; ++destination_range.start) { @@ -106,7 +106,7 @@ extern "C" { } } - state->status = F_none; + state->status = F_okay; } #endif // !defined(_di_fl_fss_basic_list_object_write_) || !defined(_di_fl_fss_extended_list_object_write_) @@ -117,7 +117,7 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eol) { + if (state->status == F_okay_eol) { // Move the start position to after the EOL. ++range->start; @@ -126,13 +126,13 @@ extern "C" { return; } - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; @@ -243,14 +243,14 @@ extern "C" { if (range->start >= buffer.used) { found->stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -410,13 +410,13 @@ extern "C" { } if (++range->start >= buffer.used) { - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -625,14 +625,14 @@ extern "C" { if (range->start >= buffer.used) { found->stop = buffer.used - 1; - state->status = F_none_eos; + state->status = F_okay_eos; return; } if (range->start > range->stop) { found->stop = range->stop; - state->status = F_none_stop; + state->status = F_okay_stop; return; } @@ -674,7 +674,7 @@ extern "C" { } } else { - state->status = F_none; + state->status = F_okay; while (range->start <= range->stop && range->start < buffer.used) { @@ -734,20 +734,20 @@ extern "C" { if (F_status_is_error(state->status)) return; if (state->status == F_data_not) return; - if (state->status == F_none_eos) { + if (state->status == F_okay_eos) { state->status = F_data_not_eos; return; } - if (state->status == F_none_stop) { + if (state->status == F_okay_stop) { state->status = F_data_not_stop; return; } - if (state->status == F_none_eol) { - state->status = F_status_set_error(F_none_eol); + if (state->status == F_okay_eol) { + state->status = F_status_set_error(F_okay_eol); return; } @@ -841,7 +841,7 @@ extern "C" { } if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -872,7 +872,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -934,7 +934,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -997,7 +997,7 @@ extern "C" { } else { if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1024,7 +1024,7 @@ extern "C" { } // for } else if (object.string[range->start] == f_fss_eol_s.string[0]) { - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); break; } @@ -1107,7 +1107,7 @@ extern "C" { if (object.string[i] == f_fss_eol_s.string[0]) { destination->used = used_start; - state->status = F_status_set_error(F_none_eol); + state->status = F_status_set_error(F_okay_eol); return; } @@ -1119,8 +1119,8 @@ extern "C" { destination->string[used_start] = f_fss_slash_s.string[0]; } - if (range->start > range->stop) state->status = F_none_stop; - else state->status = F_none_eos; + if (range->start > range->stop) state->status = F_okay_stop; + else state->status = F_okay_eos; } #endif // !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_) || !defined(_di_fl_fss_extended_content_write_) @@ -1272,7 +1272,7 @@ extern "C" { } } - state->status = F_none; + state->status = F_okay; } #endif // !defined(_di_fl_fss_basic_object_write_) || !defined(_di_fl_fss_extended_object_write_) diff --git a/level_1/fl_fss/c/private-fss.h b/level_1/fl_fss/c/private-fss.h index f82933f..a966e18 100644 --- a/level_1/fl_fss/c/private-fss.h +++ b/level_1/fl_fss/c/private-fss.h @@ -35,7 +35,7 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) if stopping due to an interrupt. * @@ -68,7 +68,7 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) if stopping due to an interrupt. * @@ -121,8 +121,8 @@ extern "C" { * This alters state.status: * F_fss_found_object on success and object was found (start location is at end of object). * F_fss_found_object_not on success and no object was found (start location is after character designating this is not an object). - * F_none_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). - * F_none_stop on success after reaching stopping point (a valid object is not yet confirmed). + * F_okay_eos on success after reaching the end of the buffer (a valid object is not yet confirmed). + * F_okay_stop on success after reaching stopping point (a valid object is not yet confirmed). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no objects found after reaching the end of the buffer (essentially only comments are found). * F_data_not_stop no data found after reaching stopping point (essentially only comments are found). @@ -131,7 +131,7 @@ extern "C" { * * F_fss_found_object_content_not (with error bit) If an unterminated quoted Object is found. * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_memory_array_increase(). @@ -192,15 +192,15 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching the range stop. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching the range stop. * F_data_not if object is empty (object.used is 0). * F_data_not_stop no data to write due start location being greater than stop location. * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * * F_interrupt (with error bit) if stopping due to an interrupt. - * F_none_eol (with error bit) after reaching an EOL, which is not supported by the standard. + * F_okay_eol (with error bit) after reaching an EOL, which is not supported by the standard. * F_parameter (with error bit) if a parameter is invalid. * * Errors (with error bit) from: f_fss_is_space(). @@ -245,7 +245,7 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) if stopping due to an interrupt. * diff --git a/level_1/fl_iki/c/iki.h b/level_1/fl_iki/c/iki.h index 14495a2..953396a 100644 --- a/level_1/fl_iki/c/iki.h +++ b/level_1/fl_iki/c/iki.h @@ -49,9 +49,9 @@ extern "C" { * This must not be NULL. * * This alters state.status: - * F_none on success and an IKI vocabulary name was found. - * F_none_stop on success and an IKI vocabulary name was found and stop point was reached. - * F_none_eos on success and an IKI vocabulary name was found and end of string was reached. + * F_okay on success and an IKI vocabulary name was found. + * F_okay_stop on success and an IKI vocabulary name was found and stop point was reached. + * F_okay_eos on success and an IKI vocabulary name was found and end of string was reached. * F_complete_not_utf_eos on success and EOS was reached, but at an incomplete UTF-8 sequence. * F_complete_not_utf_stop on success and stop point was reached, but at an incomplete UTF-8 sequence. * F_data_not_eos on success and EOS was reached, but there were no IKI vocabularie names found. diff --git a/level_1/fl_path/c/path.c b/level_1/fl_path/c/path.c index c18fb83..d7ffe5a 100644 --- a/level_1/fl_path/c/path.c +++ b/level_1/fl_path/c/path.c @@ -10,13 +10,13 @@ extern "C" { if (!canonical) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (!path.used) { status = f_path_current(F_true, canonical); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } f_number_unsigned_t at = 0; @@ -36,7 +36,7 @@ extern "C" { status = f_path_current(F_true, canonical); if (F_status_is_error(status)) return status; - if (!path.string[0]) return F_none; + if (!path.string[0]) return F_okay; at = 0; } @@ -137,7 +137,7 @@ extern "C" { --canonical->used; } - return F_none; + return F_okay; } #endif // _di_fl_path_canonical_ diff --git a/level_1/fl_path/c/path.h b/level_1/fl_path/c/path.h index 19d6fdc..b770804 100644 --- a/level_1/fl_path/c/path.h +++ b/level_1/fl_path/c/path.h @@ -44,7 +44,7 @@ extern "C" { * This will be NULL terminated at canonical->used + 1. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_path_current(). * Errors (with error bit) from: f_string_append(). diff --git a/level_1/fl_path/tests/unit/c/test-path-canonical.c b/level_1/fl_path/tests/unit/c/test-path-canonical.c index 112c11c..649a40e 100644 --- a/level_1/fl_path/tests/unit/c/test-path-canonical.c +++ b/level_1/fl_path/tests/unit/c/test-path-canonical.c @@ -103,7 +103,7 @@ void test__fll_path_canonical__back_paths(void **state) { const f_status_t status = fl_path_canonical(contents[i], &path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); // Assert_string_equal() is NULL terminated, so ensure NULL termination at end of path.used. path.string[path.used] = 0; @@ -162,7 +162,7 @@ void test__fll_path_canonical__empty_becomes_pwd(void **state) { { const f_status_t status = fl_path_canonical(f_string_empty_s, &path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(pwd_length, path.used); assert_string_equal(pwd, path.string); } // for @@ -229,7 +229,7 @@ void test__fll_path_canonical__present_paths(void **state) { const f_status_t status = fl_path_canonical(contents[i], &path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); // Assert_string_equal() is NULL terminated, so ensure NULL termination at end of path.used. path.string[path.used] = 0; @@ -318,11 +318,11 @@ void test__fll_path_canonical__root_paths(void **state) { const f_status_t status = fl_path_canonical(contents[i], &path); // Assert_string_equal() is NULL terminated, so ensure NULL termination at end of path.used. - if (status == F_none) { + if (status == F_okay) { path.string[path.used] = 0; } - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(expected[i].used, path.used); assert_string_equal(expected[i].string, path.string); } // for @@ -425,7 +425,7 @@ void test__fll_path_canonical__tilde_remains(void **state) { const f_status_t status = fl_path_canonical(contents[i], &path); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); // Assert_string_equal() is NULL terminated, so ensure NULL termination at end of path.used. path.string[path.used] = 0; diff --git a/level_1/fl_print/c/print.c b/level_1/fl_print/c/print.c index c6a25a7..e412384 100644 --- a/level_1/fl_print/c/print.c +++ b/level_1/fl_print/c/print.c @@ -11,7 +11,7 @@ extern "C" { if (!file.stream) return F_stream_not; if (!string) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; va_list ap; @@ -23,7 +23,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fl_print_format_ @@ -46,7 +46,7 @@ extern "C" { return private_fl_print_format_convert(string, file, ap, status); } - f_status_t status_local = F_none; + f_status_t status_local = F_okay; return private_fl_print_format_convert(string, file, ap, &status_local); } @@ -58,12 +58,12 @@ extern "C" { if (!file.stream) return F_stream_not; if (!string) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; private_fl_print_format_convert(string, file, ap, &status); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fl_print_string_va_ diff --git a/level_1/fl_print/c/print.h b/level_1/fl_print/c/print.h index 3f19381..9a5a955 100644 --- a/level_1/fl_print/c/print.h +++ b/level_1/fl_print/c/print.h @@ -192,7 +192,7 @@ extern "C" { * Additional arguments relating to the string. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -253,7 +253,7 @@ extern "C" { * * The status parameter will be set as follows: * - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -306,7 +306,7 @@ extern "C" { * The va_start(ap, string) and va_end(ap) is required to be called outside this function. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -359,7 +359,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -403,7 +403,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -444,7 +444,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -485,7 +485,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -526,7 +526,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -571,7 +571,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -614,7 +614,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -656,7 +656,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -699,7 +699,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -746,7 +746,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -791,7 +791,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -835,7 +835,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -883,7 +883,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -935,7 +935,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -985,7 +985,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1034,7 +1034,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1079,7 +1079,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1128,7 +1128,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1175,7 +1175,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1221,7 +1221,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1273,7 +1273,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1329,7 +1329,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1383,7 +1383,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1436,7 +1436,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1487,7 +1487,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1540,7 +1540,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1591,7 +1591,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1641,7 +1641,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1692,7 +1692,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1747,7 +1747,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1799,7 +1799,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1851,7 +1851,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1898,7 +1898,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1949,7 +1949,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -1997,7 +1997,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * @@ -2045,7 +2045,7 @@ extern "C" { * The file stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * F_stream_not if file.stream is NULL. * diff --git a/level_1/fl_print/c/private-print.c b/level_1/fl_print/c/private-print.c index 2d4abc7..8e82087 100644 --- a/level_1/fl_print/c/private-print.c +++ b/level_1/fl_print/c/private-print.c @@ -28,7 +28,7 @@ extern "C" { return string; } - *status = F_none; + *status = F_okay; uint8_t base = 10; uint32_t flag = 0; @@ -1204,7 +1204,7 @@ extern "C" { f_number_unsigned_t in = 0; f_number_unsigned_t in2 = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < stop) { @@ -1307,7 +1307,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < stop) { @@ -1352,7 +1352,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < stop; k += macro_f_utf_byte_width(string[k])) { @@ -1457,7 +1457,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_) @@ -1473,7 +1473,7 @@ extern "C" { f_number_unsigned_t in = 0; f_number_unsigned_t in2 = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < stop) { @@ -1554,7 +1554,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < stop) { @@ -1592,7 +1592,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < stop; k += macro_f_utf_byte_width(string[k])) { @@ -1663,7 +1663,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_) @@ -1679,7 +1679,7 @@ extern "C" { f_number_unsigned_t in = 0; f_number_unsigned_t in2 = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < stop) { @@ -1759,7 +1759,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = j; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < stop) { @@ -1796,7 +1796,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < stop; k += macro_f_utf_byte_width(string[k])) { @@ -1855,7 +1855,7 @@ extern "C" { } i = stop; - status = F_none; + status = F_okay; break; } @@ -1924,7 +1924,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_) @@ -1940,7 +1940,7 @@ extern "C" { f_number_unsigned_t in = 0; f_number_unsigned_t in2 = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < stop) { @@ -2021,7 +2021,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < stop) { @@ -2059,7 +2059,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < stop; k += macro_f_utf_byte_width(string[k])) { @@ -2118,7 +2118,7 @@ extern "C" { } i = stop; - status = F_none; + status = F_okay; break; } @@ -2183,7 +2183,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_) @@ -2195,7 +2195,7 @@ extern "C" { f_number_unsigned_t k = 0; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < length) { @@ -2254,7 +2254,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < length) { @@ -2278,7 +2278,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < length; k += macro_f_utf_byte_width(string[k])) { @@ -2363,7 +2363,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_) @@ -2375,7 +2375,7 @@ extern "C" { f_number_unsigned_t k = 0; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < length) { @@ -2414,7 +2414,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < length) { @@ -2431,7 +2431,7 @@ extern "C" { // Search for the next non-NULL character and check if it is a combining character. if (status == F_true) { - status = F_none; + status = F_okay; for (k = j + macro_f_utf_byte_width(string[j]); k < length; k += macro_f_utf_byte_width(string[k])) { @@ -2482,7 +2482,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_) @@ -2494,7 +2494,7 @@ extern "C" { f_number_unsigned_t k = 0; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < length) { @@ -2533,7 +2533,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = i; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < length) { @@ -2587,7 +2587,7 @@ extern "C" { } i = length; - status = F_none; + status = F_okay; break; } @@ -2656,7 +2656,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_) @@ -2668,7 +2668,7 @@ extern "C" { f_number_unsigned_t k = 0; f_number_unsigned_t previous = 0; - f_status_t status = F_none; + f_status_t status = F_okay; // Skip past leading white space. while (i < length) { @@ -2705,7 +2705,7 @@ extern "C" { if (status == F_true || !string[i]) { previous = j; j = i + macro_f_utf_byte_width(string[i]); - status = F_none; + status = F_okay; while (j < length) { @@ -2759,7 +2759,7 @@ extern "C" { } i = length; - status = F_none; + status = F_okay; break; } @@ -2824,7 +2824,7 @@ extern "C" { i += macro_f_utf_byte_width(string[i]); } // while - return F_none; + return F_okay; } #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_) diff --git a/level_1/fl_print/c/private-print.h b/level_1/fl_print/c/private-print.h index ddcc65e..b117f67 100644 --- a/level_1/fl_print/c/private-print.h +++ b/level_1/fl_print/c/private-print.h @@ -36,7 +36,7 @@ extern "C" { * * The status parameter will be set as follows: * - * F_none on success. + * F_okay on success. * * F_eos (with error bit) on failure because end of string found and cannot process further. * F_output (with error bit) on failure to print to the output file. @@ -96,7 +96,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_complete_not_utf_stop (with error bit) if character is an incomplete UTF-8 fragment at end of the string. @@ -145,7 +145,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. @@ -192,7 +192,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. @@ -240,7 +240,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. @@ -280,7 +280,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_complete_not_utf_stop (with error bit) if character is an incomplete UTF-8 fragment at end of the string. @@ -318,7 +318,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. @@ -354,7 +354,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. @@ -391,7 +391,7 @@ extern "C" { * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but there is nothing to print. * * F_output (with error bit) on failure to print to the output file. diff --git a/level_1/fl_status_string/c/status_string.c b/level_1/fl_status_string/c/status_string.c index c42df33..7596fac 100644 --- a/level_1/fl_status_string/c/status_string.c +++ b/level_1/fl_status_string/c/status_string.c @@ -10,7 +10,7 @@ extern "C" { if (!code) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (!name.used) return F_data_not; @@ -22,3072 +22,3102 @@ extern "C" { if (f_compare_dynamic(name, f_status_false_s) == F_equal_to) { *code = F_false; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_true_s) == F_equal_to) { *code = F_true; - return F_none; + return F_okay; } // Signal. if (f_compare_dynamic(name, f_status_signal_hangup_s) == F_equal_to) { *code = F_signal_hangup; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_interrupt_s) == F_equal_to) { *code = F_signal_interrupt; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_quit_s) == F_equal_to) { *code = F_signal_quit; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_illegal_s) == F_equal_to) { *code = F_signal_illegal; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_trap_s) == F_equal_to) { *code = F_signal_trap; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_abort_s) == F_equal_to) { *code = F_signal_abort; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_bus_error_s) == F_equal_to) { *code = F_signal_bus_error; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_floating_point_error_s) == F_equal_to) { *code = F_signal_floating_point_error; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_kill_s) == F_equal_to) { *code = F_signal_kill; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_user_1_s) == F_equal_to) { *code = F_signal_user_1; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_segmentation_fault_s) == F_equal_to) { *code = F_signal_segmentation_fault; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_user_2_s) == F_equal_to) { *code = F_signal_user_2; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_broken_pipe_s) == F_equal_to) { *code = F_signal_broken_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_alarm_clock_s) == F_equal_to) { *code = F_signal_alarm_clock; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_termination_s) == F_equal_to) { *code = F_signal_termination; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_stack_fault_s) == F_equal_to) { *code = F_signal_stack_fault; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_child_s) == F_equal_to) { *code = F_signal_child; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_continue_s) == F_equal_to) { *code = F_signal_continue; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_stop_s) == F_equal_to) { *code = F_signal_stop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_keyboard_stop_s) == F_equal_to) { *code = F_signal_keyboard_stop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_tty_in_s) == F_equal_to) { *code = F_signal_tty_in; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_tty_out_s) == F_equal_to) { *code = F_signal_tty_out; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_urgent_s) == F_equal_to) { *code = F_signal_urgent; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_cpu_limit_s) == F_equal_to) { *code = F_signal_cpu_limit; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_file_size_limit_s) == F_equal_to) { *code = F_signal_file_size_limit; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_virtual_alarm_clock_s) == F_equal_to) { *code = F_signal_virtual_alarm_clock; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_profile_alarm_clock_s) == F_equal_to) { *code = F_signal_profile_alarm_clock; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_window_size_change_s) == F_equal_to) { *code = F_signal_window_size_change; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_pollable_event_s) == F_equal_to) { *code = F_signal_pollable_event; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_power_failure_s) == F_equal_to) { *code = F_signal_power_failure; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_bad_system_call_s) == F_equal_to) { *code = F_signal_bad_system_call; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_32_s) == F_equal_to) { *code = F_signal_reserved_32; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_33_s) == F_equal_to) { *code = F_signal_reserved_33; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_34_s) == F_equal_to) { *code = F_signal_reserved_34; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_35_s) == F_equal_to) { *code = F_signal_reserved_35; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_36_s) == F_equal_to) { *code = F_signal_reserved_36; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_37_s) == F_equal_to) { *code = F_signal_reserved_37; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_38_s) == F_equal_to) { *code = F_signal_reserved_38; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_39_s) == F_equal_to) { *code = F_signal_reserved_39; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_40_s) == F_equal_to) { *code = F_signal_reserved_40; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_41_s) == F_equal_to) { *code = F_signal_reserved_41; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_42_s) == F_equal_to) { *code = F_signal_reserved_42; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_43_s) == F_equal_to) { *code = F_signal_reserved_43; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_44_s) == F_equal_to) { *code = F_signal_reserved_44; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_45_s) == F_equal_to) { *code = F_signal_reserved_45; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_46_s) == F_equal_to) { *code = F_signal_reserved_46; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_47_s) == F_equal_to) { *code = F_signal_reserved_47; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_48_s) == F_equal_to) { *code = F_signal_reserved_48; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_49_s) == F_equal_to) { *code = F_signal_reserved_49; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_50_s) == F_equal_to) { *code = F_signal_reserved_50; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_51_s) == F_equal_to) { *code = F_signal_reserved_51; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_52_s) == F_equal_to) { *code = F_signal_reserved_52; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_53_s) == F_equal_to) { *code = F_signal_reserved_53; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_54_s) == F_equal_to) { *code = F_signal_reserved_54; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_55_s) == F_equal_to) { *code = F_signal_reserved_55; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_56_s) == F_equal_to) { *code = F_signal_reserved_56; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_57_s) == F_equal_to) { *code = F_signal_reserved_57; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_58_s) == F_equal_to) { *code = F_signal_reserved_58; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_59_s) == F_equal_to) { *code = F_signal_reserved_59; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_60_s) == F_equal_to) { *code = F_signal_reserved_60; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_61_s) == F_equal_to) { *code = F_signal_reserved_61; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_62_s) == F_equal_to) { *code = F_signal_reserved_62; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_63_s) == F_equal_to) { *code = F_signal_reserved_63; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_reserved_64_s) == F_equal_to) { *code = F_signal_reserved_64; - return F_none; + return F_okay; } // Basic. - if (f_compare_dynamic(name, f_status_none_s) == F_equal_to) { - *code = F_none; + if (f_compare_dynamic(name, f_status_okay_s) == F_equal_to) { + *code = F_okay; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_block_s) == F_equal_to) { + *code = F_okay_block; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_eoa_s) == F_equal_to) { + *code = F_okay_eoa; - return F_none; + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_eof_s) == F_equal_to) { + *code = F_okay_eof; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_eol_s) == F_equal_to) { + *code = F_okay_eol; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_eos_s) == F_equal_to) { + *code = F_okay_eos; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_not_s) == F_equal_to) { + *code = F_okay_not; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_start_s) == F_equal_to) { + *code = F_okay_start; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_okay_stop_s) == F_equal_to) { + *code = F_okay_stop; + + return F_okay; } if (f_compare_dynamic(name, f_status_abort_s) == F_equal_to) { *code = F_abort; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_abort_not_s) == F_equal_to) { *code = F_abort_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_absolute_s) == F_equal_to) { *code = F_absolute; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_absolute_not_s) == F_equal_to) { *code = F_absolute_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_address_s) == F_equal_to) { *code = F_address; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_address_not_s) == F_equal_to) { *code = F_address_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_again_s) == F_equal_to) { *code = F_again; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_again_not_s) == F_equal_to) { *code = F_again_not; - return F_none; + return F_okay; + } + + if (f_compare_dynamic(name, f_status_all_s) == F_equal_to) { + *code = F_all; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_all_not_s) == F_equal_to) { + *code = F_all_not; + + return F_okay; } if (f_compare_dynamic(name, f_status_ascii_s) == F_equal_to) { *code = F_ascii; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_ascii_not_s) == F_equal_to) { *code = F_ascii_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_atomic_s) == F_equal_to) { *code = F_atomic; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_atomic_not_s) == F_equal_to) { *code = F_atomic_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_base_s) == F_equal_to) { *code = F_base; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_base_not_s) == F_equal_to) { *code = F_base_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_begin_s) == F_equal_to) { *code = F_begin; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_begin_not_s) == F_equal_to) { *code = F_begin_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_block_s) == F_equal_to) { *code = F_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_block_not_s) == F_equal_to) { *code = F_block_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_body_s) == F_equal_to) { *code = F_body; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_body_not_s) == F_equal_to) { *code = F_body_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_bottom_s) == F_equal_to) { *code = F_bottom; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_bottom_not_s) == F_equal_to) { *code = F_bottom_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_bound_s) == F_equal_to) { *code = F_bound; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_bound_not_s) == F_equal_to) { *code = F_bound_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_break_s) == F_equal_to) { *code = F_break; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_break_not_s) == F_equal_to) { *code = F_break_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_call_s) == F_equal_to) { *code = F_call; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_call_not_s) == F_equal_to) { *code = F_call_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_capability_s) == F_equal_to) { *code = F_capability; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_capability_not_s) == F_equal_to) { *code = F_capability_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_child_s) == F_equal_to) { *code = F_child; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_character_s) == F_equal_to) { *code = F_character; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_character_not_s) == F_equal_to) { *code = F_character_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_child_not_s) == F_equal_to) { *code = F_child_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_s) == F_equal_to) { *code = F_complete; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_s) == F_equal_to) { *code = F_complete_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_connect_s) == F_equal_to) { *code = F_connect; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_connect_not_s) == F_equal_to) { *code = F_connect_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_connect_refuse_s) == F_equal_to) { *code = F_connect_refuse; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_connect_reset_s) == F_equal_to) { *code = F_connect_reset; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_container_s) == F_equal_to) { *code = F_container; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_container_not_s) == F_equal_to) { *code = F_container_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_content_s) == F_equal_to) { *code = F_content; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_content_not_s) == F_equal_to) { *code = F_content_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_continue_s) == F_equal_to) { *code = F_continue; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_continue_not_s) == F_equal_to) { *code = F_continue_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_control_s) == F_equal_to) { *code = F_control; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_control_not_s) == F_equal_to) { *code = F_control_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_control_group_s) == F_equal_to) { *code = F_control_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_control_group_not_s) == F_equal_to) { *code = F_control_group_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_critical_s) == F_equal_to) { *code = F_critical; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_critical_not_s) == F_equal_to) { *code = F_critical_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_dead_s) == F_equal_to) { *code = F_dead; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_dead_not_s) == F_equal_to) { *code = F_dead_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_deadlock_s) == F_equal_to) { *code = F_deadlock; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_deadlock_not_s) == F_equal_to) { *code = F_deadlock_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_descriptor_s) == F_equal_to) { *code = F_descriptor; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_descriptor_not_s) == F_equal_to) { *code = F_descriptor_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_desire_s) == F_equal_to) { *code = F_desire; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_desire_not_s) == F_equal_to) { *code = F_desire_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_device_s) == F_equal_to) { *code = F_device; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_device_not_s) == F_equal_to) { *code = F_device_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_disable_s) == F_equal_to) { *code = F_disable; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_disable_not_s) == F_equal_to) { *code = F_disable_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_discard_s) == F_equal_to) { *code = F_discard; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_discard_not_s) == F_equal_to) { *code = F_discard_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_drop_s) == F_equal_to) { *code = F_drop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_drop_not_s) == F_equal_to) { *code = F_drop_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_domain_s) == F_equal_to) { *code = F_domain; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_domain_not_s) == F_equal_to) { *code = F_domain_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_done_s) == F_equal_to) { *code = F_done; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_done_not_s) == F_equal_to) { *code = F_done_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_dummy_s) == F_equal_to) { *code = F_dummy; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_dummy_not_s) == F_equal_to) { *code = F_dummy_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_empty_s) == F_equal_to) { *code = F_empty; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_empty_not_s) == F_equal_to) { *code = F_empty_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_enable_s) == F_equal_to) { *code = F_enable; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_enable_not_s) == F_equal_to) { *code = F_enable_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_encoding_s) == F_equal_to) { *code = F_encoding; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_encoding_not_s) == F_equal_to) { *code = F_encoding_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_endian_s) == F_equal_to) { *code = F_endian; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_endian_big_s) == F_equal_to) { *code = F_endian_big; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_endian_little_s) == F_equal_to) { *code = F_endian_little; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_endian_not_s) == F_equal_to) { *code = F_endian_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eoa_s) == F_equal_to) { *code = F_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eoa_not_s) == F_equal_to) { *code = F_eoa_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eof_s) == F_equal_to) { *code = F_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eof_not_s) == F_equal_to) { *code = F_eof_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eol_s) == F_equal_to) { *code = F_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eol_not_s) == F_equal_to) { *code = F_eol_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eos_s) == F_equal_to) { *code = F_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_eos_not_s) == F_equal_to) { *code = F_eos_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_execute_s) == F_equal_to) { *code = F_execute; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_execute_not_s) == F_equal_to) { *code = F_execute_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_exist_s) == F_equal_to) { *code = F_exist; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_exist_not_s) == F_equal_to) { *code = F_exist_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_exit_s) == F_equal_to) { *code = F_exit; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_exit_not_s) == F_equal_to) { *code = F_exit_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_failure_s) == F_equal_to) { *code = F_failure; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_failure_not_s) == F_equal_to) { *code = F_failure_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_family_s) == F_equal_to) { *code = F_family; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_family_not_s) == F_equal_to) { *code = F_family_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fifo_s) == F_equal_to) { *code = F_fifo; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fifo_not_s) == F_equal_to) { *code = F_fifo_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_first_s) == F_equal_to) { *code = F_first; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_first_not_s) == F_equal_to) { *code = F_first_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_footer_s) == F_equal_to) { *code = F_footer; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_footer_not_s) == F_equal_to) { *code = F_footer_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fork_s) == F_equal_to) { *code = F_fork; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fork_not_s) == F_equal_to) { *code = F_fork_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_format_s) == F_equal_to) { *code = F_format; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_format_not_s) == F_equal_to) { *code = F_format_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_found_s) == F_equal_to) { *code = F_found; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_found_not_s) == F_equal_to) { *code = F_found_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_full_s) == F_equal_to) { *code = F_full; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_full_not_s) == F_equal_to) { *code = F_full_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_group_s) == F_equal_to) { *code = F_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_group_not_s) == F_equal_to) { *code = F_group_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_halt_s) == F_equal_to) { *code = F_halt; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_halt_not_s) == F_equal_to) { *code = F_halt_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_header_s) == F_equal_to) { *code = F_header; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_header_not_s) == F_equal_to) { *code = F_header_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_help_s) == F_equal_to) { *code = F_help; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_help_not_s) == F_equal_to) { *code = F_help_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_ignore_s) == F_equal_to) { *code = F_ignore; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_ignore_not_s) == F_equal_to) { *code = F_ignore_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_implement_s) == F_equal_to) { *code = F_implement; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_implement_not_s) == F_equal_to) { *code = F_implement_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_input_s) == F_equal_to) { *code = F_input; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_input_not_s) == F_equal_to) { *code = F_input_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_input_output_s) == F_equal_to) { *code = F_input_output; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_interrupt_s) == F_equal_to) { *code = F_interrupt; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_interrupt_not_s) == F_equal_to) { *code = F_interrupt_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_keep_s) == F_equal_to) { *code = F_keep; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_keep_not_s) == F_equal_to) { *code = F_keep_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_known_s) == F_equal_to) { *code = F_known; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_known_not_s) == F_equal_to) { *code = F_known_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_last_s) == F_equal_to) { *code = F_last; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_last_not_s) == F_equal_to) { *code = F_last_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_limit_s) == F_equal_to) { *code = F_limit; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_limit_not_s) == F_equal_to) { *code = F_limit_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_link_s) == F_equal_to) { *code = F_link; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_link_not_s) == F_equal_to) { *code = F_link_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_live_s) == F_equal_to) { *code = F_live; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_live_not_s) == F_equal_to) { *code = F_live_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_local_s) == F_equal_to) { *code = F_local; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_local_not_s) == F_equal_to) { *code = F_local_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_lock_s) == F_equal_to) { *code = F_lock; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_lock_not_s) == F_equal_to) { *code = F_lock_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_loop_s) == F_equal_to) { *code = F_loop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_loop_not_s) == F_equal_to) { *code = F_loop_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_maybe_s) == F_equal_to) { *code = F_maybe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_maybe_not_s) == F_equal_to) { *code = F_maybe_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_memory_s) == F_equal_to) { *code = F_memory; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_memory_not_s) == F_equal_to) { *code = F_memory_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_message_s) == F_equal_to) { *code = F_message; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_message_not_s) == F_equal_to) { *code = F_message_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_middle_s) == F_equal_to) { *code = F_middle; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_middle_not_s) == F_equal_to) { *code = F_middle_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_minor_s) == F_equal_to) { *code = F_minor; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_minor_not_s) == F_equal_to) { *code = F_minor_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_moderate_s) == F_equal_to) { *code = F_moderate; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_moderate_not_s) == F_equal_to) { *code = F_moderate_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_mount_s) == F_equal_to) { *code = F_mount; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_mount_not_s) == F_equal_to) { *code = F_mount_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_name_s) == F_equal_to) { *code = F_name; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_name_not_s) == F_equal_to) { *code = F_name_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_need_s) == F_equal_to) { *code = F_need; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_need_not_s) == F_equal_to) { *code = F_need_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_next_s) == F_equal_to) { *code = F_next; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_next_not_s) == F_equal_to) { *code = F_next_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_nice_s) == F_equal_to) { *code = F_nice; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_nice_not_s) == F_equal_to) { *code = F_nice_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_no_s) == F_equal_to) { *code = F_no; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_no_not_s) == F_equal_to) { *code = F_no_not; - return F_none; + return F_okay; } - if (f_compare_dynamic(name, f_status_object_s) == F_equal_to) { - *code = F_object; + if (f_compare_dynamic(name, f_status_none_s) == F_equal_to) { + *code = F_none; - return F_none; + return F_okay; } - if (f_compare_dynamic(name, f_status_object_not_s) == F_equal_to) { - *code = F_object_not; + if (f_compare_dynamic(name, f_status_none_not_s) == F_equal_to) { + *code = F_none_not; - return F_none; + return F_okay; } - if (f_compare_dynamic(name, f_status_okay_s) == F_equal_to) { - *code = F_okay; + if (f_compare_dynamic(name, f_status_object_s) == F_equal_to) { + *code = F_object; - return F_none; + return F_okay; } - if (f_compare_dynamic(name, f_status_okay_not_s) == F_equal_to) { - *code = F_okay_not; + if (f_compare_dynamic(name, f_status_object_not_s) == F_equal_to) { + *code = F_object_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_once_s) == F_equal_to) { *code = F_once; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_once_not_s) == F_equal_to) { *code = F_once_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_option_s) == F_equal_to) { *code = F_option; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_option_not_s) == F_equal_to) { *code = F_option_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_output_s) == F_equal_to) { *code = F_output; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_output_not_s) == F_equal_to) { *code = F_output_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_packet_s) == F_equal_to) { *code = F_packet; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_packet_not_s) == F_equal_to) { *code = F_packet_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_parameter_s) == F_equal_to) { *code = F_parameter; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_parameter_not_s) == F_equal_to) { *code = F_parameter_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_parent_s) == F_equal_to) { *code = F_parent; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_parent_not_s) == F_equal_to) { *code = F_parent_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_partial_s) == F_equal_to) { *code = F_partial; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_partial_not_s) == F_equal_to) { *code = F_partial_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_payload_s) == F_equal_to) { *code = F_payload; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_payload_not_s) == F_equal_to) { *code = F_payload_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_pipe_s) == F_equal_to) { *code = F_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_pipe_not_s) == F_equal_to) { *code = F_pipe_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_port_s) == F_equal_to) { *code = F_port; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_port_not_s) == F_equal_to) { *code = F_port_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_previous_s) == F_equal_to) { *code = F_previous; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_previous_not_s) == F_equal_to) { *code = F_previous_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_processor_s) == F_equal_to) { *code = F_processor; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_processor_not_s) == F_equal_to) { *code = F_processor_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_progress_s) == F_equal_to) { *code = F_progress; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_progress_not_s) == F_equal_to) { *code = F_progress_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_prohibited_s) == F_equal_to) { *code = F_prohibited; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_prohibited_not_s) == F_equal_to) { *code = F_prohibited_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_property_s) == F_equal_to) { *code = F_property; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_property_not_s) == F_equal_to) { *code = F_property_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_protocol_s) == F_equal_to) { *code = F_protocol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_protocol_not_s) == F_equal_to) { *code = F_protocol_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_range_s) == F_equal_to) { *code = F_range; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_range_not_s) == F_equal_to) { *code = F_range_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_read_s) == F_equal_to) { *code = F_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_read_not_s) == F_equal_to) { *code = F_read_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_read_only_s) == F_equal_to) { *code = F_read_only; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_ready_s) == F_equal_to) { *code = F_ready; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_ready_not_s) == F_equal_to) { *code = F_ready_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_receive_s) == F_equal_to) { *code = F_receive; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_receive_not_s) == F_equal_to) { *code = F_receive_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_recover_s) == F_equal_to) { *code = F_recover; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_recover_not_s) == F_equal_to) { *code = F_recover_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_recurse_s) == F_equal_to) { *code = F_recurse; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_recurse_not_s) == F_equal_to) { *code = F_recurse_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_regular_s) == F_equal_to) { *code = F_regular; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_regular_not_s) == F_equal_to) { *code = F_regular_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_relative_s) == F_equal_to) { *code = F_relative; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_relative_not_s) == F_equal_to) { *code = F_relative_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_remote_s) == F_equal_to) { *code = F_remote; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_remote_not_s) == F_equal_to) { *code = F_remote_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_repeat_s) == F_equal_to) { *code = F_repeat; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_repeat_not_s) == F_equal_to) { *code = F_repeat_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_require_s) == F_equal_to) { *code = F_require; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_require_not_s) == F_equal_to) { *code = F_require_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_resource_s) == F_equal_to) { *code = F_resource; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_resource_not_s) == F_equal_to) { *code = F_resource_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_restart_s) == F_equal_to) { *code = F_restart; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_restart_not_s) == F_equal_to) { *code = F_restart_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_restore_s) == F_equal_to) { *code = F_restore; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_restore_not_s) == F_equal_to) { *code = F_restore_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_revert_s) == F_equal_to) { *code = F_revert; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_revert_not_s) == F_equal_to) { *code = F_revert_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_schedule_s) == F_equal_to) { *code = F_schedule; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_schedule_not_s) == F_equal_to) { *code = F_schedule_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_search_s) == F_equal_to) { *code = F_search; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_search_not_s) == F_equal_to) { *code = F_search_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_send_s) == F_equal_to) { *code = F_send; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_send_not_s) == F_equal_to) { *code = F_send_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_size_s) == F_equal_to) { *code = F_size; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_size_not_s) == F_equal_to) { *code = F_size_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_s) == F_equal_to) { *code = F_signal; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_signal_not_s) == F_equal_to) { *code = F_signal_not; - return F_none; + return F_okay; + } + + if (f_compare_dynamic(name, f_status_some_s) == F_equal_to) { + *code = F_some; + + return F_okay; + } + + if (f_compare_dynamic(name, f_status_some_not_s) == F_equal_to) { + *code = F_some_not; + + return F_okay; } if (f_compare_dynamic(name, f_status_space_s) == F_equal_to) { *code = F_space; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_space_not_s) == F_equal_to) { *code = F_space_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_skip_s) == F_equal_to) { *code = F_skip; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_skip_not_s) == F_equal_to) { *code = F_skip_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_start_s) == F_equal_to) { *code = F_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_start_not_s) == F_equal_to) { *code = F_start_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_status_s) == F_equal_to) { *code = F_status; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_status_not_s) == F_equal_to) { *code = F_status_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_stop_s) == F_equal_to) { *code = F_stop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_stop_not_s) == F_equal_to) { *code = F_stop_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_store_s) == F_equal_to) { *code = F_store; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_store_not_s) == F_equal_to) { *code = F_store_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_stream_s) == F_equal_to) { *code = F_stream; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_stream_not_s) == F_equal_to) { *code = F_stream_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_string_s) == F_equal_to) { *code = F_string; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_string_not_s) == F_equal_to) { *code = F_string_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_string_too_large_s) == F_equal_to) { *code = F_string_too_large; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_string_too_small_s) == F_equal_to) { *code = F_string_too_small; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_success_s) == F_equal_to) { *code = F_success; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_success_not_s) == F_equal_to) { *code = F_success_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_support_s) == F_equal_to) { *code = F_support; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_support_not_s) == F_equal_to) { *code = F_support_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_syntax_s) == F_equal_to) { *code = F_syntax; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_syntax_not_s) == F_equal_to) { *code = F_syntax_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminate_s) == F_equal_to) { *code = F_terminate; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminate_not_s) == F_equal_to) { *code = F_terminate_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_thread_s) == F_equal_to) { *code = F_thread; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_thread_not_s) == F_equal_to) { *code = F_thread_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_time_s) == F_equal_to) { *code = F_time; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_time_not_s) == F_equal_to) { *code = F_time_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_time_out_s) == F_equal_to) { *code = F_time_out; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_too_large_s) == F_equal_to) { *code = F_too_large; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_too_small_s) == F_equal_to) { *code = F_too_small; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_top_s) == F_equal_to) { *code = F_top; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_top_not_s) == F_equal_to) { *code = F_top_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_type_s) == F_equal_to) { *code = F_type; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_type_not_s) == F_equal_to) { *code = F_type_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_user_s) == F_equal_to) { *code = F_user; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_user_not_s) == F_equal_to) { *code = F_user_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_utf_s) == F_equal_to) { *code = F_utf; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_utf_fragment_s) == F_equal_to) { *code = F_utf_fragment; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_utf_fragment_not_s) == F_equal_to) { *code = F_utf_fragment_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_utf_not_s) == F_equal_to) { *code = F_utf_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_valid_s) == F_equal_to) { *code = F_valid; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_valid_not_s) == F_equal_to) { *code = F_valid_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_value_s) == F_equal_to) { *code = F_value; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_value_not_s) == F_equal_to) { *code = F_value_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_wait_s) == F_equal_to) { *code = F_wait; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_wait_not_s) == F_equal_to) { *code = F_wait_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_want_s) == F_equal_to) { *code = F_want; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_want_not_s) == F_equal_to) { *code = F_want_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_wish_s) == F_equal_to) { *code = F_wish; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_wish_not_s) == F_equal_to) { *code = F_wish_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_world_s) == F_equal_to) { *code = F_world; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_world_not_s) == F_equal_to) { *code = F_world_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_write_s) == F_equal_to) { *code = F_write; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_write_not_s) == F_equal_to) { *code = F_write_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_write_only_s) == F_equal_to) { *code = F_write_only; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_yes_s) == F_equal_to) { *code = F_yes; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_yes_not_s) == F_equal_to) { *code = F_yes_not; - return F_none; + return F_okay; } // Return. if (f_compare_dynamic(name, f_status_debug_s) == F_equal_to) { *code = F_debug; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_debug_not_s) == F_equal_to) { *code = F_debug_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_error_s) == F_equal_to) { *code = F_error; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_error_not_s) == F_equal_to) { *code = F_error_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fine_s) == F_equal_to) { *code = F_fine; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_fine_not_s) == F_equal_to) { *code = F_fine_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_warning_s) == F_equal_to) { *code = F_warning; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_warning_not_s) == F_equal_to) { *code = F_warning_not; - return F_none; + return F_okay; } // Array. if (f_compare_dynamic(name, f_status_array_s) == F_equal_to) { *code = F_array; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_array_not_s) == F_equal_to) { *code = F_array_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_array_too_large_s) == F_equal_to) { *code = F_array_too_large; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_array_too_small_s) == F_equal_to) { *code = F_array_too_small; - return F_none; + return F_okay; } // Available. if (f_compare_dynamic(name, f_status_available_s) == F_equal_to) { *code = F_available; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_s) == F_equal_to) { *code = F_available_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_address_s) == F_equal_to) { *code = F_available_not_address; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_buffer_s) == F_equal_to) { *code = F_available_not_buffer; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_device_s) == F_equal_to) { *code = F_available_not_device; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_pipe_s) == F_equal_to) { *code = F_available_not_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_port_s) == F_equal_to) { *code = F_available_not_port; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_process_s) == F_equal_to) { *code = F_available_not_process; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_available_not_socket_s) == F_equal_to) { *code = F_available_not_socket; - return F_none; + return F_okay; } // Busy. if (f_compare_dynamic(name, f_status_busy_s) == F_equal_to) { *code = F_busy; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_address_s) == F_equal_to) { *code = F_busy_address; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_buffer_s) == F_equal_to) { *code = F_busy_buffer; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_device_s) == F_equal_to) { *code = F_busy_device; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_not_s) == F_equal_to) { *code = F_busy_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_pipe_s) == F_equal_to) { *code = F_busy_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_port_s) == F_equal_to) { *code = F_busy_port; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_process_s) == F_equal_to) { *code = F_busy_process; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_busy_socket_s) == F_equal_to) { *code = F_busy_socket; - return F_none; + return F_okay; } // Network. if (f_compare_dynamic(name, f_status_network_s) == F_equal_to) { *code = F_network; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_busy_s) == F_equal_to) { *code = F_network_busy; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_busy_not_s) == F_equal_to) { *code = F_network_busy_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_client_s) == F_equal_to) { *code = F_network_client; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_client_not_s) == F_equal_to) { *code = F_network_client_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_device_s) == F_equal_to) { *code = F_network_device; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_device_not_s) == F_equal_to) { *code = F_network_device_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_found_s) == F_equal_to) { *code = F_network_found; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_found_not_s) == F_equal_to) { *code = F_network_found_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_lost_s) == F_equal_to) { *code = F_network_lost; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_lost_not_s) == F_equal_to) { *code = F_network_lost_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_not_s) == F_equal_to) { *code = F_network_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_s) == F_equal_to) { *code = F_network_reach; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_client_s) == F_equal_to) { *code = F_network_reach_client; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_client_not_s) == F_equal_to) { *code = F_network_reach_client_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_not_s) == F_equal_to) { *code = F_network_reach_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_server_s) == F_equal_to) { *code = F_network_reach_server; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_reach_server_not_s) == F_equal_to) { *code = F_network_reach_server_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_server_s) == F_equal_to) { *code = F_network_server; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_server_not_s) == F_equal_to) { *code = F_network_server_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_time_s) == F_equal_to) { *code = F_network_time; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_time_not_s) == F_equal_to) { *code = F_network_time_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_version_four_s) == F_equal_to) { *code = F_network_version_four; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_version_four_not_s) == F_equal_to) { *code = F_network_version_four_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_version_six_s) == F_equal_to) { *code = F_network_version_six; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_network_version_six_not_s) == F_equal_to) { *code = F_network_version_six_not; - return F_none; + return F_okay; } // Number. if (f_compare_dynamic(name, f_status_number_s) == F_equal_to) { *code = F_number; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_decimal_s) == F_equal_to) { *code = F_number_decimal; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_decimal_not_s) == F_equal_to) { *code = F_number_decimal_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_divide_by_zero_s) == F_equal_to) { *code = F_number_divide_by_zero; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_negative_s) == F_equal_to) { *code = F_number_negative; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_negative_not_s) == F_equal_to) { *code = F_number_negative_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_not_s) == F_equal_to) { *code = F_number_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_overflow_s) == F_equal_to) { *code = F_number_overflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_positive_s) == F_equal_to) { *code = F_number_positive; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_positive_not_s) == F_equal_to) { *code = F_number_positive_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_too_large_s) == F_equal_to) { *code = F_number_too_large; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_too_small_s) == F_equal_to) { *code = F_number_too_small; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_underflow_s) == F_equal_to) { *code = F_number_underflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_whole_s) == F_equal_to) { *code = F_number_whole; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_whole_not_s) == F_equal_to) { *code = F_number_whole_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_zero_s) == F_equal_to) { *code = F_number_zero; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_number_zero_not_s) == F_equal_to) { *code = F_number_zero_not; - return F_none; + return F_okay; } // Buffer. if (f_compare_dynamic(name, f_status_buffer_s) == F_equal_to) { *code = F_buffer; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_buffer_not_s) == F_equal_to) { *code = F_buffer_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_buffer_overflow_s) == F_equal_to) { *code = F_buffer_overflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_buffer_too_large_s) == F_equal_to) { *code = F_buffer_too_large; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_buffer_too_small_s) == F_equal_to) { *code = F_buffer_too_small; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_buffer_underflow_s) == F_equal_to) { *code = F_buffer_underflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_s) == F_equal_to) { *code = F_complete_not_utf; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_block_s) == F_equal_to) { *code = F_complete_not_utf_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_eoa_s) == F_equal_to) { *code = F_complete_not_utf_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_eof_s) == F_equal_to) { *code = F_complete_not_utf_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_eol_s) == F_equal_to) { *code = F_complete_not_utf_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_eos_s) == F_equal_to) { *code = F_complete_not_utf_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_start_s) == F_equal_to) { *code = F_complete_not_utf_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_complete_not_utf_stop_s) == F_equal_to) { *code = F_complete_not_utf_stop; - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_block_s) == F_equal_to) { - *code = F_none_block; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_eoa_s) == F_equal_to) { - *code = F_none_eoa; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_eof_s) == F_equal_to) { - *code = F_none_eof; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_eol_s) == F_equal_to) { - *code = F_none_eol; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_eos_s) == F_equal_to) { - *code = F_none_eos; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_start_s) == F_equal_to) { - *code = F_none_start; - - return F_none; - } - - if (f_compare_dynamic(name, f_status_none_stop_s) == F_equal_to) { - *code = F_none_stop; - - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_s) == F_equal_to) { *code = F_data; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_s) == F_equal_to) { *code = F_data_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_block_s) == F_equal_to) { *code = F_data_not_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_eoa_s) == F_equal_to) { *code = F_data_not_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_eof_s) == F_equal_to) { *code = F_data_not_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_eol_s) == F_equal_to) { *code = F_data_not_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_eos_s) == F_equal_to) { *code = F_data_not_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_start_s) == F_equal_to) { *code = F_data_not_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_data_not_stop_s) == F_equal_to) { *code = F_data_not_stop; - return F_none; + return F_okay; } // End. if (f_compare_dynamic(name, f_status_end_s) == F_equal_to) { *code = F_end; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_s) == F_equal_to) { *code = F_end_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_block_s) == F_equal_to) { *code = F_end_not_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_eoa_s) == F_equal_to) { *code = F_end_not_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_eof_s) == F_equal_to) { *code = F_end_not_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_eol_s) == F_equal_to) { *code = F_end_not_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_eos_s) == F_equal_to) { *code = F_end_not_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_s) == F_equal_to) { *code = F_end_not_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_block_s) == F_equal_to) { *code = F_end_not_group_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_eoa_s) == F_equal_to) { *code = F_end_not_group_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_eof_s) == F_equal_to) { *code = F_end_not_group_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_eol_s) == F_equal_to) { *code = F_end_not_group_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_eos_s) == F_equal_to) { *code = F_end_not_group_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_start_s) == F_equal_to) { *code = F_end_not_group_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_group_stop_s) == F_equal_to) { *code = F_end_not_group_stop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_s) == F_equal_to) { *code = F_end_not_nest; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_block_s) == F_equal_to) { *code = F_end_not_nest_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_eoa_s) == F_equal_to) { *code = F_end_not_nest_eoa; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_eof_s) == F_equal_to) { *code = F_end_not_nest_eof; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_eol_s) == F_equal_to) { *code = F_end_not_nest_eol; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_eos_s) == F_equal_to) { *code = F_end_not_nest_eos; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_start_s) == F_equal_to) { *code = F_end_not_nest_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_nest_stop_s) == F_equal_to) { *code = F_end_not_nest_stop; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_start_s) == F_equal_to) { *code = F_end_not_start; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_end_not_stop_s) == F_equal_to) { *code = F_end_not_stop; - return F_none; + return F_okay; } // Process. if (f_compare_dynamic(name, f_status_process_s) == F_equal_to) { *code = F_process; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_process_not_s) == F_equal_to) { *code = F_process_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_process_too_many_s) == F_equal_to) { *code = F_process_too_many; - return F_none; + return F_okay; } #endif // _di_f_status_process_s_ @@ -3095,679 +3125,679 @@ extern "C" { if (f_compare_dynamic(name, f_status_file_s) == F_equal_to) { *code = F_file; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_close_s) == F_equal_to) { *code = F_file_close; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_closed_s) == F_equal_to) { *code = F_file_closed; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_descriptor_s) == F_equal_to) { *code = F_file_descriptor; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_descriptor_max_s) == F_equal_to) { *code = F_file_descriptor_max; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_descriptor_not_s) == F_equal_to) { *code = F_file_descriptor_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_empty_s) == F_equal_to) { *code = F_file_empty; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_flush_s) == F_equal_to) { *code = F_file_flush; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_found_s) == F_equal_to) { *code = F_file_found; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_found_not_s) == F_equal_to) { *code = F_file_found_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_not_s) == F_equal_to) { *code = F_file_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_open_s) == F_equal_to) { *code = F_file_open; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_open_max_s) == F_equal_to) { *code = F_file_open_max; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_opened_s) == F_equal_to) { *code = F_file_opened; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_overflow_s) == F_equal_to) { *code = F_file_overflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_purge_s) == F_equal_to) { *code = F_file_purge; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_read_s) == F_equal_to) { *code = F_file_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_reallocation_s) == F_equal_to) { *code = F_file_reallocation; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_seek_s) == F_equal_to) { *code = F_file_seek; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_stat_s) == F_equal_to) { *code = F_file_stat; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_synchronize_s) == F_equal_to) { *code = F_file_synchronize; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_block_s) == F_equal_to) { *code = F_file_type_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_character_s) == F_equal_to) { *code = F_file_type_character; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_directory_s) == F_equal_to) { *code = F_file_type_directory; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_fifo_s) == F_equal_to) { *code = F_file_type_fifo; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_link_s) == F_equal_to) { *code = F_file_type_link; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_block_s) == F_equal_to) { *code = F_file_type_not_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_character_s) == F_equal_to) { *code = F_file_type_not_character; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_directory_s) == F_equal_to) { *code = F_file_type_not_directory; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_fifo_s) == F_equal_to) { *code = F_file_type_not_fifo; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_link_s) == F_equal_to) { *code = F_file_type_not_link; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_pipe_s) == F_equal_to) { *code = F_file_type_not_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_regular_s) == F_equal_to) { *code = F_file_type_not_regular; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_socket_s) == F_equal_to) { *code = F_file_type_not_socket; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_not_unknown_s) == F_equal_to) { *code = F_file_type_not_unknown; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_pipe_s) == F_equal_to) { *code = F_file_type_pipe; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_regular_s) == F_equal_to) { *code = F_file_type_regular; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_socket_s) == F_equal_to) { *code = F_file_type_socket; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_type_unknown_s) == F_equal_to) { *code = F_file_type_unknown; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_underflow_s) == F_equal_to) { *code = F_file_underflow; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_utf_s) == F_equal_to) { *code = F_file_utf; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_utf_not_s) == F_equal_to) { *code = F_file_utf_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_file_write_s) == F_equal_to) { *code = F_file_write; - return F_none; + return F_okay; } // Filesystem. if (f_compare_dynamic(name, f_status_filesystem_s) == F_equal_to) { *code = F_filesystem; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_filesystem_not_s) == F_equal_to) { *code = F_filesystem_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_filesystem_quota_block_s) == F_equal_to) { *code = F_filesystem_quota_block; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_filesystem_quota_reached_s) == F_equal_to) { *code = F_filesystem_quota_reached; - return F_none; + return F_okay; } // Directory. if (f_compare_dynamic(name, f_status_directory_s) == F_equal_to) { *code = F_directory; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_close_s) == F_equal_to) { *code = F_directory_close; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_closed_s) == F_equal_to) { *code = F_directory_closed; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_descriptor_s) == F_equal_to) { *code = F_directory_descriptor; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_empty_s) == F_equal_to) { *code = F_directory_empty; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_empty_not_s) == F_equal_to) { *code = F_directory_empty_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_found_s) == F_equal_to) { *code = F_directory_found; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_found_not_s) == F_equal_to) { *code = F_directory_found_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_flush_s) == F_equal_to) { *code = F_directory_flush; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_link_max_s) == F_equal_to) { *code = F_directory_link_max; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_not_s) == F_equal_to) { *code = F_directory_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_open_s) == F_equal_to) { *code = F_directory_open; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_purge_s) == F_equal_to) { *code = F_directory_purge; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_read_s) == F_equal_to) { *code = F_directory_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_stream_s) == F_equal_to) { *code = F_directory_stream; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_support_not_s) == F_equal_to) { *code = F_directory_support_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_synchronize_s) == F_equal_to) { *code = F_directory_synchronize; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_utf_s) == F_equal_to) { *code = F_directory_utf; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_utf_not_s) == F_equal_to) { *code = F_directory_utf_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_directory_write_s) == F_equal_to) { *code = F_directory_write; - return F_none; + return F_okay; } // Socket. if (f_compare_dynamic(name, f_status_socket_s) == F_equal_to) { *code = F_socket; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_socket_client_s) == F_equal_to) { *code = F_socket_client; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_socket_not_s) == F_equal_to) { *code = F_socket_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_socket_receive_s) == F_equal_to) { *code = F_socket_receive; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_socket_send_s) == F_equal_to) { *code = F_socket_send; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_socket_target_s) == F_equal_to) { *code = F_socket_target; - return F_none; + return F_okay; } // Compare. if (f_compare_dynamic(name, f_status_equal_to_s) == F_equal_to) { *code = F_equal_to; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_equal_to_not_s) == F_equal_to) { *code = F_equal_to_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_than_greater_s) == F_equal_to) { *code = F_than_greater; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_than_less_s) == F_equal_to) { *code = F_than_less; - return F_none; + return F_okay; } // Access. if (f_compare_dynamic(name, f_status_access_s) == F_equal_to) { *code = F_access; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_s) == F_equal_to) { *code = F_access_denied; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_user_s) == F_equal_to) { *code = F_access_denied_user; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_group_s) == F_equal_to) { *code = F_access_denied_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_world_s) == F_equal_to) { *code = F_access_denied_world; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_read_s) == F_equal_to) { *code = F_access_denied_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_write_s) == F_equal_to) { *code = F_access_denied_write; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_execute_s) == F_equal_to) { *code = F_access_denied_execute; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_denied_super_s) == F_equal_to) { *code = F_access_denied_super; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_s) == F_equal_to) { *code = F_access_granted; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_user_s) == F_equal_to) { *code = F_access_granted_user; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_group_s) == F_equal_to) { *code = F_access_granted_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_world_s) == F_equal_to) { *code = F_access_granted_world; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_read_s) == F_equal_to) { *code = F_access_granted_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_write_s) == F_equal_to) { *code = F_access_granted_write; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_execute_s) == F_equal_to) { *code = F_access_granted_execute; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_group_s) == F_equal_to) { *code = F_access_granted_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_read_s) == F_equal_to) { *code = F_access_granted_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_super_s) == F_equal_to) { *code = F_access_granted_super; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_granted_user_s) == F_equal_to) { *code = F_access_granted_user; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_group_s) == F_equal_to) { *code = F_access_group; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_mode_s) == F_equal_to) { *code = F_access_mode; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_not_s) == F_equal_to) { *code = F_access_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_access_owner_s) == F_equal_to) { *code = F_access_owner; - return F_none; + return F_okay; } // Terminal. if (f_compare_dynamic(name, f_status_terminal_s) == F_equal_to) { *code = F_terminal; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_access_s) == F_equal_to) { *code = F_terminal_access; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_known_s) == F_equal_to) { *code = F_terminal_known; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_known_not_s) == F_equal_to) { *code = F_terminal_known_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_not_s) == F_equal_to) { *code = F_terminal_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_prohibited_s) == F_equal_to) { *code = F_terminal_prohibited; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_read_s) == F_equal_to) { *code = F_terminal_read; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_valid_s) == F_equal_to) { *code = F_terminal_valid; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_valid_not_s) == F_equal_to) { *code = F_terminal_valid_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_terminal_write_s) == F_equal_to) { *code = F_terminal_write; - return F_none; + return F_okay; } if (f_compare_dynamic(name, f_status_status_code_last_s) == F_equal_to) { *code = F_status_code_last; - return F_none; + return F_okay; } return F_status_set_error(F_data); diff --git a/level_1/fl_status_string/c/status_string.h b/level_1/fl_status_string/c/status_string.h index ba9f50e..dce1c82 100644 --- a/level_1/fl_status_string/c/status_string.h +++ b/level_1/fl_status_string/c/status_string.h @@ -38,7 +38,7 @@ extern "C" { * The status code a matched string represents. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string is empty. * * F_data (with error bit) if not found. diff --git a/level_1/fl_status_string/tests/unit/c/test-status_string-from.c b/level_1/fl_status_string/tests/unit/c/test-status_string-from.c index 9feaef6..06f62dd 100644 --- a/level_1/fl_status_string/tests/unit/c/test-status_string-from.c +++ b/level_1/fl_status_string/tests/unit/c/test-status_string-from.c @@ -15,7 +15,7 @@ void test__fl_status_string_from__fails(void **state) { for (uint8_t i = 0; i < 3; ++i) { - f_status_t result = F_none; + f_status_t result = F_okay; const f_status_t status = fl_status_string_from(invalids[i], &result); @@ -35,7 +35,7 @@ void test__fl_status_string_from__parameter_checking(void **state) { void test__fl_status_string_from__returns_data_not(void **state) { { - f_status_t result = F_none; + f_status_t result = F_okay; const f_status_t status = fl_status_string_from(f_string_empty_s, &result); @@ -112,7 +112,15 @@ void test__fl_status_string_from__works(void **state) { F_signal_reserved_62, F_signal_reserved_63, F_signal_reserved_64, - F_none, + F_okay, + F_okay_block, + F_okay_eoa, + F_okay_eof, + F_okay_eol, + F_okay_eos, + F_okay_not, + F_okay_start, + F_okay_stop, F_abort, F_abort_not, F_absolute, @@ -121,6 +129,8 @@ void test__fl_status_string_from__works(void **state) { F_address_not, F_again, F_again_not, + F_all, + F_all_not, F_ascii, F_ascii_not, F_atomic, @@ -288,10 +298,10 @@ void test__fl_status_string_from__works(void **state) { F_nice_not, F_no, F_no_not, + F_none, + F_none_not, F_object, F_object_not, - F_okay, - F_okay_not, F_once, F_once_not, F_option, @@ -367,6 +377,8 @@ void test__fl_status_string_from__works(void **state) { F_size_not, F_skip, F_skip_not, + F_some, + F_some_not, F_space, F_space_not, F_start, @@ -512,13 +524,6 @@ void test__fl_status_string_from__works(void **state) { F_complete_not_utf_eos, F_complete_not_utf_start, F_complete_not_utf_stop, - F_none_block, - F_none_eoa, - F_none_eof, - F_none_eol, - F_none_eos, - F_none_start, - F_none_stop, F_data, F_data_not, F_data_not_block, @@ -734,7 +739,15 @@ void test__fl_status_string_from__works(void **state) { f_status_signal_reserved_62_s, f_status_signal_reserved_63_s, f_status_signal_reserved_64_s, - f_status_none_s, + f_status_okay_s, + f_status_okay_block_s, + f_status_okay_eoa_s, + f_status_okay_eof_s, + f_status_okay_eol_s, + f_status_okay_eos_s, + f_status_okay_not_s, + f_status_okay_start_s, + f_status_okay_stop_s, f_status_abort_s, f_status_abort_not_s, f_status_absolute_s, @@ -743,6 +756,8 @@ void test__fl_status_string_from__works(void **state) { f_status_address_not_s, f_status_again_s, f_status_again_not_s, + f_status_all_s, + f_status_all_not_s, f_status_ascii_s, f_status_ascii_not_s, f_status_atomic_s, @@ -910,10 +925,10 @@ void test__fl_status_string_from__works(void **state) { f_status_nice_not_s, f_status_no_s, f_status_no_not_s, + f_status_none_s, + f_status_none_not_s, f_status_object_s, f_status_object_not_s, - f_status_okay_s, - f_status_okay_not_s, f_status_once_s, f_status_once_not_s, f_status_option_s, @@ -989,6 +1004,8 @@ void test__fl_status_string_from__works(void **state) { f_status_size_not_s, f_status_skip_s, f_status_skip_not_s, + f_status_some_s, + f_status_some_not_s, f_status_space_s, f_status_space_not_s, f_status_start_s, @@ -1134,13 +1151,6 @@ void test__fl_status_string_from__works(void **state) { f_status_complete_not_utf_eos_s, f_status_complete_not_utf_start_s, f_status_complete_not_utf_stop_s, - f_status_none_block_s, - f_status_none_eoa_s, - f_status_none_eof_s, - f_status_none_eol_s, - f_status_none_eos_s, - f_status_none_start_s, - f_status_none_stop_s, f_status_data_s, f_status_data_not_s, f_status_data_not_block_s, @@ -1289,13 +1299,13 @@ void test__fl_status_string_from__works(void **state) { f_status_status_code_last_s, }; - for (uint16_t i = 0; i < 619; ++i) { + for (uint16_t i = 0; i < 624; ++i) { - f_status_t result = F_none; + f_status_t result = F_okay; const f_status_t status = fl_status_string_from(status_strings[i], &result); - assert_int_equal(status, F_none); + assert_int_equal(status, F_okay); assert_int_equal(result, statuss[i]); } // for } diff --git a/level_1/fl_utf_file/c/private-utf_file.c b/level_1/fl_utf_file/c/private-utf_file.c index 9c8442f..5f8b63f 100644 --- a/level_1/fl_utf_file/c/private-utf_file.c +++ b/level_1/fl_utf_file/c/private-utf_file.c @@ -163,7 +163,7 @@ extern "C" { size_write = write(file.id, buffer_write, used); if (!size_write) { - return F_none_stop; + return F_okay_stop; } if (size_write < 0) { @@ -187,7 +187,7 @@ extern "C" { } while (*written < write_max); - return F_none; + return F_okay; } #endif // !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(fl_utf_file_write_range) diff --git a/level_1/fl_utf_file/c/private-utf_file.h b/level_1/fl_utf_file/c/private-utf_file.h index 639d632..6f8e046 100644 --- a/level_1/fl_utf_file/c/private-utf_file.h +++ b/level_1/fl_utf_file/c/private-utf_file.h @@ -60,9 +60,9 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eos on success but range.stop exceeded buffer.used (only wrote up to buffer.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. diff --git a/level_1/fl_utf_file/c/utf_file.c b/level_1/fl_utf_file/c/utf_file.c index b5f5e31..21bde1d 100644 --- a/level_1/fl_utf_file/c/utf_file.c +++ b/level_1/fl_utf_file/c/utf_file.c @@ -19,7 +19,7 @@ extern "C" { return F_status_set_error(F_file_closed); } - f_status_t status = F_none; + f_status_t status = F_okay; ssize_t size_read = 0; uint8_t width = 0; @@ -49,7 +49,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_eof); } - return F_none_eof; + return F_okay_eof; } else if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); @@ -66,7 +66,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_stop); } - return F_none; + return F_okay; } #endif // _di_fl_utf_file_read_ @@ -79,7 +79,7 @@ extern "C" { if (file.id < 0) return F_status_set_error(F_file); if (!file.id) return F_status_set_error(F_file_closed); - f_status_t status = F_none; + f_status_t status = F_okay; ssize_t size_read = 0; uint8_t width = 0; @@ -108,7 +108,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_eof); } - return F_none_eof; + return F_okay_eof; } else if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); @@ -125,7 +125,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_stop); } - return F_none; + return F_okay; } #endif // _di_fl_utf_file_read_block_ @@ -143,7 +143,7 @@ extern "C" { return F_status_set_error(F_file_closed); } - f_status_t status = F_none; + f_status_t status = F_okay; ssize_t size_read = 0; uint8_t width = 0; @@ -180,7 +180,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_eof); } - return F_none_eof; + return F_okay_eof; } else if (size_read < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); @@ -197,7 +197,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_stop); } - return F_none; + return F_okay; } #endif // _di_fl_utf_file_read_until_ @@ -224,8 +224,8 @@ extern "C" { const f_status_t status = private_fl_utf_file_write_until(file, destination.string, destination.used, written); if (F_status_is_error(status)) return status; - if (status == F_none && *written == destination.used) { - return F_none_eos; + if (status == F_okay && *written == destination.used) { + return F_okay_eos; } return status; @@ -261,8 +261,8 @@ extern "C" { const f_status_t status = private_fl_utf_file_write_until(file, destination.string, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none && *written == destination.used) { - return F_none_eos; + if (status == F_okay && *written == destination.used) { + return F_okay_eos; } return status; @@ -298,8 +298,8 @@ extern "C" { const f_status_t status = private_fl_utf_file_write_until(file, destination.string, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none && *written == destination.used) { - return F_none_eos; + if (status == F_okay && *written == destination.used) { + return F_okay_eos; } return status; @@ -337,13 +337,13 @@ extern "C" { const f_status_t status = private_fl_utf_file_write_until(file, destination.string + range.start, write_max, written); if (F_status_is_error(status)) return status; - if (status == F_none) { + if (status == F_okay) { if (range.start + *written == total) { - return F_none_stop; + return F_okay_stop; } if (range.start + *written == destination.used) { - return F_none_eos; + return F_okay_eos; } } diff --git a/level_1/fl_utf_file/c/utf_file.h b/level_1/fl_utf_file/c/utf_file.h index f2174fa..af1686e 100644 --- a/level_1/fl_utf_file/c/utf_file.h +++ b/level_1/fl_utf_file/c/utf_file.h @@ -38,8 +38,8 @@ extern "C" { * The contents of the file is appended into this destination. * * @return - * F_none on success. - * F_none_eof on success and EOF was reached. + * F_okay on success. + * F_okay_eof on success and EOF was reached. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. @@ -72,8 +72,8 @@ extern "C" { * The contents of the file is appended into this destination. * * @return - * F_none on success. - * F_none_eof on success and EOF was reached. + * F_okay on success. + * F_okay_eof on success and EOF was reached. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. @@ -107,8 +107,8 @@ extern "C" { * The destination the file is being read into. * * @return - * F_none on success. - * F_none_eof on success and EOF was reached. + * F_okay on success. + * F_okay_eof on success and EOF was reached. * * F_block (with error bit) if file descriptor is set to non-block and the read would result in a blocking operation. * F_buffer (with error bit) if the buffer is invalid. @@ -140,9 +140,9 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -175,9 +175,9 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -210,9 +210,9 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. @@ -245,9 +245,9 @@ extern "C" { * The total bytes written. * * @return - * F_none on success. - * F_none_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). - * F_none_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). + * F_okay on success. + * F_okay_eos on success but range.stop exceeded destination.used (only wrote up to destination.used). + * F_okay_stop on success but no data was written (written == 0) (not an error and often happens if file type is not a regular file). * F_complete_not_utf_stop if max write was reached but was unable to completely write a given UTF-8 block (incomplete UTF-8 is not written, not even partially). * * F_block (with error bit) if file descriptor is set to non-block and the write would result in a blocking operation. diff --git a/level_2/fll_control_group/c/control_group.c b/level_2/fll_control_group/c/control_group.c index be3eea7..65b2cae 100644 --- a/level_2/fll_control_group/c/control_group.c +++ b/level_2/fll_control_group/c/control_group.c @@ -7,7 +7,7 @@ extern "C" { #ifndef _di_fll_control_group_prepare_ f_status_t fll_control_group_prepare(const f_control_group_t control_group) { - f_status_t status = F_none; + f_status_t status = F_okay; if (control_group.path.used) { status = f_directory_exists(control_group.path); @@ -39,7 +39,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_control_group_prepare_ diff --git a/level_2/fll_control_group/c/control_group.h b/level_2/fll_control_group/c/control_group.h index 0e4ea10..2b090fe 100644 --- a/level_2/fll_control_group/c/control_group.h +++ b/level_2/fll_control_group/c/control_group.h @@ -40,7 +40,7 @@ extern "C" { * The control group(s) to ensure the directories exist. * * @return - * F_none on success. + * F_okay on success. * * F_directory_not (with error bit) if control_group.path does not exist. * diff --git a/level_2/fll_execute/c/execute.c b/level_2/fll_execute/c/execute.c index 2c10beb..98dd087 100644 --- a/level_2/fll_execute/c/execute.c +++ b/level_2/fll_execute/c/execute.c @@ -17,7 +17,7 @@ extern "C" { status = private_fll_execute_arguments_add(source, arguments); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_execute_arguments_add_ @@ -33,7 +33,7 @@ extern "C" { status = private_fll_execute_arguments_add_parameter(prefix, name, value, arguments); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_execute_arguments_add_parameter_ @@ -108,7 +108,7 @@ extern "C" { f_string_dynamics_t paths = f_string_dynamics_t_initialize; f_string_dynamic_t *found = 0; - f_status_t status = F_none; + f_status_t status = F_okay; if (last_slash) { status = f_file_exists(program.used ? program : arguments.array[0], F_true); @@ -128,7 +128,7 @@ extern "C" { // Do not consider PATH is not available (or not valid?) to be an error. if (F_status_set_fine(status) == F_valid_not || F_status_set_fine(status) == F_failure) { - status = F_none; + status = F_okay; } } else { @@ -263,7 +263,7 @@ extern "C" { return F_status_set_error(F_failure); } - return F_none; + return F_okay; } #endif // _di_fll_execute_into_ @@ -306,7 +306,7 @@ extern "C" { f_string_dynamics_t paths = f_string_dynamics_t_initialize; f_string_dynamic_t *found = 0; - f_status_t status = F_none; + f_status_t status = F_okay; if (last_slash) { status = f_file_exists(program.used ? program : arguments.array[0], F_true); @@ -328,7 +328,7 @@ extern "C" { // Do not consider PATH to be not available (or not valid?) to be an error. if (F_status_set_fine(status) == F_valid_not || F_status_set_fine(status) == F_failure) { - status = F_none; + status = F_okay; } } else { diff --git a/level_2/fll_execute/c/execute.h b/level_2/fll_execute/c/execute.h index f528b7e..2f848bc 100644 --- a/level_2/fll_execute/c/execute.h +++ b/level_2/fll_execute/c/execute.h @@ -68,7 +68,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -104,7 +104,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_append(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -142,7 +142,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_append(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -170,7 +170,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_append(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -215,7 +215,7 @@ extern "C" { * The code returned after finishing execution of program. * * @return - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on execution failure. * @@ -287,7 +287,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_child on success and this is the child thread. * F_parent on success and this is the parent thread (only happens when FL_execute_parameter_option_return_d is passed). * diff --git a/level_2/fll_execute/c/private-execute.c b/level_2/fll_execute/c/private-execute.c index 7fcc9d1..bdb5a04 100644 --- a/level_2/fll_execute/c/private-execute.c +++ b/level_2/fll_execute/c/private-execute.c @@ -18,7 +18,7 @@ extern "C" { ++arguments->used; - return F_none; + return F_okay; } #endif // !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_) @@ -48,7 +48,7 @@ extern "C" { ++arguments->used; - return F_none; + return F_okay; } #endif // !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_) @@ -119,7 +119,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // !defined(_di_fll_execute_program_) @@ -186,7 +186,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // !defined(_di_fll_execute_program_) @@ -248,12 +248,12 @@ extern "C" { // This must explicitly check for 0 (as opposed to checking (!result)). if (result != 0) { - if (WIFEXITED(*((int *) result))) return F_none; + if (WIFEXITED(*((int *) result))) return F_okay; return F_status_set_error(F_failure); } - return F_none; + return F_okay; } if (parameter && parameter->option & FL_execute_parameter_option_session_d) { @@ -392,7 +392,7 @@ extern "C" { const f_file_t file = macro_f_file_t_initialize_2(0, descriptors[1], F_file_flag_write_only_d); - f_status_t status = F_none; + f_status_t status = F_okay; // Have the parent perform all appropriate access controls and then send either '0' for no error or '1' for error to the child. if (as) { @@ -430,12 +430,12 @@ extern "C" { // This must explicitly check for 0 (as opposed to checking (!result)). if (result != 0) { - if (WIFEXITED(*((int *) result))) return F_none; + if (WIFEXITED(*((int *) result))) return F_okay; return F_status_set_error(F_failure); } - return F_none; + return F_okay; } if (parameter && parameter->option & FL_execute_parameter_option_session_d) { diff --git a/level_2/fll_execute/c/private-execute.h b/level_2/fll_execute/c/private-execute.h index 5f82150..eb32fa4 100644 --- a/level_2/fll_execute/c/private-execute.h +++ b/level_2/fll_execute/c/private-execute.h @@ -26,7 +26,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_increase_by(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -55,7 +55,7 @@ extern "C" { * The array of string arguments intended to pass to the execute functions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_append(). * Errors (with error bit) from: f_string_dynamic_resize(). @@ -89,7 +89,7 @@ extern "C" { * The code returned after finishing execution of program. * * @return - * F_none on success. + * F_okay on success. * * F_capability (with error bit) on failure to set capabilities. * F_group (with error bit) on failure to set GID. @@ -130,7 +130,7 @@ extern "C" { * A string representing the return code ('0' for success, '1' for failure). * * @return - * F_none on success. + * F_okay on success. * * F_control_group (with error bit) on failure to set control group. * F_limit (with error bit) on failure to set a resource limit. @@ -193,7 +193,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_child on success and this is the child thread. * F_parent on success and this is the parent thread (only happens when FL_execute_parameter_option_return_d is passed). * @@ -269,7 +269,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_child on success and this is the child thread. * F_parent on success and this is the parent thread (only happens when FL_execute_parameter_option_return_d is passed). * @@ -326,7 +326,7 @@ extern "C" { * This is a array of simple strings intended to be eventually directly passed to functions like exec(). * * @return - * F_none on success. + * F_okay on success. * * @see fll_execute_program() */ diff --git a/level_2/fll_file/c/file.h b/level_2/fll_file/c/file.h index 512255b..c300f06 100644 --- a/level_2/fll_file/c/file.h +++ b/level_2/fll_file/c/file.h @@ -49,7 +49,7 @@ extern "C" { * The max recursion depth. * * @return - * F_none on success. + * F_okay on success. * F_data_not if path.used is 0. * * F_access_denied (with error bit) on access denied. @@ -94,7 +94,7 @@ extern "C" { * The max recursion depth. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_group (with error bit) if the current user does not have access to assign the specified group. diff --git a/level_2/fll_file/c/private-file.c b/level_2/fll_file/c/private-file.c index 81d28be..4171c63 100644 --- a/level_2/fll_file/c/private-file.c +++ b/level_2/fll_file/c/private-file.c @@ -8,7 +8,7 @@ extern "C" { #if !defined(_di_fll_file_mode_set_all_) f_status_t private_fll_file_mode_set_all(const f_string_static_t path, const bool dereference, const mode_t mode, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) { - f_status_t status = F_none; + f_status_t status = F_okay; status = f_directory_is(path); if (F_status_is_error(status)) return status; @@ -25,7 +25,7 @@ extern "C" { return status; } - status = F_none; + status = F_okay; { f_string_dynamics_t * const list[] = { @@ -107,7 +107,7 @@ extern "C" { #if !defined(_di_fll_file_role_change_all_) f_status_t private_fll_file_role_change_all(const f_string_static_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) { - f_status_t status = F_none; + f_status_t status = F_okay; status = f_directory_is(path); if (F_status_is_error(status)) return status; @@ -124,7 +124,7 @@ extern "C" { return status; } - status = F_none; + status = F_okay; { f_string_dynamics_t * const list[] = { diff --git a/level_2/fll_file/c/private-file.h b/level_2/fll_file/c/private-file.h index 901a34c..c64b222 100644 --- a/level_2/fll_file/c/private-file.h +++ b/level_2/fll_file/c/private-file.h @@ -33,7 +33,7 @@ extern "C" { * The current depth. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_mode (with error bit) if the current user does not have access to assign the file mode. @@ -72,7 +72,7 @@ extern "C" { * The current depth. * * @return - * F_none on success. + * F_okay on success. * * F_access_denied (with error bit) on access denied. * F_access_group (with error bit) if the current user does not have access to assign the specified group. diff --git a/level_2/fll_fss/c/fss.c b/level_2/fll_fss/c/fss.c index 0349b6f..2afe1b1 100644 --- a/level_2/fll_fss/c/fss.c +++ b/level_2/fll_fss/c/fss.c @@ -176,7 +176,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -213,7 +213,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_ @@ -229,7 +229,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_string_ranges_t *content = 0; f_number_unsigned_t i = 0; @@ -279,7 +279,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_apart_ @@ -295,7 +295,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_string_dynamic_t name = f_string_dynamic_t_initialize; f_number_unsigned_t i = 0; @@ -422,7 +422,7 @@ extern "C" { f_string_dynamic_resize(0, &name); - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_map_ @@ -438,7 +438,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -496,7 +496,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_map_apart_ @@ -512,7 +512,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -565,7 +565,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_map_mash_ @@ -581,7 +581,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_string_dynamic_t name = f_string_dynamic_t_initialize; f_number_unsigned_t i = 0; @@ -682,7 +682,7 @@ extern "C" { f_string_dynamic_resize(0, &name); - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_map_mash_apart_ @@ -698,7 +698,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_string_dynamic_t name = f_string_dynamic_t_initialize; f_number_unsigned_t i = 0; @@ -796,7 +796,7 @@ extern "C" { f_string_dynamic_resize(0, &name); - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_map_together_ @@ -812,7 +812,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -851,7 +851,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_mash_ @@ -867,7 +867,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -909,7 +909,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_mash_apart_ @@ -925,7 +925,7 @@ extern "C" { if (!objects.used) return F_data_not; if (!contents.used) return F_data_not; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -956,7 +956,7 @@ extern "C" { } // for } // for - return F_none; + return F_okay; } #endif // _di_fll_fss_snatch_together_ diff --git a/level_2/fll_fss/c/fss.h b/level_2/fll_fss/c/fss.h index 0b5860b..6345792 100644 --- a/level_2/fll_fss/c/fss.h +++ b/level_2/fll_fss/c/fss.h @@ -107,7 +107,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -155,7 +155,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -207,7 +207,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -259,7 +259,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -312,7 +312,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -363,7 +363,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -416,7 +416,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -466,7 +466,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -514,7 +514,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. @@ -562,7 +562,7 @@ extern "C" { * Set the pointer address to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_data_not when there is no buffer, objects or contents to process. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_2/fll_fss/c/fss/basic.c b/level_2/fll_fss/c/fss/basic.c index b70157e..72453cd 100644 --- a/level_2/fll_fss/c/fss/basic.c +++ b/level_2/fll_fss/c/fss/basic.c @@ -16,7 +16,7 @@ extern "C" { } #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t initial_used = objects->used; bool found_data = F_false; @@ -69,7 +69,7 @@ extern "C" { if (state->status == F_data_not) return; if (found_data) { - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -105,7 +105,7 @@ extern "C" { } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) { + if (state->status == F_okay_eos || state->status == F_okay_stop) { ++contents->array[contents->used++].used; ++objects->used; @@ -118,9 +118,9 @@ extern "C" { if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_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_okay equivelents. if (objects->used > initial_used) { - state->status = (state->status == F_data_not_eos) ? F_none_eos : F_none_stop; + state->status = (state->status == F_data_not_eos) ? F_okay_eos : F_okay_stop; } return; @@ -146,7 +146,7 @@ extern "C" { } } - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -188,7 +188,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { if (content.used) { range.start = 0; range.stop = content.used - 1; diff --git a/level_2/fll_fss/c/fss/basic.h b/level_2/fll_fss/c/fss/basic.h index e73df0a..4bf02dc 100644 --- a/level_2/fll_fss/c/fss/basic.h +++ b/level_2/fll_fss/c/fss/basic.h @@ -58,9 +58,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eol if there is no data to write and EOL was reached. * F_data_not_eos no data to write due start location being greater than or equal to buffer size. @@ -108,9 +108,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. diff --git a/level_2/fll_fss/c/fss/basic_list.c b/level_2/fll_fss/c/fss/basic_list.c index b42f65d..67d54ef 100644 --- a/level_2/fll_fss/c/fss/basic_list.c +++ b/level_2/fll_fss/c/fss/basic_list.c @@ -16,7 +16,7 @@ extern "C" { } #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t initial_used = objects->used; bool found_data = F_false; @@ -55,7 +55,7 @@ extern "C" { if (state->status == F_data_not) return; if (found_data) { - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; } else { state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop; @@ -91,7 +91,7 @@ extern "C" { } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) { + if (state->status == F_okay_eos || state->status == F_okay_stop) { ++contents->array[contents->used++].used; ++objects->used; @@ -100,9 +100,9 @@ extern "C" { if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_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_okay equivalents. if (objects->used > initial_used) { - state->status = (state->status == F_data_not_eos) ? F_none_eos : F_none_stop; + state->status = (state->status == F_data_not_eos) ? F_okay_eos : F_okay_stop; } return; @@ -125,7 +125,7 @@ extern "C" { ++contents->used; } - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -157,7 +157,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { if (content.used) { range.start = 0; range.stop = content.used - 1; diff --git a/level_2/fll_fss/c/fss/basic_list.h b/level_2/fll_fss/c/fss/basic_list.h index 1c80c7f..b0c6746 100644 --- a/level_2/fll_fss/c/fss/basic_list.h +++ b/level_2/fll_fss/c/fss/basic_list.h @@ -58,9 +58,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. @@ -107,9 +107,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location diff --git a/level_2/fll_fss/c/fss/embedded_list.c b/level_2/fll_fss/c/fss/embedded_list.c index 109df41..8526260 100644 --- a/level_2/fll_fss/c/fss/embedded_list.c +++ b/level_2/fll_fss/c/fss/embedded_list.c @@ -50,7 +50,7 @@ extern "C" { if (state->status == F_data_not) return; if (found_data) { - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -76,13 +76,13 @@ extern "C" { } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) return; + if (state->status == F_okay_eos || state->status == F_okay_stop) return; if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_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_okay equivalents. if (nest->depth[0].used > initial_used) { - state->status = (state->status == F_data_not_eos) ? F_none_eos : F_none_stop; + state->status = (state->status == F_data_not_eos) ? F_okay_eos : F_okay_stop; } return; @@ -90,9 +90,9 @@ extern "C" { if (state->status == F_end_not_eos || state->status == F_end_not_stop || state->status == F_end_not_nest_eos || state->status == F_end_not_nest_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_okay equivalents. if (nest->depth[0].used > initial_used) { - state->status = (state->status == F_data_not_eos) ? F_none_eos : F_data_not_stop; + state->status = (state->status == F_data_not_eos) ? F_okay_eos : F_data_not_stop; } return; @@ -105,7 +105,7 @@ extern "C" { if (range->start >= range->stop || range->start >= buffer.used) { // When content is found, the range->start is incremented, if content is found at range->stop, then range->start will be > range.stop. - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -130,7 +130,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { if (content.used) { range.start = 0; range.stop = content.used - 1; diff --git a/level_2/fll_fss/c/fss/embedded_list.h b/level_2/fll_fss/c/fss/embedded_list.h index 0010905..5eadd03 100644 --- a/level_2/fll_fss/c/fss/embedded_list.h +++ b/level_2/fll_fss/c/fss/embedded_list.h @@ -56,9 +56,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success (both valid object and valid content found with start location is at end of content). - * F_none_eos on success after reaching the end of the buffer (both valid object and valid content found with start location is at end of buffer). - * F_none_stop on success after reaching stopping point (both valid object and valid content found with start location is at stop point). + * F_okay on success (both valid object and valid content found with start location is at end of content). + * F_okay_eos on success after reaching the end of the buffer (both valid object and valid content found with start location is at end of buffer). + * F_okay_stop on success after reaching stopping point (both valid object and valid content found with start location is at stop point). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eol if there is no data to write and EOL was reached. * F_data_not_eos no data to write due start location being greater than or equal to buffer size. @@ -112,9 +112,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. diff --git a/level_2/fll_fss/c/fss/extended.c b/level_2/fll_fss/c/fss/extended.c index 667078d..3900515 100644 --- a/level_2/fll_fss/c/fss/extended.c +++ b/level_2/fll_fss/c/fss/extended.c @@ -16,7 +16,7 @@ extern "C" { } #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t initial_used = objects->used; bool found_data = F_false; @@ -81,7 +81,7 @@ extern "C" { if (state->status == F_data_not) return; if (found_data) { - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; } else { state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop; @@ -117,7 +117,7 @@ extern "C" { } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) { + if (state->status == F_okay_eos || state->status == F_okay_stop) { ++contents->array[contents->used++].used; ++objects->used; @@ -135,9 +135,9 @@ extern "C" { if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_stop || state->status == F_end_not_group_eos || state->status == F_end_not_group_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_okay equivelents. if (objects->used > initial_used) { - state->status = (state->status == F_data_not_eos) ? F_none_eos : F_none_stop; + state->status = (state->status == F_data_not_eos) ? F_okay_eos : F_okay_stop; } return; @@ -169,12 +169,12 @@ extern "C" { } if (range->start >= buffer.used) { - state->status = (state->status == F_end_not_group) ? F_end_not_group_eos : F_none_eos; + state->status = (state->status == F_end_not_group) ? F_end_not_group_eos : F_okay_eos; return; } - state->status = (state->status == F_end_not_group) ? F_end_not_group_stop : F_none_stop; + state->status = (state->status == F_end_not_group) ? F_end_not_group_stop : F_okay_stop; return; } @@ -214,7 +214,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { uint8_t complete = f_fss_complete_next_e; for (f_number_unsigned_t i = 0; i < contents.used; ++i) { diff --git a/level_2/fll_fss/c/fss/extended.h b/level_2/fll_fss/c/fss/extended.h index 5d0c333..a0291bc 100644 --- a/level_2/fll_fss/c/fss/extended.h +++ b/level_2/fll_fss/c/fss/extended.h @@ -61,9 +61,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_stop on success after reaching stopping point. - * F_none_eos on success after reaching the end of the buffer. + * F_okay on success. + * F_okay_stop on success after reaching stopping point. + * F_okay_eos on success after reaching the end of the buffer. * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_stop no data to write due start location being greater than stop location. * F_data_not_eos no data to write due start location being greater than or equal to buffer size. @@ -111,9 +111,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. diff --git a/level_2/fll_fss/c/fss/extended_list.c b/level_2/fll_fss/c/fss/extended_list.c index 08ae998..cbc037b 100644 --- a/level_2/fll_fss/c/fss/extended_list.c +++ b/level_2/fll_fss/c/fss/extended_list.c @@ -16,7 +16,7 @@ extern "C" { } #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t initial_used = objects->used; bool found_data = F_false; @@ -54,7 +54,7 @@ extern "C" { if (state->status == F_data_not) return; if (found_data) { - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; } else { state->status = (range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop; @@ -89,7 +89,7 @@ extern "C" { } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) { + if (state->status == F_okay_eos || state->status == F_okay_stop) { ++contents->array[contents->used++].used; ++objects->used; @@ -98,9 +98,9 @@ extern "C" { if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_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_okay equivalents. if (objects->used > initial_used) { - state->status = state->status == F_data_not_eos ? F_none_eos : F_none_stop; + state->status = state->status == F_data_not_eos ? F_okay_eos : F_okay_stop; } return; @@ -123,7 +123,7 @@ extern "C" { ++contents->used; } - state->status = (range->start >= buffer.used) ? F_none_eos : F_none_stop; + state->status = (range->start >= buffer.used) ? F_okay_eos : F_okay_stop; return; } @@ -155,7 +155,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { if (content.used) { range.start = 0; range.stop = content.used - 1; diff --git a/level_2/fll_fss/c/fss/extended_list.h b/level_2/fll_fss/c/fss/extended_list.h index c04308b..438cb17 100644 --- a/level_2/fll_fss/c/fss/extended_list.h +++ b/level_2/fll_fss/c/fss/extended_list.h @@ -60,9 +60,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success (both valid object and valid content found with start location is at end of content). - * F_none_eos on success after reaching the end of the buffer (both valid object and valid content found with start location is at end of buffer). - * F_none_stop on success after reaching stopping point (both valid object and valid content found with start location is at stop point). + * F_okay on success (both valid object and valid content found with start location is at end of content). + * F_okay_eos on success after reaching the end of the buffer (both valid object and valid content found with start location is at end of buffer). + * F_okay_stop on success after reaching stopping point (both valid object and valid content found with start location is at stop point). * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eol if there is no data to write and EOL was reached. * F_data_not_eos no data to write due start location being greater than or equal to buffer size. @@ -116,9 +116,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. diff --git a/level_2/fll_fss/c/fss/payload.c b/level_2/fll_fss/c/fss/payload.c index a601f02..4937a97 100644 --- a/level_2/fll_fss/c/fss/payload.c +++ b/level_2/fll_fss/c/fss/payload.c @@ -16,7 +16,7 @@ extern "C" { } #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t initial_used = objects->used; bool found_data = F_false; @@ -67,7 +67,7 @@ extern "C" { } if (found_data) { - state->status = F_status_set_error((range->start >= buffer.used) ? F_none_eos : F_none_stop); + state->status = F_status_set_error((range->start >= buffer.used) ? F_okay_eos : F_okay_stop); } else { state->status = F_status_set_error((range->start >= buffer.used) ? F_data_not_eos : F_data_not_stop); @@ -96,12 +96,12 @@ extern "C" { if (buffer.used > range->stop) { contents->array[contents->used].array[0].stop = range->stop; range->start = range->stop + 1; - state->status = F_none_stop; + state->status = F_okay_stop; } else { contents->array[contents->used].array[0].stop = buffer.used - 1; range->start = buffer.used; - state->status = F_none_eos; + state->status = F_okay_eos; } ++objects->used; @@ -141,7 +141,7 @@ extern "C" { } contents->array[contents->used++].used = 0; - state->status = F_none; + state->status = F_okay; return; } @@ -150,7 +150,7 @@ extern "C" { } } while (state->status == F_fss_found_object_not); - if (state->status == F_none_eos || state->status == F_none_stop) { + if (state->status == F_okay_eos || state->status == F_okay_stop) { ++contents->array[contents->used].used; ++objects->used; ++contents->used; @@ -163,11 +163,11 @@ extern "C" { if (state->status == F_data_not || state->status == F_data_not_eos || state->status == F_data_not_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_okay equivalents. if (objects->used > initial_used) { // Returning without a "payload" is an error. - state->status = (state->status == F_data_not_eos) ? F_status_set_error(F_none_eos) : F_status_set_error(F_none_stop); + state->status = (state->status == F_data_not_eos) ? F_status_set_error(F_okay_eos) : F_status_set_error(F_okay_stop); } else { state->status = F_status_set_error(state->status); @@ -194,7 +194,7 @@ extern "C" { } // Returning without a "payload" is an error. - state->status = F_status_set_error((range->start >= buffer.used) ? F_none_eos : F_none_stop); + state->status = F_status_set_error((range->start >= buffer.used) ? F_okay_eos : F_okay_stop); return; } @@ -232,7 +232,7 @@ extern "C" { return; } - if (state->status == F_none || state->status == F_none_stop || state->status == F_none_eos || state->status == F_none_eol) { + if (state->status == F_okay || state->status == F_okay_stop || state->status == F_okay_eos || state->status == F_okay_eol) { if (f_compare_dynamic(f_fss_payload_s, object) == F_equal_to) { state->status = f_string_dynamic_increase_by(content.used, destination); if (F_status_is_error(state->status)) return; diff --git a/level_2/fll_fss/c/fss/payload.h b/level_2/fll_fss/c/fss/payload.h index e39cc75..a50f02b 100644 --- a/level_2/fll_fss/c/fss/payload.h +++ b/level_2/fll_fss/c/fss/payload.h @@ -64,9 +64,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if buffer is empty (buffer.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. @@ -74,9 +74,9 @@ extern "C" { * F_fss_found_object_content_not (with error bit) When payload Content is missing. * F_data_not_eos (with error bit) no data to write due start location being greater than or equal to buffer size, except that no "payload" is found. * F_data_not_stop (with error bit) no data to write due start location being greater than stop location, except that no "payload" is found. - * F_none (with error bit) on success, except that no "payload" is found. - * F_none_eos (with error bit) on success after reaching the end of the buffer, except that no "payload" is found. - * F_none_stop (with error bit) on success after reaching stopping point, except that no "payload" is found. + * F_okay (with error bit) on success, except that no "payload" is found. + * F_okay_eos (with error bit) on success after reaching the end of the buffer, except that no "payload" is found. + * F_okay_stop (with error bit) on success after reaching stopping point, except that no "payload" is found. * F_number_overflow (with error bit) if the maximum buffer size is reached. * F_parameter (with error bit) if a parameter is invalid. * @@ -134,9 +134,9 @@ extern "C" { * All other statuses are ignored. * * This alters state.status: - * F_none on success. - * F_none_eos on success after reaching the end of the buffer. - * F_none_stop on success after reaching stopping point. + * F_okay on success. + * F_okay_eos on success after reaching the end of the buffer. + * F_okay_stop on success after reaching stopping point. * F_data_not if object or contents are empty (either object.used or contents.used is 0). * F_data_not_eos no data to write due start location being greater than or equal to buffer size. * F_data_not_stop no data to write due start location being greater than stop location. diff --git a/level_2/fll_fss_status_string/c/fss_status_string.c b/level_2/fll_fss_status_string/c/fss_status_string.c index 416a746..f07e239 100644 --- a/level_2/fll_fss_status_string/c/fss_status_string.c +++ b/level_2/fll_fss_status_string/c/fss_status_string.c @@ -37,7 +37,7 @@ extern "C" { if (!code) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; if (!name.used) return F_data_not; @@ -51,13 +51,13 @@ extern "C" { if (f_compare_dynamic(name, fll_fss_status_format_s) == F_equal_to) { *code = F_fss_format; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_format_eos_s) == F_equal_to) { *code = F_fss_format_eos; - return F_none; + return F_okay; } #endif // _di_fll_fss_status_error_ @@ -65,13 +65,13 @@ extern "C" { if (f_compare_dynamic(name, fll_fss_status_accepted_invalid_s) == F_equal_to) { *code = F_fss_accepted_invalid; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_accepted_invalid_eos_s) == F_equal_to) { *code = F_fss_accepted_invalid_eos; - return F_none; + return F_okay; } #endif // _di_fll_fss_status_warning_ @@ -79,31 +79,31 @@ extern "C" { if (f_compare_dynamic(name, fll_fss_status_found_object_s) == F_equal_to) { *code = F_fss_found_object; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_found_content_s) == F_equal_to) { *code = F_fss_found_content; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_found_object_not_s) == F_equal_to) { *code = F_fss_found_object_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_found_content_not_s) == F_equal_to) { *code = F_fss_found_content_not; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_found_object_content_not_s) == F_equal_to) { *code = F_fss_found_object_content_not; - return F_none; + return F_okay; } #endif // _di_fll_fss_status_success_ @@ -111,20 +111,20 @@ extern "C" { if (f_compare_dynamic(name, fll_fss_status_found_comment_s) == F_equal_to) { *code = F_fss_found_object; - return F_none; + return F_okay; } #endif // _di_fll_fss_status_codes_ if (f_compare_dynamic(name, fll_fss_status_status_code_first_s) == F_equal_to) { *code = F_fss_status_code_first; - return F_none; + return F_okay; } if (f_compare_dynamic(name, fll_fss_status_status_code_last_s) == F_equal_to) { *code = F_fss_status_code_last; - return F_none; + return F_okay; } return fl_status_string_from(name, code); @@ -200,7 +200,7 @@ extern "C" { return f_status_string_to(code, name); } - return F_none; + return F_okay; } #endif // _di_fl_status_string_to_ diff --git a/level_2/fll_fss_status_string/c/fss_status_string.h b/level_2/fll_fss_status_string/c/fss_status_string.h index 34585a4..c5b129d 100644 --- a/level_2/fll_fss_status_string/c/fss_status_string.h +++ b/level_2/fll_fss_status_string/c/fss_status_string.h @@ -103,7 +103,7 @@ extern "C" { * The status number a matched string represents. * * @return - * F_none on success. + * F_okay on success. * F_data_not if string is empty. * * F_data (with error bit) if not found. @@ -127,7 +127,7 @@ extern "C" { * The status name that represents the given code. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_2/fll_iki/c/iki.h b/level_2/fll_iki/c/iki.h index f3529e9..970376f 100644 --- a/level_2/fll_iki/c/iki.h +++ b/level_2/fll_iki/c/iki.h @@ -48,7 +48,7 @@ extern "C" { * The escaped string data is appended to this, so set the escaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -79,7 +79,7 @@ extern "C" { * The escaped string data is appended to this, so set the escaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -110,7 +110,7 @@ extern "C" { * The unescaped string data is appended to this, so set the unescaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote. @@ -140,7 +140,7 @@ extern "C" { * The unescaped string data is appended to this, so set the unescaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote. diff --git a/level_2/fll_iki/c/private-iki.c b/level_2/fll_iki/c/private-iki.c index 0af3b35..89d17dd 100644 --- a/level_2/fll_iki/c/private-iki.c +++ b/level_2/fll_iki/c/private-iki.c @@ -8,7 +8,7 @@ extern "C" { #if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_) f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) { - f_status_t status = F_none; + f_status_t status = F_okay; // Ensure escaped is at least the same size as content. if (content.used > escaped->size) { @@ -66,14 +66,14 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_) #if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_) f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) { - f_status_t status = F_none; + f_status_t status = F_okay; // Ensure escaped is at least the same size as content. if (content.used > unescaped->size) { @@ -183,7 +183,7 @@ extern "C" { } } // for - return F_none; + return F_okay; } #endif // !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_) diff --git a/level_2/fll_iki/c/private-iki.h b/level_2/fll_iki/c/private-iki.h index 36f0b60..5a7a3bf 100644 --- a/level_2/fll_iki/c/private-iki.h +++ b/level_2/fll_iki/c/private-iki.h @@ -32,7 +32,7 @@ extern "C" { * The escaped string data is appended to this, so set the escaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -63,7 +63,7 @@ extern "C" { * The unescaped string data is appended to this, so set the unescaped.used = 0 if "replace" behavior is desired. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote. diff --git a/level_2/fll_program/c/private-program.c b/level_2/fll_program/c/private-program.c index 3deadb7..1599715 100644 --- a/level_2/fll_program/c/private-program.c +++ b/level_2/fll_program/c/private-program.c @@ -10,7 +10,7 @@ extern "C" { { if (choices.used) { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t choice = 0; if (right) { @@ -63,7 +63,7 @@ extern "C" { private_fll_program_parameter_process_empty(&main->context, sets); } - return F_none; + return F_okay; } #endif // !defined(_di_fll_program_parameter_process_context_) || !defined(_di_fll_program_parameter_process_context_standard_) @@ -73,7 +73,7 @@ extern "C" { fl_print_format(" %Q%[%Q%]", print->to, symbol_short, print->set->standout, option_short, print->set->standout); fl_print_format(", %Q%[%Q%] %S%r", print->to, symbol_long, print->set->standout, option_long, print->set->standout, description, f_string_eol_s); - return F_none; + return F_okay; } #endif // !defined(_di_fll_program_print_help_option_) || !defined(_di_fll_program_print_help_option_standard_) diff --git a/level_2/fll_program/c/private-program.h b/level_2/fll_program/c/private-program.h index c32bd38..3262cfb 100644 --- a/level_2/fll_program/c/private-program.h +++ b/level_2/fll_program/c/private-program.h @@ -34,7 +34,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * F_data_not if "values" parameters were expected but not found. * * F_memory_not (with error bit) on out of memory. @@ -71,7 +71,7 @@ extern "C" { * A desciption associated with the option. * * @return - * F_none on success. + * F_okay on success. * * @see f_print_terminated() * @see fl_print_format() diff --git a/level_2/fll_program/c/program.c b/level_2/fll_program/c/program.c index c90ec82..6a2b45c 100644 --- a/level_2/fll_program/c/program.c +++ b/level_2/fll_program/c/program.c @@ -37,7 +37,7 @@ extern "C" { private_fll_program_parameter_process_empty(context, sets); - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_process_empty_ @@ -66,7 +66,7 @@ extern "C" { main->error.verbosity = main->message.verbosity; main->warning.verbosity = main->message.verbosity; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_process_verbosity_ @@ -99,7 +99,7 @@ extern "C" { main->error.verbosity = main->message.verbosity; main->warning.verbosity = main->message.verbosity; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_process_verbosity_standard_ @@ -109,7 +109,7 @@ extern "C" { if (!arguments || !destination) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; const f_number_unsigned_t start = destination->used; for (f_number_unsigned_t i = 0; i < values.used; ++i) { @@ -124,7 +124,7 @@ extern "C" { if (F_status_is_error(status)) break; if (status == F_data_not) { - status = F_none; + status = F_okay; } else { ++destination->used; @@ -135,7 +135,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (start == destination->used) return F_data_not; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_additional_append_ @@ -145,7 +145,7 @@ extern "C" { if (!arguments || !destination) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; const f_number_unsigned_t start = destination->used; for (f_number_unsigned_t i = 0; i < values.used; ++i) { @@ -159,7 +159,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (start == destination->used) return F_data_not; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_additional_mash_ @@ -169,7 +169,7 @@ extern "C" { if (!arguments || !destination) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; const f_number_unsigned_t start = destination->used; for (f_number_unsigned_t i = 0; i < values.used; ++i) { @@ -184,7 +184,7 @@ extern "C" { if (F_status_is_error(status)) break; if (status == F_data_not) { - status = F_none; + status = F_okay; } else { ++destination->used; @@ -195,7 +195,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (start == destination->used) return F_data_not; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_additional_rip_ @@ -205,7 +205,7 @@ extern "C" { if (!arguments || !destination) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; const f_number_unsigned_t start = destination->used; f_string_dynamic_t ripped = f_string_dynamic_t_initialize; @@ -229,7 +229,7 @@ extern "C" { if (F_status_is_error(status)) return status; if (start == destination->used) return F_data_not; - return F_none; + return F_okay; } #endif // _di_fll_program_parameter_additional_rip_mash_ @@ -472,7 +472,7 @@ extern "C" { const f_status_t status = f_signal_close(&program->signal); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_program_standard_set_down_ @@ -517,7 +517,7 @@ extern "C" { status = f_signal_mask(SIG_UNBLOCK, &program->signal.set, 0); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_program_standard_set_up_ diff --git a/level_2/fll_program/c/program.h b/level_2/fll_program/c/program.h index 4e6e465..f2aea88 100644 --- a/level_2/fll_program/c/program.h +++ b/level_2/fll_program/c/program.h @@ -56,7 +56,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * F_data_not if "values" parameters were expected but not found. * * F_memory_not (with error bit) on out of memory. @@ -88,7 +88,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * F_data_not if "values" parameters were expected but not found. * * F_memory_not (with error bit) on out of memory. @@ -118,7 +118,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ @@ -143,7 +143,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but choices.used is 0. * * F_parameter (with error bit) if a parameter is invalid. @@ -170,7 +170,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -200,7 +200,7 @@ extern "C" { * An array of dynamic strings each representing a console parameter. * * @return - * F_none on success. + * F_okay on success. * F_data_not if nothing to rip, no allocations or reallocations are performed. * * F_array_too_large (with error bit) if a buffer would exceed max length. @@ -229,7 +229,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if nothing to rip, no allocations or reallocations are performed. * * F_memory_not (with error bit) on out of memory. @@ -258,7 +258,7 @@ extern "C" { * An array of dynamic strings each representing a console parameter. * * @return - * F_none on success. + * F_okay on success. * F_data_not if nothing to rip, no allocations or reallocations are performed. * * F_memory_not (with error bit) on out of memory. @@ -288,7 +288,7 @@ extern "C" { * The destination string the source and glue are appended onto. * * @return - * F_none on success. + * F_okay on success. * F_data_not if nothing to rip, no allocations or reallocations are performed. * * F_memory_not (with error bit) on out of memory. @@ -319,7 +319,7 @@ extern "C" { * The program data. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -345,7 +345,7 @@ extern "C" { * The program data. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_2/fll_program/c/program/common.c b/level_2/fll_program/c/program/common.c index b505def..b1c83ab 100644 --- a/level_2/fll_program/c/program/common.c +++ b/level_2/fll_program/c/program/common.c @@ -20,7 +20,7 @@ extern "C" { if (!data) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; status = f_console_parameters_delete(&data->parameters); if (F_status_is_error(status)) return status; @@ -28,7 +28,7 @@ extern "C" { status = f_color_context_delete(&data->context); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_program_data_delete_ @@ -38,7 +38,7 @@ extern "C" { if (!data) return F_status_set_error(F_parameter); #endif // _di_level_2_parameter_checking_ - f_status_t status = F_none; + f_status_t status = F_okay; status = f_console_parameters_destroy(&data->parameters); if (F_status_is_error(status)) return status; @@ -46,7 +46,7 @@ extern "C" { status = f_color_context_destroy(&data->context); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_fll_program_data_destroy_ diff --git a/level_2/fll_program/c/program/common.h b/level_2/fll_program/c/program/common.h index 0644b9d..37666bc 100644 --- a/level_2/fll_program/c/program/common.h +++ b/level_2/fll_program/c/program/common.h @@ -166,7 +166,7 @@ extern "C" { * The program data object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -185,7 +185,7 @@ extern "C" { * The program data object. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_2/fll_program/c/program/print.c b/level_2/fll_program/c/program/print.c index c851e70..3ce37ca 100644 --- a/level_2/fll_program/c/program/print.c +++ b/level_2/fll_program/c/program/print.c @@ -30,7 +30,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_copyright_ @@ -48,7 +48,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_missing_file_ @@ -70,7 +70,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_missing_variable_not_zero_ @@ -92,7 +92,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_both_specified_same_amount_ @@ -116,7 +116,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_both_specified_same_amount_without_ @@ -138,7 +138,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_cannot_use_with_ @@ -162,7 +162,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_cannot_use_with_without_ @@ -182,7 +182,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_cannot_use_with_pipe_ @@ -206,7 +206,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_cannot_use_with_xor_ @@ -226,7 +226,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_empty_value_ @@ -250,7 +250,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_integer_less_than_ @@ -274,7 +274,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_integer_more_than_ @@ -296,7 +296,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_integer_not_ @@ -318,7 +318,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_integer_not_negative_ @@ -340,7 +340,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_integer_not_positive_ @@ -360,7 +360,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_missing_value_ @@ -382,7 +382,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_missing_value_requires_amount_ @@ -402,7 +402,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_must_specify_once_ @@ -424,7 +424,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_must_specify_once_value_ @@ -444,7 +444,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_process_ @@ -468,7 +468,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_range_start_before_stop_ @@ -488,7 +488,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_value_too_long_ @@ -506,7 +506,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_pipe_invalid_form_feed_ @@ -524,7 +524,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_pipe_missing_content_ @@ -542,7 +542,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_pipe_object_without_content_ @@ -557,7 +557,7 @@ extern "C" { fl_print_format(" %[Available Options:%] %r", print->to, print->set->important, print->set->important, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fll_program_print_help_header_ @@ -591,7 +591,7 @@ extern "C" { private_fll_program_print_help_option(print, f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, "Disable printing of first line."); private_fll_program_print_help_option(print, f_console_standard_short_line_last_no_s, f_console_standard_long_line_last_no_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Disable printing of last line."); - return F_none; + return F_okay; } #endif // _di_fll_program_print_help_option_standard_ @@ -603,7 +603,7 @@ extern "C" { fl_print_format(" %Q%[%Q%] %S%r", print->to, symbol_long, print->set->standout, option_long, print->set->standout, description, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fll_program_print_help_option_long_ @@ -615,7 +615,7 @@ extern "C" { fl_print_format(" %[%Q%] %S%r", print->to, print->set->standout, option_other, print->set->standout, description, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fll_program_print_help_option_other_ @@ -636,7 +636,7 @@ extern "C" { f_print_dynamic_raw(f_string_eol_s, print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_help_usage_ @@ -661,7 +661,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_signal_received_ @@ -678,7 +678,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_version_ diff --git a/level_2/fll_program/c/program/print.h b/level_2/fll_program/c/program/print.h index 9790b5c..c6e003e 100644 --- a/level_2/fll_program/c/program/print.h +++ b/level_2/fll_program/c/program/print.h @@ -24,7 +24,7 @@ extern "C" { * The print.verbosity is used to determine how much detail is printed (except for when _di_detailed_copyright_ is set). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -48,7 +48,7 @@ extern "C" { * This locks, uses, and unlocks the file stream. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -74,7 +74,7 @@ extern "C" { * The name of the variable that is not defined or has a length of 0. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -108,7 +108,7 @@ extern "C" { * The second parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -148,7 +148,7 @@ extern "C" { * The first and second parameter must be specified the same amount of times without this parameter. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -182,7 +182,7 @@ extern "C" { * The second parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -221,7 +221,7 @@ extern "C" { * The third parameter name (the without parameter). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -250,7 +250,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -295,7 +295,7 @@ extern "C" { * This represents the parameter that is an exclusive or with the second parameter. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -325,7 +325,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -359,7 +359,7 @@ extern "C" { * The string representing the number to not be less than. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -393,7 +393,7 @@ extern "C" { * The string representing the number to not be less than. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -425,7 +425,7 @@ extern "C" { * The value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -457,7 +457,7 @@ extern "C" { * The value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -489,7 +489,7 @@ extern "C" { * The value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -519,7 +519,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -551,7 +551,7 @@ extern "C" { * A string representing the amount of missing parameters. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -581,7 +581,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -613,7 +613,7 @@ extern "C" { * The value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -643,7 +643,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -677,7 +677,7 @@ extern "C" { * The range stop value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -700,7 +700,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -724,7 +724,7 @@ extern "C" { * This locks, uses, and unlocks the file stream. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -748,7 +748,7 @@ extern "C" { * This locks, uses, and unlocks the file stream. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -774,7 +774,7 @@ extern "C" { * This locks, uses, and unlocks the file stream. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -802,7 +802,7 @@ extern "C" { * The version number of the program. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -834,7 +834,7 @@ extern "C" { * A desciption associated with the option. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -862,7 +862,7 @@ extern "C" { * A desciption associated with the option. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -888,7 +888,7 @@ extern "C" { * A desciption associated with the option. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -912,7 +912,7 @@ extern "C" { * The color context. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -940,7 +940,7 @@ extern "C" { * Set parameters.used to 0 to disable. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -965,7 +965,7 @@ extern "C" { * The signal code received. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. @@ -989,7 +989,7 @@ extern "C" { * The version number of the program. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_3/byte_dump/c/main/byte_dump.c b/level_3/byte_dump/c/main/byte_dump.c index 8062e47..fc1af07 100644 --- a/level_3/byte_dump/c/main/byte_dump.c +++ b/level_3/byte_dump/c/main/byte_dump.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (byte_dump_main_flag_help_e | byte_dump_main_flag_version_e | byte_dump_main_flag_copyright_e)) { if (main->setting.flag & byte_dump_main_flag_help_e) { diff --git a/level_3/byte_dump/c/main/byte_dump.h b/level_3/byte_dump/c/main/byte_dump.h index 8d89d8c..6cc6294 100644 --- a/level_3/byte_dump/c/main/byte_dump.h +++ b/level_3/byte_dump/c/main/byte_dump.h @@ -80,7 +80,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * diff --git a/level_3/byte_dump/c/main/common.c b/level_3/byte_dump/c/main/common.c index ffc3700..f342cee 100644 --- a/level_3/byte_dump/c/main/common.c +++ b/level_3/byte_dump/c/main/common.c @@ -347,7 +347,7 @@ extern "C" { return; } - f_status_t status_files = F_none; + f_status_t status_files = F_okay; for (index = 0; index < main->program.parameters.remaining.used; ++index) { @@ -369,7 +369,7 @@ extern "C" { } if (F_status_is_error(main->setting.state.status)) { - if (status_files == F_none) { + if (status_files == F_okay) { if ((main->setting.flag & byte_dump_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } @@ -381,7 +381,7 @@ extern "C" { } } // for - if (status_files != F_none) { + if (status_files != F_okay) { main->setting.state.status = F_status_set_error(status_files); } } diff --git a/level_3/byte_dump/c/main/common.h b/level_3/byte_dump/c/main/common.h index c16719d..a70a33a 100644 --- a/level_3/byte_dump/c/main/common.h +++ b/level_3/byte_dump/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context_standard(). diff --git a/level_3/byte_dump/c/main/common/type.c b/level_3/byte_dump/c/main/common/type.c index 1503042..c492d91 100644 --- a/level_3/byte_dump/c/main/common/type.c +++ b/level_3/byte_dump/c/main/common/type.c @@ -21,7 +21,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->files); - return F_none; + return F_okay; } #endif // _di_byte_dump_setting_delete_ diff --git a/level_3/byte_dump/c/main/common/type.h b/level_3/byte_dump/c/main/common/type.h index 36f071f..da29b52 100644 --- a/level_3/byte_dump/c/main/common/type.h +++ b/level_3/byte_dump/c/main/common/type.h @@ -100,7 +100,7 @@ extern "C" { #define byte_dump_setting_t_initialize \ { \ byte_dump_main_flag_none_e, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ 0, \ 0, \ @@ -152,7 +152,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/byte_dump/c/main/print/data.c b/level_3/byte_dump/c/main/print/data.c index 8234d95..3188526 100644 --- a/level_3/byte_dump/c/main/print/data.c +++ b/level_3/byte_dump/c/main/print/data.c @@ -640,7 +640,7 @@ extern "C" { fl_print_format(" %[%r%]%r", print->to, print->set->notable, byte_dump_character_wall_s, print->set->notable, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_text_ @@ -682,7 +682,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_file_header_ diff --git a/level_3/byte_dump/c/main/print/data.h b/level_3/byte_dump/c/main/print/data.h index c31a687..ded0bf1 100644 --- a/level_3/byte_dump/c/main/print/data.h +++ b/level_3/byte_dump/c/main/print/data.h @@ -73,7 +73,7 @@ extern "C" { * If name.used is 0 then this is assumed to be the input pipe. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -103,7 +103,7 @@ extern "C" { * Will be reduced to 0 once used. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/byte_dump/c/main/print/error.c b/level_3/byte_dump/c/main/print/error.c index af0c5e5..79b6999 100644 --- a/level_3/byte_dump/c/main/print/error.c +++ b/level_3/byte_dump/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((byte_dump_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_error_ @@ -26,7 +26,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_error_file_ @@ -44,7 +44,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_file_code_invalid_ @@ -56,7 +56,7 @@ extern "C" { fll_print_format("%[%QNo files are specified, please pipe data or designate a file.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_error_file_none_ @@ -74,7 +74,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_file_read_ @@ -100,7 +100,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fll_program_print_error_parameter_first_greater_than_last_ @@ -124,7 +124,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_error_parameter_range_out_ diff --git a/level_3/byte_dump/c/main/print/error.h b/level_3/byte_dump/c/main/print/error.h index 0f544e7..002cacd 100644 --- a/level_3/byte_dump/c/main/print/error.h +++ b/level_3/byte_dump/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -77,7 +77,7 @@ extern "C" { * If name.used is 0 then this is assumed to be the input pipe. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -95,7 +95,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -116,7 +116,7 @@ extern "C" { * If name.used is 0 then this is assumed to be the input pipe. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -134,7 +134,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -160,7 +160,7 @@ extern "C" { * A string that is supposed to be a valid number within range (but is not). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/byte_dump/c/main/print/message.c b/level_3/byte_dump/c/main/print/message.c index 58187c5..580aeea 100644 --- a/level_3/byte_dump/c/main/print/message.c +++ b/level_3/byte_dump/c/main/print/message.c @@ -62,7 +62,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_byte_dump_print_message_help_ diff --git a/level_3/byte_dump/c/main/print/message.h b/level_3/byte_dump/c/main/print/message.h index 59f9ee0..d0a7e92 100644 --- a/level_3/byte_dump/c/main/print/message.h +++ b/level_3/byte_dump/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/byte_dump/c/main/process.c b/level_3/byte_dump/c/main/process.c index 5b45649..083a1df 100644 --- a/level_3/byte_dump/c/main/process.c +++ b/level_3/byte_dump/c/main/process.c @@ -288,7 +288,7 @@ extern "C" { } if (!F_status_is_error(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // byte_dump_process_file diff --git a/level_3/byte_dump/c/main/process.h b/level_3/byte_dump/c/main/process.h index 451c6d4..29aee2a 100644 --- a/level_3/byte_dump/c/main/process.h +++ b/level_3/byte_dump/c/main/process.h @@ -23,7 +23,7 @@ extern "C" { * The main program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on failure, usually when read() fails. * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. diff --git a/level_3/byte_dump/c/main/signal.c b/level_3/byte_dump/c/main/signal.c index 20c3667..f713b02 100644 --- a/level_3/byte_dump/c/main/signal.c +++ b/level_3/byte_dump/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/control/c/main/action.c b/level_3/control/c/main/action.c index 8328380..f9d818d 100644 --- a/level_3/control/c/main/action.c +++ b/level_3/control/c/main/action.c @@ -165,7 +165,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; @@ -224,7 +224,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_control_action_verify_ diff --git a/level_3/control/c/main/action.h b/level_3/control/c/main/action.h index 71cf354..037c486 100644 --- a/level_3/control/c/main/action.h +++ b/level_3/control/c/main/action.h @@ -51,7 +51,7 @@ extern "C" { * The main program data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) on parameter validation/verification failure. */ diff --git a/level_3/control/c/main/common.c b/level_3/control/c/main/common.c index 98730ad..375979f 100644 --- a/level_3/control/c/main/common.c +++ b/level_3/control/c/main/common.c @@ -483,7 +483,7 @@ extern "C" { } // for } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_control_setting_load_ diff --git a/level_3/control/c/main/common.h b/level_3/control/c/main/common.h index 4abdc52..c9cb894 100644 --- a/level_3/control/c/main/common.h +++ b/level_3/control/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). diff --git a/level_3/control/c/main/common/type.c b/level_3/control/c/main/common/type.c index 4c5d51d..9d67178 100644 --- a/level_3/control/c/main/common/type.c +++ b/level_3/control/c/main/common/type.c @@ -40,7 +40,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->actions); - return F_none; + return F_okay; } #endif // _di_control_setting_delete_ diff --git a/level_3/control/c/main/common/type.h b/level_3/control/c/main/common/type.h index 1730a0f..192320e 100644 --- a/level_3/control/c/main/common/type.h +++ b/level_3/control/c/main/common/type.h @@ -139,7 +139,7 @@ extern "C" { control_main_flag_none_e, \ 0, \ 0, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ f_string_range_t_initialize, \ f_socket_t_initialize, \ @@ -200,7 +200,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_3/control/c/main/control.c b/level_3/control/c/main/control.c index a84c778..ec9be63 100644 --- a/level_3/control/c/main/control.c +++ b/level_3/control/c/main/control.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (control_main_flag_help_e | control_main_flag_version_e | control_main_flag_copyright_e)) { if (main->setting.flag & control_main_flag_help_e) { @@ -120,7 +120,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_control_main_ diff --git a/level_3/control/c/main/control.h b/level_3/control/c/main/control.h index dd17517..31b9580 100644 --- a/level_3/control/c/main/control.h +++ b/level_3/control/c/main/control.h @@ -84,7 +84,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * diff --git a/level_3/control/c/main/packet.c b/level_3/control/c/main/packet.c index 56c11d5..55a12cf 100644 --- a/level_3/control/c/main/packet.c +++ b/level_3/control/c/main/packet.c @@ -44,7 +44,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; } - f_state_t state = macro_f_state_t_initialize_1(control_allocation_large_d, control_allocation_small_d, F_none, 0, 0, 0, &fll_program_standard_signal_handle, 0, (void *) main, 0); + f_state_t state = macro_f_state_t_initialize_1(control_allocation_large_d, control_allocation_small_d, F_okay, 0, 0, 0, &fll_program_standard_signal_handle, 0, (void *) main, 0); f_string_static_t contents_array[main->setting.actions.used]; f_string_statics_t contents = macro_f_string_statics_t_initialize_1(contents_array, 0, main->setting.actions.used); @@ -124,7 +124,7 @@ extern "C" { main->cache.packet.string[4] = main->cache.packet.used & 0xffu; #endif // _is_F_endian_big - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_control_packet_build_ @@ -163,7 +163,7 @@ extern "C" { header->action = 0; header->type = 0; - header->status = F_none; + header->status = F_okay; header->length = 0; f_number_unsigned_t i = 0; @@ -220,7 +220,7 @@ extern "C" { } { - f_state_t state = macro_f_state_t_initialize_1(control_allocation_large_d, control_allocation_small_d, F_none, 0, 0, 0, &fll_program_standard_signal_handle, 0, (void *) main, 0); + f_state_t state = macro_f_state_t_initialize_1(control_allocation_large_d, control_allocation_small_d, F_okay, 0, 0, 0, &fll_program_standard_signal_handle, 0, (void *) main, 0); f_string_range_t range_packet = macro_f_string_range_t_initialize_2(main->cache.large.used); fll_fss_basic_list_read(main->cache.large, &range_packet, &main->cache.packet_objects, &main->cache.packet_contents, &main->cache.delimits, 0, 0, &state); @@ -490,7 +490,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_control_packet_receive_ diff --git a/level_3/control/c/main/packet.h b/level_3/control/c/main/packet.h index e2e04ba..2c50698 100644 --- a/level_3/control/c/main/packet.h +++ b/level_3/control/c/main/packet.h @@ -23,7 +23,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * * F_too_large (with error bit) If the message is too large for the packet format to transmit. * @@ -81,7 +81,7 @@ extern "C" { * The main program data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_header_not (with error bit) If there is a problem processing the packet header. * F_memory_not (with error bit) On out of memory issues (this is passed through from called functions). @@ -138,7 +138,7 @@ extern "C" { * The main program data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_socket_write(). * diff --git a/level_3/control/c/main/print/debug.c b/level_3/control/c/main/print/debug.c index d22d59e..d39bff5 100644 --- a/level_3/control/c/main/print/debug.c +++ b/level_3/control/c/main/print/debug.c @@ -17,7 +17,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_debug_packet_header_object_and_content_ @@ -50,7 +50,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_debug_packet_message_ diff --git a/level_3/control/c/main/print/debug.h b/level_3/control/c/main/print/debug.h index a27e4b4..8b1485e 100644 --- a/level_3/control/c/main/print/debug.h +++ b/level_3/control/c/main/print/debug.h @@ -31,7 +31,7 @@ extern "C" { * The range representing the content where the content is found within the content string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -63,7 +63,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/control/c/main/print/error.c b/level_3/control/c/main/print/error.c index f074e17..21f04fa 100644 --- a/level_3/control/c/main/print/error.c +++ b/level_3/control/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((control_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_control_print_error_ @@ -26,7 +26,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_control_print_error_file_ @@ -56,7 +56,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_packet_response_ @@ -86,7 +86,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_packet_response_failure_ @@ -98,7 +98,7 @@ extern "C" { fll_print_format("%[%QNo actions provided.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_actions_none_ @@ -116,7 +116,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_not_ @@ -134,7 +134,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_basename_empty_ @@ -152,7 +152,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_directory_empty_ @@ -170,7 +170,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_empty_ @@ -188,7 +188,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_not_ @@ -206,7 +206,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_too_few_ @@ -226,7 +226,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_too_few_with_ @@ -244,7 +244,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_too_many_ @@ -264,7 +264,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_too_many_with_ @@ -284,7 +284,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_action_rule_with_unknown_ @@ -302,7 +302,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_value_empty_ @@ -320,7 +320,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_parameter_value_not_ @@ -332,7 +332,7 @@ extern "C" { fll_print_format("%[%QPipe input is not supported by this program.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_control_print_error_pipe_supported_not_ @@ -344,7 +344,7 @@ extern "C" { fll_print_format("%[%QThe received response is not a valid or supported packet.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_control_print_error_response_packet_valid_not_ @@ -356,7 +356,7 @@ extern "C" { fll_print_format("%[%QThe generated packet is too large, cannot send packet.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_control_print_error_request_packet_too_large_ @@ -374,7 +374,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_socket_file_failed_ @@ -392,7 +392,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_socket_file_missing_ @@ -410,7 +410,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_error_socket_file_not_ diff --git a/level_3/control/c/main/print/error.h b/level_3/control/c/main/print/error.h index 08ace68..f6d401f 100644 --- a/level_3/control/c/main/print/error.h +++ b/level_3/control/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -78,7 +78,7 @@ extern "C" { * A string representing the name of the status code from header.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -100,7 +100,7 @@ extern "C" { * A string representing the name of the status code from header.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -117,7 +117,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -137,7 +137,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -157,7 +157,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -177,7 +177,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -197,7 +197,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -217,7 +217,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -237,7 +237,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -259,7 +259,7 @@ extern "C" { * The additional parameter in which is requiring additional arguments that are not met. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -279,7 +279,7 @@ extern "C" { * The parameter representing an action. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -301,7 +301,7 @@ extern "C" { * The additional parameter in which is requiring additional arguments that are not met. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -322,7 +322,7 @@ extern "C" { * The additional parameter in which is requiring additional arguments that are not met. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -342,7 +342,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -362,7 +362,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -380,7 +380,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -398,7 +398,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -416,7 +416,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -436,7 +436,7 @@ extern "C" { * The socket file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -456,7 +456,7 @@ extern "C" { * The socket file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -476,7 +476,7 @@ extern "C" { * The socket file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/control/c/main/print/message.c b/level_3/control/c/main/print/message.c index 2cd0d9a..0a7c034 100644 --- a/level_3/control/c/main/print/message.c +++ b/level_3/control/c/main/print/message.c @@ -40,7 +40,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_message_help_ @@ -73,7 +73,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_message_packet_response_ diff --git a/level_3/control/c/main/print/message.h b/level_3/control/c/main/print/message.h index 9cbf157..48aa271 100644 --- a/level_3/control/c/main/print/message.h +++ b/level_3/control/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -58,7 +58,7 @@ extern "C" { * A string representing the name of the status code from header.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/control/c/main/print/warning.c b/level_3/control/c/main/print/warning.c index 75eb4d7..74a902d 100644 --- a/level_3/control/c/main/print/warning.c +++ b/level_3/control/c/main/print/warning.c @@ -18,7 +18,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_warning_packet_header_duplicate_object_ @@ -38,7 +38,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_warning_packet_process_string_to_failed_ @@ -56,7 +56,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_control_print_warning_packet_response_busy_ diff --git a/level_3/control/c/main/print/warning.h b/level_3/control/c/main/print/warning.h index 847632d..f3a44ab 100644 --- a/level_3/control/c/main/print/warning.h +++ b/level_3/control/c/main/print/warning.h @@ -29,7 +29,7 @@ extern "C" { * The repeated response header. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -52,7 +52,7 @@ extern "C" { * The status code representing the failure status returned by f_status_string_to(). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -76,7 +76,7 @@ extern "C" { * A string representing the name of the status code from header.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/control/c/main/signal.c b/level_3/control/c/main/signal.c index 2354590..7daac73 100644 --- a/level_3/control/c/main/signal.c +++ b/level_3/control/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/controller/c/common.c b/level_3/controller/c/common.c index 4ad0ab0..1d47805 100644 --- a/level_3/controller/c/common.c +++ b/level_3/controller/c/common.c @@ -222,7 +222,7 @@ extern "C" { f_string_dynamic_resize(0, &main->program.path_pid); f_string_dynamic_resize(0, &main->program.path_setting); - return F_none; + return F_okay; } #endif // _di_controller_main_delete_ @@ -607,7 +607,7 @@ extern "C" { if (!setting) return F_status_set_error(F_parameter); - return F_none; + return F_okay; } #endif // _di_controller_setting_delete_ @@ -708,7 +708,7 @@ extern "C" { controller_setting_delete(&main->setting); - return F_none; + return F_okay; } #endif // _di_controller_setting_unload_ diff --git a/level_3/controller/c/common.h b/level_3/controller/c/common.h index 1c800bf..f5a1d7f 100644 --- a/level_3/controller/c/common.h +++ b/level_3/controller/c/common.h @@ -566,7 +566,7 @@ extern "C" { * The main program data. * * @return - * F_none on success. + * F_okay on success. * * Status codes (with error bit) are returned on any problem. */ @@ -695,7 +695,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ @@ -718,7 +718,7 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). @@ -740,7 +740,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_3/controller/c/common/private-entry.h b/level_3/controller/c/common/private-entry.h index 9b7f63c..9be2711 100644 --- a/level_3/controller/c/common/private-entry.h +++ b/level_3/controller/c/common/private-entry.h @@ -302,7 +302,7 @@ extern "C" { * The entry item actions to resize. * * @return - * F_none on success. + * F_okay on success. * F_array_too_large (with error bit) if the resulting new size is bigger than the max array length. * * Errors (with error bit) from: f_memory_resize(). @@ -349,7 +349,7 @@ extern "C" { * The entry items to resize. * * @return - * F_none on success. + * F_okay on success. * F_array_too_large (with error bit) if the resulting new size is bigger than the max array length. * * Errors (with error bit) from: f_memory_resize(). diff --git a/level_3/controller/c/common/private-lock.c b/level_3/controller/c/common/private-lock.c index eec15c2..ef0f707 100644 --- a/level_3/controller/c/common/private-lock.c +++ b/level_3/controller/c/common/private-lock.c @@ -12,7 +12,7 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_busy) { - if (f_thread_mutex_delete(mutex) == F_none) { + if (f_thread_mutex_delete(mutex) == F_okay) { mutex = 0; } } @@ -30,7 +30,7 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_busy) { - if (f_thread_lock_delete(lock) == F_none) { + if (f_thread_lock_delete(lock) == F_okay) { lock = 0; } } diff --git a/level_3/controller/c/common/private-process.c b/level_3/controller/c/common/private-process.c index 637f98e..c0ef342 100644 --- a/level_3/controller/c/common/private-process.c +++ b/level_3/controller/c/common/private-process.c @@ -38,7 +38,7 @@ extern "C" { pids->used = length; } - return F_none; + return F_okay; } #endif // _di_controller_pids_resize_ @@ -99,7 +99,7 @@ extern "C" { #ifndef _di_controller_processs_resize_ f_status_t controller_processs_resize(const f_number_unsigned_t length, controller_processs_t * const processs) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = length; i < processs->size; ++i) { @@ -157,7 +157,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_controller_processs_resize_ diff --git a/level_3/controller/c/common/private-process.h b/level_3/controller/c/common/private-process.h index fde8556..c20aa16 100644 --- a/level_3/controller/c/common/private-process.h +++ b/level_3/controller/c/common/private-process.h @@ -179,7 +179,7 @@ extern "C" { * The pid array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + controller_common_allocation_small_d <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -201,7 +201,7 @@ extern "C" { * The pid array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -248,7 +248,7 @@ extern "C" { * The process array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + controller_common_allocation_small_d <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -270,7 +270,7 @@ extern "C" { * The process array to resize. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: controller_process_delete_simple(). * Errors (with error bit) from: f_memory_resize(). diff --git a/level_3/controller/c/common/private-rule.c b/level_3/controller/c/common/private-rule.c index 83a9078..48d9a33 100644 --- a/level_3/controller/c/common/private-rule.c +++ b/level_3/controller/c/common/private-rule.c @@ -166,7 +166,7 @@ extern "C" { ons->used = length; } - return F_none; + return F_okay; } #endif // _di_controller_rule_ons_resize_ @@ -214,7 +214,7 @@ extern "C" { rules->used = length; } - return F_none; + return F_okay; } #endif // _di_controller_rules_resize_ diff --git a/level_3/controller/c/common/private-rule.h b/level_3/controller/c/common/private-rule.h index fef5f57..df75278 100644 --- a/level_3/controller/c/common/private-rule.h +++ b/level_3/controller/c/common/private-rule.h @@ -490,7 +490,7 @@ extern "C" { * The actions to resize. * * @return - * F_none on success. + * F_okay on success. * F_array_too_large (with error bit) if the resulting new size is bigger than the max array length. * * Errors (with error bit) from: f_memory_resize(). @@ -581,7 +581,7 @@ extern "C" { * The on array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + controller_common_allocation_small_d <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -603,7 +603,7 @@ extern "C" { * The on array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. @@ -636,7 +636,7 @@ extern "C" { * The rule array to resize. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but there is no reason to increase size (used + controller_common_allocation_small_d <= size). * * F_array_too_large (with error bit) if the new array length is too large. @@ -658,7 +658,7 @@ extern "C" { * The rule array to resize. * * @return - * F_none on success. + * F_okay on success. * * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_3/controller/c/common/private-thread.h b/level_3/controller/c/common/private-thread.h index 96554ce..c14fc28 100644 --- a/level_3/controller/c/common/private-thread.h +++ b/level_3/controller/c/common/private-thread.h @@ -120,7 +120,7 @@ extern "C" { #define controller_thread_t_initialize { \ controller_thread_enabled_e, \ 0, \ - F_none, \ + F_okay, \ f_thread_id_t_initialize, \ f_thread_id_t_initialize, \ f_thread_id_t_initialize, \ diff --git a/level_3/controller/c/controller.c b/level_3/controller/c/controller.c index 98114f8..d30b20d 100644 --- a/level_3/controller/c/controller.c +++ b/level_3/controller/c/controller.c @@ -15,7 +15,7 @@ extern "C" { #ifndef _di_controller_main_ f_status_t controller_main(controller_main_t * const main, const f_console_arguments_t arguments) { - f_status_t status = F_none; + f_status_t status = F_okay; setting->state.step_small = controller_allocation_console_d; @@ -52,22 +52,22 @@ extern "C" { if (main->parameters.array[f_console_standard_parameter_help_e].result & f_console_result_found_e) { controller_print_help(main); - return F_none; + return F_okay; } if (main->parameters.array[f_console_standard_parameter_version_e].result & f_console_result_found_e) { fll_program_print_version(main->message, controller_program_version_s); - return F_none; + return F_okay; } if (main->parameters.array[f_console_standard_parameter_copyright_e].result & f_console_result_found_e) { fll_program_print_copyright(main->message); - return F_none; + return F_okay; } - status = F_none; + status = F_okay; f_string_static_t * const argv = main->parameters.arguments.array; diff --git a/level_3/controller/c/controller.h b/level_3/controller/c/controller.h index ba50e7d..1328b58 100644 --- a/level_3/controller/c/controller.h +++ b/level_3/controller/c/controller.h @@ -104,7 +104,7 @@ extern "C" { * The parameters passed to the process. * * @return - * F_none on success. + * F_okay on success. * F_child if this is a child process returning. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. diff --git a/level_3/controller/c/controller/private-controller.c b/level_3/controller/c/controller/private-controller.c index 4e36c4c..91ceabc 100644 --- a/level_3/controller/c/controller/private-controller.c +++ b/level_3/controller/c/controller/private-controller.c @@ -33,7 +33,7 @@ extern "C" { #ifndef _di_controller_file_load_ f_status_t controller_file_load(const controller_global_t global, const bool required, const f_string_static_t path_prefix, const f_string_static_t path_name, const f_string_static_t path_suffix, controller_cache_t * const cache) { - f_status_t status = F_none; + f_status_t status = F_okay; f_file_t file = f_file_t_initialize; cache->action.name_file.used = 0; @@ -135,14 +135,14 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_controller_file_load_ #ifndef _di_controller_file_pid_create_ f_status_t controller_file_pid_create(const pid_t pid, const f_string_static_t path) { - f_status_t status = F_none; + f_status_t status = F_okay; // The file exists, do not attempt to overwrite. if (f_file_exists(path, F_true) == F_true) { @@ -182,7 +182,7 @@ extern "C" { if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_controller_file_pid_create_ @@ -191,10 +191,10 @@ extern "C" { // Only delete if the file exists and there is no error while checking. if (f_file_exists(path, F_true) != F_true) { - return F_none; + return F_okay; } - f_status_t status = F_none; + f_status_t status = F_okay; f_file_t pid_file = f_file_t_initialize; status = f_file_stream_open(path, f_file_open_mode_read_s, &pid_file); @@ -315,7 +315,7 @@ extern "C" { return F_status_set_error(F_exist_not); } - return F_none; + return F_okay; } return status; @@ -350,7 +350,7 @@ extern "C" { return F_status_set_error(F_exist_not); } - return F_none; + return F_okay; } return status; @@ -394,7 +394,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_controller_path_canonical_relative_ @@ -402,7 +402,7 @@ extern "C" { f_status_t controller_perform_ready(const controller_global_t * const global, controller_cache_t * const cache, const bool is_entry) { if (!is_entry) { - return F_none; + return F_okay; } if (global->main->parameters.array[controller_parameter_validate_e].result & f_console_result_found_e) { @@ -421,10 +421,10 @@ extern "C" { controller_unlock_print_flush(global->main->output.to, global->thread); } - return F_none; + return F_okay; } - f_status_t status = F_none; + f_status_t status = F_okay; if (global->setting->entry.pid != controller_entry_pid_disable_e && !global->setting->path_pid.used) { status = controller_file_pid_create(global->main->pid, global->setting->path_pid); @@ -466,7 +466,7 @@ extern "C" { controller_unlock_print_flush(global->main->warning.to, global->thread); } - status = F_none; + status = F_okay; } else { global->setting->flag |= controller_setting_flag_pid_created_e; @@ -488,7 +488,7 @@ extern "C" { // Do not fail on non-memory errors related to creating the control socket. if (F_status_is_error(status) && F_status_set_fine(status) != F_memory) { - status = F_none; + status = F_okay; } }*/ @@ -499,7 +499,7 @@ extern "C" { #ifndef _di_controller_perform_ready_socket_ f_status_t controller_perform_ready_socket(const controller_global_t * const global, controller_cache_t * const cache, const bool is_entry) { - f_status_t status = F_none; + f_status_t status = F_okay; if (global->setting->control.flag & controller_control_flag_readonly_e) { if (f_file_exists(global->setting->path_control, F_true) != F_true) { @@ -672,7 +672,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_controller_perform_ready_socket_ @@ -783,9 +783,9 @@ extern "C" { #ifndef _di_controller_validate_define_name_ f_status_t controller_validate_environment_name(const f_string_static_t name) { - if (!name.used) return F_none; + if (!name.used) return F_okay; - f_status_t status = F_none; + f_status_t status = F_okay; if (name.string[0] != '_') { status = f_utf_is_alphabetic(name.string, name.used); @@ -811,9 +811,9 @@ extern "C" { #ifndef _di_controller_validate_has_graph_ f_status_t controller_validate_has_graph(const f_string_static_t name) { - if (!name.used) return F_none; + if (!name.used) return F_okay; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < name.used; i += macro_f_utf_byte_width(name.string[i])) { diff --git a/level_3/controller/c/controller/private-controller.h b/level_3/controller/c/controller/private-controller.h index 7004d4a..79175dd 100644 --- a/level_3/controller/c/controller/private-controller.h +++ b/level_3/controller/c/controller/private-controller.h @@ -53,7 +53,7 @@ extern "C" { * - timestamp: This is updated to reflect the last changed timestamp. * * @return - * F_none on success. + * F_okay on success. * F_file_found_not if required is FALSE and the file is not found. * * Errors (with error bit) from: f_file_stat(). @@ -79,7 +79,7 @@ extern "C" { * The file path to the pid file to create. * * @return - * F_none on success. + * F_okay on success. * F_access_denied if pid file is not created due to access denied errors. * F_directory_not if pid file is not created due to a parent directory is unavailable or invalid. * @@ -106,7 +106,7 @@ extern "C" { * The file path to the pid file to create. * * @return - * F_none on success. + * F_okay on success. * * F_number_not (with error bit) if the number from the pid file doesn't match the expected pid. * @@ -128,7 +128,7 @@ extern "C" { * The PID to be read. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_stream_close(). * Errors (with error bit) from: f_file_stream_open(). @@ -152,7 +152,7 @@ extern "C" { * The determined user ID. * * @return - * F_none on success. + * F_okay on success. * F_exist_not (with error bit) if failed to match the name to an ID. * F_number_too_large (with error bit) if the given ID is too large. * @@ -181,7 +181,7 @@ extern "C" { * The determined group ID. * * @return - * F_none on success. + * F_okay on success. * F_exist_not (with error bit) if failed to match the name to an ID. * F_number_too_large (with error bit) if the given ID is too large. * @@ -217,7 +217,7 @@ extern "C" { * The destination will be completely replaced on success. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fl_path_canonical(). * @@ -243,7 +243,7 @@ extern "C" { * If FALSE, then this operate as an exit. * * @return - * F_none on success. + * F_okay on success. * * Errors from controller_file_pid_create() are not returned, unless it is a memory error. * @@ -269,7 +269,7 @@ extern "C" { * If FALSE, then this operate as an exit. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success but socket file not created. * * Errors (with error bit) from: f_file_mode_set(). @@ -382,7 +382,7 @@ extern "C" { * @return * F_true on valid. * F_false on invalid. - * F_none if there is no string to validate (used = 0). + * F_okay if there is no string to validate (used = 0). * * Errors (with error bit) from: f_utf_is_alphabetic(). * Errors (with error bit) from: f_utf_is_alphabetic_digit(). @@ -403,7 +403,7 @@ extern "C" { * @return * F_true on valid. * F_false on invalid. - * F_none if there is no string to validate (used = 0). + * F_okay if there is no string to validate (used = 0). * * Errors (with error bit) from: f_utf_is_graph(). * diff --git a/level_3/controller/c/entry/private-entry.c b/level_3/controller/c/entry/private-entry.c index 0f7ebc5..6368b50 100644 --- a/level_3/controller/c/entry/private-entry.c +++ b/level_3/controller/c/entry/private-entry.c @@ -74,8 +74,8 @@ extern "C" { #ifndef _di_controller_entry_actions_read_ f_status_t controller_entry_actions_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache, controller_entry_actions_t *actions) { - f_status_t status = F_none; - f_status_t status_action = F_none; + f_status_t status = F_okay; + f_status_t status_action = F_okay; actions->used = 0; @@ -95,7 +95,7 @@ extern "C" { { controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_string_range_t range = content_range; status = fll_fss_extended_read(cache->buffer_file, state, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0); @@ -292,7 +292,7 @@ extern "C" { } } else { - action->status = F_none; + action->status = F_okay; } if (F_status_is_error(action->status)) { @@ -444,7 +444,7 @@ extern "C" { action->code |= controller_entry_rule_code_wait_d; } else { - if (action->status == F_none) { + if (action->status == F_okay) { action->status = F_status_set_error(F_support_not); if (F_status_is_error_not(status_action)) { @@ -524,7 +524,7 @@ extern "C" { } } - if (action->status == F_none) { + if (action->status == F_okay) { if (action->parameters.used == 2) { if (action->flag & controller_entry_action_flag_undefined_e) { action->flag -= controller_entry_action_flag_undefined_e; @@ -605,8 +605,8 @@ extern "C" { #ifndef _di_controller_entry_preprocess_ f_status_t controller_entry_preprocess(const controller_global_t global, const bool is_entry, controller_cache_t * const cache) { - f_status_t status = F_none; - f_status_t status2 = F_none; + f_status_t status = F_okay; + f_status_t status2 = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; @@ -838,8 +838,8 @@ extern "C" { #ifndef _di_controller_entry_process_ f_status_t controller_entry_process(const controller_global_t * const global, controller_cache_t * const cache, const bool failsafe, const bool is_entry) { - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; f_number_unsigned_t at_i = 0; f_number_unsigned_t at_j = 1; @@ -1514,7 +1514,7 @@ extern "C" { #ifndef _di_controller_entry_read_ f_status_t controller_entry_read(const controller_global_t global, const bool is_entry, controller_cache_t * const cache) { - f_status_t status = F_none; + f_status_t status = F_okay; controller_entry_t *entry = is_entry ? &global.setting->entry : &global.setting->exit; @@ -1577,7 +1577,7 @@ extern "C" { if (F_status_is_error_not(status)) { if (cache->buffer_file.used) { controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_file.used); status = fll_fss_basic_list_read(cache->buffer_file, state, &range, &cache->object_items, &cache->content_items, &cache->delimits, 0, &cache->comments); @@ -1862,7 +1862,7 @@ extern "C" { entry->status = controller_status_simplify_error(F_status_set_fine(status)); } else { - entry->status = F_none; + entry->status = F_okay; } return entry->status; @@ -1872,11 +1872,11 @@ extern "C" { #ifndef _di_controller_entry_settings_read_ f_status_t controller_entry_settings_read(const controller_global_t global, const bool is_entry, const f_string_range_t content_range, controller_cache_t * const cache) { - f_status_t status = F_none; + f_status_t status = F_okay; { controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_entry, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_string_range_t range = content_range; status = fll_fss_extended_read(cache->buffer_file, state, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0); @@ -2341,7 +2341,7 @@ extern "C" { ++setting_maps->used; - return F_none; + return F_okay; } #endif // _di_controller_entry_settings_read_map_ @@ -2354,7 +2354,7 @@ extern "C" { const f_string_static_t *string = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; diff --git a/level_3/controller/c/entry/private-entry.h b/level_3/controller/c/entry/private-entry.h index f19cdb7..a04a96a 100644 --- a/level_3/controller/c/entry/private-entry.h +++ b/level_3/controller/c/entry/private-entry.h @@ -56,7 +56,7 @@ extern "C" { * The processed actions. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: controller_entry_actions_increase_by(). * Errors (with error bit) from: f_fss_count_lines(). @@ -90,7 +90,7 @@ extern "C" { * The main/global cache to use. * * @return - * F_none on success. + * F_okay on success. * F_recurse (with error bit) on a recursion error. * F_valid_not (with error bit) on invalid entry item, entry item action, or entry item action value. * @@ -122,7 +122,7 @@ extern "C" { * If FALSE, then this operate as an exit. * * @return - * F_none on success. + * F_okay on success. * F_execute on success and program exiting (scripts may result in this) or when execute would have been executed but is instead simulated. * * F_require (with error bit) if a required Item failed. @@ -156,7 +156,7 @@ extern "C" { * This should be the cache global.thread->asynchronouss.array[global.id].cache. * * @return - * F_none on success. + * F_okay on success. * F_file_found_not on file not found for a an exit file (is_entry is FALSE). * * Errors (with error bit) from: controller_entry_actions_read(). diff --git a/level_3/controller/c/lock/private-lock.c b/level_3/controller/c/lock/private-lock.c index 311d2e8..1c9228f 100644 --- a/level_3/controller/c/lock/private-lock.c +++ b/level_3/controller/c/lock/private-lock.c @@ -32,7 +32,7 @@ extern "C" { status = f_thread_condition_create(0, &lock->alert_condition); if (F_status_is_error(status)) return status; - return F_none; + return F_okay; } #endif // _di_controller_lock_create_ @@ -41,7 +41,7 @@ extern "C" { struct timespec time; - f_status_t status = F_none; + f_status_t status = F_okay; for (;;) { @@ -82,7 +82,7 @@ extern "C" { struct timespec time; - f_status_t status = F_none; + f_status_t status = F_okay; for (;;) { diff --git a/level_3/controller/c/lock/private-lock.h b/level_3/controller/c/lock/private-lock.h index 6730c43..7564061 100644 --- a/level_3/controller/c/lock/private-lock.h +++ b/level_3/controller/c/lock/private-lock.h @@ -19,7 +19,7 @@ extern "C" { * The lock to allocate. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_thread_lock_delete(). * Errors (with error bit) from: f_thread_mutex_delete(). @@ -45,7 +45,7 @@ extern "C" { * The r/w lock to obtain a read lock on. * * @return - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit set) on (exit) signal received, lock will not be set when this is returned. * @@ -121,7 +121,7 @@ extern "C" { * The r/w lock to obtain a write lock on. * * @return - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit set) on (exit) signal received, lock will not be set when this is returned. * diff --git a/level_3/controller/c/print.c b/level_3/controller/c/print.c index f7904f8..35861a9 100644 --- a/level_3/controller/c/print.c +++ b/level_3/controller/c/print.c @@ -43,7 +43,7 @@ extern "C" { controller_unlock_print_flush(print.to, 0); - return F_none; + return F_okay; } #endif // _di_controller_print_help_ diff --git a/level_3/controller/c/print.h b/level_3/controller/c/print.h index caf5f19..867ad8f 100644 --- a/level_3/controller/c/print.h +++ b/level_3/controller/c/print.h @@ -23,7 +23,7 @@ extern "C" { * The output structure to print to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_controller_print_help_ diff --git a/level_3/controller/c/process/private-process.c b/level_3/controller/c/process/private-process.c index c172c35..977c15f 100644 --- a/level_3/controller/c/process/private-process.c +++ b/level_3/controller/c/process/private-process.c @@ -15,7 +15,7 @@ extern "C" { #ifndef _di_controller_process_find_ f_status_t controller_process_find(const f_number_unsigned_t action, const f_string_static_t alias, const controller_processs_t processs, f_number_unsigned_t *at) { - if (!alias.used) return F_none; + if (!alias.used) return F_okay; if (!processs.used) return F_false; for (f_number_unsigned_t i = 0; i < processs.used; ++i) { @@ -34,7 +34,7 @@ extern "C" { #ifndef _di_controller_process_prepare_ f_status_t controller_process_prepare(const controller_global_t global, const bool is_normal, const uint8_t action, const f_string_static_t alias, f_number_unsigned_t *id) { - f_status_t status = F_none; + f_status_t status = F_okay; if (controller_process_find(action, alias, global.thread->processs, id) == F_false) { f_thread_unlock(&global.thread->lock.process); @@ -65,7 +65,7 @@ extern "C" { if (F_status_is_error_not(status)) { process->id = global.thread->processs.used++; - status = F_none; + status = F_okay; if (id) { *id = process->id; @@ -109,8 +109,8 @@ extern "C" { struct timespec time; - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; uint8_t count = 0; @@ -151,7 +151,7 @@ extern "C" { if (!controller_rule_status_is_available(process->action, process->rule) && !(process->state == controller_process_state_active_e || process->state == controller_process_state_busy_e)) { f_thread_unlock(&process->lock); - return F_none; + return F_okay; } if (status != F_time) { diff --git a/level_3/controller/c/process/private-process.h b/level_3/controller/c/process/private-process.h index 9b5b550..ea273c8 100644 --- a/level_3/controller/c/process/private-process.h +++ b/level_3/controller/c/process/private-process.h @@ -36,7 +36,7 @@ extern "C" { * Set to NULL to not use. * * @return - * F_none on success. + * F_okay on success. * F_found on success, but nothing was done because an existing process was found. * * F_lock (with error bit) if failed to re-establish read lock on global.thread->lock.process while returning. @@ -106,7 +106,7 @@ extern "C" { * (optional) Set to NULL to disable. * * @return - * F_none if not given a valid id to search. + * F_okay if not given a valid id to search. * F_false if there is no process found. * F_true if there is a process found (address is stored in "at"). */ @@ -123,7 +123,7 @@ extern "C" { * The process to wait on. * * @return - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. * diff --git a/level_3/controller/c/rule/private-rule.c b/level_3/controller/c/rule/private-rule.c index 7b74e51..67fd274 100644 --- a/level_3/controller/c/rule/private-rule.c +++ b/level_3/controller/c/rule/private-rule.c @@ -43,7 +43,7 @@ extern "C" { #ifndef _di_controller_rule_find_ f_status_t controller_rule_find(const f_string_static_t alias, const controller_rules_t rules, f_number_unsigned_t *at) { - if (!alias.used) return F_none; + if (!alias.used) return F_okay; if (!rules.used) return F_false; for (f_number_unsigned_t i = 0; i < rules.used; ++i) { @@ -62,7 +62,7 @@ extern "C" { #ifndef _di_controller_rule_parameters_read_ f_status_t controller_rule_parameters_read(const controller_global_t global, const f_string_static_t buffer, f_string_range_t * const object, f_string_ranges_t * const content, controller_rule_action_t * const action, f_state_t * const state) { - f_status_t status = F_none; + f_status_t status = F_okay; action->parameters.used = 0; action->ikis.used = 0; @@ -169,7 +169,7 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_controller_rule_parameters_read_ @@ -219,10 +219,10 @@ extern "C" { #ifndef _di_controller_rule_action_read_ f_status_t controller_rule_action_read(const controller_global_t global, const bool is_normal, const uint8_t type, const uint8_t method, controller_cache_t * const cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) { - f_status_t status = F_none; + f_status_t status = F_okay; controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_number_unsigned_t i = 0; @@ -672,7 +672,7 @@ extern "C" { #ifndef _di_controller_rule_action_read_rerun_number_ f_status_t controller_rule_action_read_rerun_number(const controller_global_t global, const f_string_t name, controller_cache_t * const cache, f_number_unsigned_t * const index, f_number_unsigned_t * const number) { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_signed_t parsed = 0; if (*index + 1 == cache->content_action.used) { @@ -734,7 +734,7 @@ extern "C" { *number = (f_number_unsigned_t) parsed; - return F_none; + return F_okay; } #endif // _di_controller_rule_action_read_rerun_number_ @@ -794,7 +794,7 @@ extern "C" { destination->ons.used = 0; destination->items.used = 0; - f_status_t status = F_none; + f_status_t status = F_okay; status = f_string_dynamic_append(source.alias, &destination->alias); if (F_status_is_error(status)) return status; @@ -948,7 +948,7 @@ extern "C" { #ifndef _di_controller_rule_execute_ f_status_t controller_rule_execute(const controller_global_t global, const uint8_t action, const uint8_t options, controller_process_t * const process) { - f_status_t status = F_none; + f_status_t status = F_okay; f_status_t success = F_false; f_number_unsigned_t i = 0; @@ -1390,15 +1390,15 @@ extern "C" { return F_ignore; } - return F_none; + return F_okay; } #endif // _di_controller_rule_execute_ #ifndef _di_controller_rule_execute_foreground_ f_status_t controller_rule_execute_foreground(const uint8_t type, const f_string_static_t program, const f_string_statics_t arguments, const uint8_t options, controller_execute_set_t * const execute_set, controller_process_t * const process) { - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; controller_main_t * const main = (controller_main_t *) process->main_data; controller_thread_t * const thread = (controller_thread_t *) process->main_thread; @@ -1492,7 +1492,7 @@ extern "C" { if (F_status_set_fine(status_lock) != F_interrupt) { status = controller_lock_read_process(process, thread, &process->lock); - if (status == F_none) { + if (status == F_okay) { return status_lock; } } @@ -1518,14 +1518,14 @@ extern "C" { } if (F_status_set_fine(status_lock) == F_interrupt || !controller_thread_is_enabled_process(process, thread)) { - if (status_lock == F_none) { + if (status_lock == F_okay) { return F_status_set_error(F_interrupt); } return F_status_set_error(F_lock); } - if (status_lock == F_none) { + if (status_lock == F_okay) { f_thread_unlock(&process->lock); } @@ -1537,7 +1537,7 @@ extern "C" { if (F_status_set_fine(status_lock) != F_interrupt) { status = controller_lock_read_process(process, thread, &process->lock); - if (status == F_none) { + if (status == F_okay) { return status_lock; } } @@ -1564,7 +1564,7 @@ extern "C" { status = F_status_set_error(F_failure); } else { - status = F_none; + status = F_okay; } } else { @@ -1610,8 +1610,8 @@ extern "C" { #ifndef _di_controller_rule_execute_pid_with_ f_status_t controller_rule_execute_pid_with(const f_string_dynamic_t pid_file, const uint8_t type, const f_string_static_t program, const f_string_statics_t arguments, const uint8_t options, const uint8_t with, controller_execute_set_t * const execute_set, controller_process_t * const process) { - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; controller_main_t * const main = (controller_main_t *) process->main_data; controller_thread_t * const thread = (controller_thread_t *) process->main_thread; @@ -1749,7 +1749,7 @@ extern "C" { if (F_status_set_fine(status_lock) != F_interrupt) { status = controller_lock_read_process(process, thread, &process->lock); - if (status == F_none) { + if (status == F_okay) { return status_lock; } } @@ -1775,14 +1775,14 @@ extern "C" { } if (!controller_thread_is_enabled_process(process, thread)) { - if (status_lock == F_none) { + if (status_lock == F_okay) { return F_status_set_error(F_interrupt); } return F_status_set_error(F_lock); } - if (status_lock == F_none) { + if (status_lock == F_okay) { f_thread_unlock(&process->lock); } @@ -1794,7 +1794,7 @@ extern "C" { if (F_status_set_fine(status_lock) != F_interrupt) { status = controller_lock_read_process(process, thread, &process->lock); - if (status == F_none) { + if (status == F_okay) { return status_lock; } } @@ -1821,7 +1821,7 @@ extern "C" { status = F_status_set_error(F_failure); } else { - status = F_none; + status = F_okay; } } else { @@ -1936,7 +1936,7 @@ extern "C" { process->cache.expanded.used = 0; if (!action.parameters.used) { - return F_none; + return F_okay; } f_status_t status = f_string_dynamics_increase_by(action.parameters.used, &process->cache.expanded); @@ -2009,17 +2009,17 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - return F_none; + return F_okay; } #endif // _di_controller_rule_expand_ #ifndef _di_controller_rule_expand_iki_ f_status_t controller_rule_expand_iki(controller_process_t * const process, const f_string_static_t source, const f_string_range_t vocabulary, const f_string_range_t content, f_string_dynamic_t * const destination) { - if (vocabulary.start > vocabulary.stop) return F_none; - if (content.start > content.stop) return F_none; + if (vocabulary.start > vocabulary.stop) return F_okay; + if (content.start > content.stop) return F_okay; - f_status_t status = F_none; + f_status_t status = F_okay; if (f_compare_dynamic_partial_string(controller_define_s.string, source, controller_define_s.used, vocabulary) == F_equal_to) { f_number_unsigned_t i = 0; @@ -2302,14 +2302,14 @@ extern "C" { } // for } - return F_none; + return F_okay; } #endif // _di_controller_rule_expand_iki_ #ifndef _di_controller_rule_id_construct_ f_status_t controller_rule_id_construct(const controller_global_t global, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t * const alias) { - f_status_t status = F_none; + f_status_t status = F_okay; alias->used = 0; @@ -2358,9 +2358,9 @@ extern "C" { #ifndef _di_controller_rule_item_read_ f_status_t controller_rule_item_read(const controller_global_t global, const bool is_normal, controller_cache_t * const cache, controller_rule_item_t * const item) { - f_status_t status = F_none; + f_status_t status = F_okay; controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_item.used); f_number_unsigned_t last = 0; @@ -2579,8 +2579,8 @@ extern "C" { return F_status_set_error(F_parameter); } - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; process->cache.action.name_action.used = 0; process->cache.action.name_item.used = 0; @@ -3112,8 +3112,8 @@ extern "C" { return F_status_set_error(F_interrupt); } - f_status_t status = F_none; - f_status_t status_lock = F_none; + f_status_t status = F_okay; + f_status_t status_lock = F_okay; controller_process_t *process = 0; @@ -3329,14 +3329,14 @@ extern "C" { return status; } - return F_none; + return F_okay; } #endif // _di_controller_rule_process_begin_ #ifndef _di_controller_rule_process_do_ f_status_t controller_rule_process_do(const uint8_t options_force, controller_process_t * const process) { - f_status_t status_lock = F_none; + f_status_t status_lock = F_okay; controller_global_t global = macro_controller_global_t_initialize_1((controller_main_t *) process->main_data, (controller_setting_t *) process->main_setting, (controller_thread_t *) process->main_thread); @@ -3363,7 +3363,7 @@ extern "C" { return status_lock; } - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t id_rule = 0; @@ -3617,7 +3617,7 @@ extern "C" { #ifndef _di_controller_rule_read_ f_status_t controller_rule_read(const controller_global_t global, const bool is_normal, const f_string_static_t alias, controller_cache_t * const cache, controller_entry_t * const entry, controller_rule_t * const rule) { - f_status_t status = F_none; + f_status_t status = F_okay; bool for_item = F_true; @@ -3732,7 +3732,7 @@ extern "C" { rule->items.array[i].actions.array[j].type = 0; rule->items.array[i].actions.array[j].line = 0; - rule->items.array[i].actions.array[j].status = F_none; + rule->items.array[i].actions.array[j].status = F_okay; rule->items.array[i].actions.array[j].parameters.used = 0; rule->items.array[i].actions.array[j].ikis.used = 0; @@ -3787,7 +3787,7 @@ extern "C" { if (cache->buffer_file.used) { controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_file.used); status = fll_fss_basic_list_read(cache->buffer_file, state, &range, &cache->object_items, &cache->content_items, &cache->delimits, 0, &cache->comments); @@ -3939,21 +3939,21 @@ extern "C" { return rule->status[0]; } - return F_none; + return F_okay; } #endif // _di_controller_rule_read_ #ifndef _di_controller_rule_setting_read_ f_status_t controller_rule_setting_read(const controller_global_t global, const bool is_normal, const controller_setting_t setting, controller_cache_t * const cache, controller_rule_t * const rule) { - f_status_t status = F_none; - f_status_t status_return = F_none; + f_status_t status = F_okay; + f_status_t status_return = F_okay; f_string_range_t range = macro_f_string_range_t_initialize_2(cache->buffer_item.used); f_string_range_t range2 = f_string_range_t_initialize; controller_state_interrupt_t custom = macro_controller_state_interrupt_t_initialize_1(is_normal, global.thread); - f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_none, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); + f_state_t state = macro_f_state_t_initialize_1(controller_common_allocation_large_d, controller_common_allocation_small_d, F_okay, 0, 0, 0, &controller_thread_signal_state_fss, 0, (void *) &custom, 0); status = fll_fss_extended_read(cache->buffer_item, state, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0); @@ -6195,7 +6195,7 @@ extern "C" { return F_data_not; } - f_status_t status = F_none; + f_status_t status = F_okay; bool required_not_run = F_false; bool skip = F_false; @@ -6273,7 +6273,7 @@ extern "C" { if (process_list[i]->state == controller_process_state_done_e) { f_thread_unlock(&process_list[i]->active); - if (f_thread_lock_write_try(&process_list[i]->active) == F_none) { + if (f_thread_lock_write_try(&process_list[i]->active) == F_okay) { controller_thread_join(&process_list[i]->id_thread); process_list[i]->state = controller_process_state_idle_e; @@ -6383,7 +6383,7 @@ extern "C" { return F_require; } - return F_none; + return F_okay; } #endif // _di_controller_rule_wait_all_ diff --git a/level_3/controller/c/rule/private-rule.h b/level_3/controller/c/rule/private-rule.h index 8e6b7e0..4024f56 100644 --- a/level_3/controller/c/rule/private-rule.h +++ b/level_3/controller/c/rule/private-rule.h @@ -55,7 +55,7 @@ extern "C" { * (optional) Set to NULL to disable. * * @return - * F_none on success, but the id.used is 0. + * F_okay on success, but the id.used is 0. * F_true on success and rule was found, index is updated. * F_false on success and rule was not found. */ @@ -84,7 +84,7 @@ extern "C" { * The state data for passing to fl_iki_read(). * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_fss_count_lines(). * Errors (with error bit) from: f_memory_array_increase(). @@ -146,7 +146,7 @@ extern "C" { * This is expected to be set to a position immediately after a valid object read. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: controller_rule_actions_increase_by(). * Errors (with error bit) from: controller_rule_parameters_read(). @@ -171,7 +171,7 @@ extern "C" { * The destination rule to copy to. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_capability_copy(). * Errors (with error bit) from: f_control_group_copy(). @@ -220,7 +220,7 @@ extern "C" { * The process data for processing this rule. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * F_ignore if the rule is unknown and nothing can be done. * @@ -256,7 +256,7 @@ extern "C" { * The process data for processing this rule. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. @@ -297,7 +297,7 @@ extern "C" { * The process data for processing this rule. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_file_found (with error bit) if the PID file already exists. @@ -346,7 +346,7 @@ extern "C" { * The process information. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: controller_rule_expand_iki(). * @@ -371,7 +371,7 @@ extern "C" { * The buffer to expand into. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_environment_get(). * Errors (with error bit) from: f_string_dynamic_append(). @@ -398,7 +398,7 @@ extern "C" { * The constructed alias. * * @return - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_partial_append_nulless(). * @@ -461,7 +461,7 @@ extern "C" { * The processed item. * * @return - * F_none on success. + * F_okay on success. * F_valid_not (with error bit) on invalid data. * * Errors (with error bit) from: f_fss_count_lines(). @@ -486,7 +486,7 @@ extern "C" { * The items to resize. * * @return - * F_none on success. + * F_okay on success. * F_array_too_large (with error bit) if the resulting new size is bigger than the max array length. * * Errors (with error bit) from: f_memory_resize(). @@ -515,7 +515,7 @@ extern "C" { * The process data for processing this rule. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * F_failure on execution failure. * @@ -554,7 +554,7 @@ extern "C" { * A structure for containing and caching relevant data. * * @return - * F_none on success. + * F_okay on success. * F_busy on success and the process was found to already be running (nothing to do). * * F_found_not (with error bit) if unable to for a process for the given rule id. @@ -590,7 +590,7 @@ extern "C" { * The process data. * * @return - * F_none on success. + * F_okay on success. * F_found on the process was found to already be running (nothing to do). * F_process_not if the process was not executed because it is a "consider" Action. * @@ -631,7 +631,7 @@ extern "C" { * The rule status will be updated by this function. * * @return - * F_none on success. + * F_okay on success. * * Simplified status (with error bit) from controller_status_simplify_error() on failure. * @@ -666,7 +666,7 @@ extern "C" { * The processed number will be saved here. * * @return - * F_none on success. + * F_okay on success. * * F_valid_not (with error bit) on failure due to invalid value. * @@ -700,7 +700,7 @@ extern "C" { * The processed rule. * * @return - * F_none on success. + * F_okay on success. * * F_valid_not (with error bit) on success but there were one or more invalid settings encountered. * @@ -763,7 +763,7 @@ extern "C" { * If FALSE, process all waits, returning normally (required rules still result in failure). * * @return - * F_none on success. + * F_okay on success. * F_data_not on success and nothing to do. * F_require on success, but a required rule has not been run yet. * diff --git a/level_3/controller/c/thread/private-thread.c b/level_3/controller/c/thread/private-thread.c index 85bbbe3..e8935fa 100644 --- a/level_3/controller/c/thread/private-thread.c +++ b/level_3/controller/c/thread/private-thread.c @@ -27,7 +27,7 @@ extern "C" { const struct timespec delay = controller_time_seconds((global->main->parameters.array[controller_parameter_simulate_e].result & f_console_result_found_e) ? controller_thread_cleanup_interval_short_d : controller_thread_cleanup_interval_long_d); - f_status_t status = F_none; + f_status_t status = F_okay; while (global->thread->enabled == controller_thread_enabled_e) { @@ -35,7 +35,7 @@ extern "C" { if (global->thread->enabled != controller_thread_enabled_e) break; - if (f_thread_lock_write_try(&global->thread->lock.process) == F_none) { + if (f_thread_lock_write_try(&global->thread->lock.process) == F_okay) { controller_process_t *process = 0; f_number_unsigned_t i = 0; @@ -47,12 +47,12 @@ extern "C" { process = global->thread->processs.array[i]; // If "active" has a read lock, then do not attempt to clean it. - if (f_thread_lock_write_try(&process->active) != F_none) { + if (f_thread_lock_write_try(&process->active) != F_okay) { continue; } // If "lock" has a read or write lock, then do not attempt to clean it. - if (f_thread_lock_write_try(&process->lock) != F_none) { + if (f_thread_lock_write_try(&process->lock) != F_okay) { f_thread_unlock(&process->active); continue; @@ -197,7 +197,7 @@ extern "C" { #ifndef _di_controller_thread_main_ f_status_t controller_thread_main(controller_main_t * const main, controller_setting_t * const setting) { - f_status_t status = F_none; + f_status_t status = F_okay; controller_thread_t thread = controller_thread_t_initialize; controller_global_t global = macro_controller_global_t_initialize_1(main, setting, &thread); @@ -346,7 +346,7 @@ extern "C" { return F_status_set_error(F_interrupt); } - return F_none; + return F_okay; } #endif // _di_controller_thread_main_ diff --git a/level_3/controller/c/thread/private-thread.h b/level_3/controller/c/thread/private-thread.h index 2d80f29..ebfae6f 100644 --- a/level_3/controller/c/thread/private-thread.h +++ b/level_3/controller/c/thread/private-thread.h @@ -37,7 +37,7 @@ extern "C" { * The thread ID. * * @return - * F_none on success. + * F_okay on success. * * Success from: f_thread_detach(). * @@ -111,7 +111,7 @@ extern "C" { * The controller settings data. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_failure (with error bit) on any failure. @@ -130,7 +130,7 @@ extern "C" { * The thread ID. * * @return - * F_none on success. + * F_okay on success. * * Success from: f_thread_join(). * diff --git a/level_3/controller/c/thread/private-thread_control.c b/level_3/controller/c/thread/private-thread_control.c index 3f0142f..a14ad14 100644 --- a/level_3/controller/c/thread/private-thread_control.c +++ b/level_3/controller/c/thread/private-thread_control.c @@ -19,7 +19,7 @@ extern "C" { if (global->thread->enabled != controller_thread_enabled_e) return 0; - f_status_t status = F_none; + f_status_t status = F_okay; if (status == F_child) { diff --git a/level_3/controller/c/thread/private-thread_process.c b/level_3/controller/c/thread/private-thread_process.c index 039e189..37050a9 100644 --- a/level_3/controller/c/thread/private-thread_process.c +++ b/level_3/controller/c/thread/private-thread_process.c @@ -59,7 +59,7 @@ extern "C" { controller_entry_t *entry = 0; controller_process_t *process = 0; - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; pid_t pid = 0; diff --git a/level_3/controller/data/documentation/man/man5/controller-packet.5 b/level_3/controller/data/documentation/man/man5/controller-packet.5 index 310237f..c62cc93 100644 --- a/level_3/controller/data/documentation/man/man5/controller-packet.5 +++ b/level_3/controller/data/documentation/man/man5/controller-packet.5 @@ -90,13 +90,13 @@ Packet Structure: The \fBheader\fR Object contains the following \fBFSS\-0001 (Extended)\fR Objects (depending on \fBtype\fR): \- \fBaction\fR: A valid action type: \fBfreeze\fR, \fBkexec\fR, \fBkill\fR, \fBpause\fR, \fBreboot\fR, \fBreload\fR, \fBrerun\fR, \fBrestart\fR, \fBresume\fR, \fBshutdown\fR, \fBstart\fR, \fBstop\fR, or \fBthaw\fR. \- \fBlength\fR: A positive whole number inclusively between 0 and 4294965248 representing the length of the \fBpayload\fR (may be in binary, octal, decimal, duodecimal, or hexidecimal). - \- \fBstatus\fR: The status code name or number representing an FSS status code, such as F_none, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). + \- \fBstatus\fR: The status code name or number representing an FSS status code, such as F_okay, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). \- \fBtype\fR: The packet type that is one of \fBcontroller\fR, \fBerror\fR, or \fBinit\fR. When there are multiple Objects of the same name inside the \fBheader\fR: \- \fBaction\fR: The order represents the order in which the actions are performed. \- \fBlength\fR: There may only be one length Object, all others after the first are ignored (may be in binary, octal, decimal, duodecimal, or hexidecimal). - \- \fBstatus\fR: A status for each action, in the same order as the order of the action, such as F_none, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). + \- \fBstatus\fR: A status for each action, in the same order as the order of the action, such as F_okay, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). \- \fBtype\fR: The first represent the type and all others represents a sub\-type. There are different headers and payload properties based on the \fBtype\fR. diff --git a/level_3/controller/specifications/packet.txt b/level_3/controller/specifications/packet.txt index 91d2bb6..b76ee3e 100644 --- a/level_3/controller/specifications/packet.txt +++ b/level_3/controller/specifications/packet.txt @@ -24,13 +24,13 @@ Packet Specification: The code:"header" Object contains the following code:"FSS-0001 (Extended)" Objects (depending on code:"type")\: - code:"action": A valid action type: code:"freeze", code:"kexec", code:"kill", code:"pause", code:"reboot", code:"reload", code:"rerun", code:"restart", code:"resume", code:"shutdown", code:"start", code:"stop", or code:"thaw". - code:"length": A positive whole number inclusively between 0 and 4294965248 representing the length of the code:"payload" (may be in binary, octal, decimal, duodecimal, or hexidecimal). - - code:"status": The status code name or number representing an FSS status code, such as F_none, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). + - code:"status": The status code name or number representing an FSS status code, such as F_okay, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). - code:"type": The packet type that is one of code:"controller", code:"error", or code:"init". When there are multiple Objects of the same name inside the code:"header"\: - code:"action": The order represents the order in which the actions are performed. - code:"length": There may only be one length Object, all others after the first are ignored (may be in binary, octal, decimal, duodecimal, or hexidecimal). - - code:"status": A status for each action, in the same order as the order of the action, such as F_none, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). + - code:"status": A status for each action, in the same order as the order of the action, such as F_okay, F_failure, or 200 (where a number may have error and warning bits and may be in binary, octal, decimal, duodecimal, or hexidecimal). - code:"type": The first represent the type and all others represents a sub-type. There are different headers and payload properties based on the code:"type". diff --git a/level_3/fake/c/main/build.c b/level_3/fake/c/main/build.c index f23ac15..7b205a8 100644 --- a/level_3/fake/c/main/build.c +++ b/level_3/fake/c/main/build.c @@ -135,7 +135,7 @@ extern "C" { } // for } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_build_arguments_standard_add_ @@ -150,7 +150,7 @@ extern "C" { fake_main_t * const main = data->main; f_string_static_t buffer = f_string_static_t_initialize; - f_status_t failed = F_none; + f_status_t failed = F_okay; fake_local_t local = macro_fake_local_t_initialize_1(main, &main->cache_map, &failed); main->cache_recurse_do.action = &fake_do_copy_action; @@ -315,7 +315,7 @@ extern "C" { break; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } // for fake_build_touch(data, file_stage); @@ -521,7 +521,7 @@ extern "C" { fake_main_t * const main = data->main; name->used = 0; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (!path.used) return; @@ -542,7 +542,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_build_get_file_name_without_extension_ @@ -580,7 +580,7 @@ extern "C" { } // for } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_build_objects_add_ @@ -593,7 +593,7 @@ extern "C" { fake_main_t * const main = data->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; f_mode_t mode = f_mode_t_initialize; @@ -788,7 +788,7 @@ extern "C" { } // for } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_build_sources_add_ @@ -798,7 +798,7 @@ extern "C" { if (!data || !data->main || !data_build || !generic || !specific) return; if (!generic->used && !specific->used) { - data->main->setting.state.status = F_none; + data->main->setting.state.status = F_okay; return; } @@ -826,7 +826,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_build_sources_object_add_ @@ -849,7 +849,7 @@ extern "C" { fake_print_error_file(&main->program.error, macro_fake_f(f_file_touch), file, f_file_operation_touch_s, fll_error_file_type_file_e); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_build_touch_ diff --git a/level_3/fake/c/main/build.h b/level_3/fake/c/main/build.h index b6f9776..459cc9e 100644 --- a/level_3/fake/c/main/build.h +++ b/level_3/fake/c/main/build.h @@ -26,7 +26,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add() * @param data_build @@ -54,7 +54,7 @@ extern "C" { * This modifies data.main.cache_recurse_do. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -117,7 +117,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append_nulless() * Errors (with error bit) from: f_string_dynamic_mash() @@ -157,7 +157,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_name_base() * @param path @@ -181,7 +181,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add() * @param data_build @@ -209,7 +209,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -276,7 +276,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -308,7 +308,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add() * @param data_build @@ -334,7 +334,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add() * @param data_build @@ -357,7 +357,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fake/c/main/build/library.h b/level_3/fake/c/main/build/library.h index 9f6189e..43c4990 100644 --- a/level_3/fake/c/main/build/library.h +++ b/level_3/fake/c/main/build/library.h @@ -28,7 +28,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_link() * Errors (with error bit) from: f_string_dynamics_resize() @@ -74,7 +74,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_link() * Errors (with error bit) from: fll_execute_arguments_add() @@ -118,7 +118,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_name_directory() * Errors (with error bit) from: f_string_dynamic_append_assure() diff --git a/level_3/fake/c/main/build/load.c b/level_3/fake/c/main/build/load.c index 5721406..4c924f4 100644 --- a/level_3/fake/c/main/build/load.c +++ b/level_3/fake/c/main/build/load.c @@ -56,7 +56,7 @@ extern "C" { fake_print_error(&main->program.error, macro_fake_f(fl_environment_load_names)); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_build_load_environment_ @@ -205,7 +205,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } fake_build_load_setting_override(data, setting); @@ -544,7 +544,7 @@ extern "C" { main->setting.state.status = fll_fss_snatch_apart(buffer, objects, contents, settings_name, fake_build_setting_total_d, settings_value, settings_matches, 0); - if (main->setting.state.status == F_none) { + if (main->setting.state.status == F_okay) { const int total_build_libraries = setting->build_libraries.used; // Custom modes are always used if provided, otherwise if any mode is specified, the entire defaults is replaced. @@ -615,7 +615,7 @@ extern "C" { } } // for - if (main->setting.state.status == F_none) { + if (main->setting.state.status == F_okay) { main->setting.state.status = fll_fss_snatch_apart(buffer, objects, contents, settings_mode_names, fake_build_setting_total_d, settings_value, 0, 0); if (F_status_is_error(main->setting.state.status)) { @@ -1376,7 +1376,7 @@ extern "C" { &stage->file_sources_settings, }; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; f_string_dynamic_t settings_file_base = f_string_dynamic_t_initialize; diff --git a/level_3/fake/c/main/build/load.h b/level_3/fake/c/main/build/load.h index 40de6a4..1a17451 100644 --- a/level_3/fake/c/main/build/load.h +++ b/level_3/fake/c/main/build/load.h @@ -23,7 +23,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_array_too_large (with error bit) if the environment variable values are too large. * @@ -48,7 +48,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -98,7 +98,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on error. * @@ -120,7 +120,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -166,7 +166,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fake/c/main/build/object.h b/level_3/fake/c/main/build/object.h index f65e8ec..2631481 100644 --- a/level_3/fake/c/main/build/object.h +++ b/level_3/fake/c/main/build/object.h @@ -28,7 +28,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fake_build_touch(). * @param data_build @@ -61,7 +61,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add(). * @@ -100,7 +100,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add(). * diff --git a/level_3/fake/c/main/build/objects.c b/level_3/fake/c/main/build/objects.c index 432e924..0499d26 100644 --- a/level_3/fake/c/main/build/objects.c +++ b/level_3/fake/c/main/build/objects.c @@ -126,7 +126,7 @@ extern "C" { } if (main->cache_argument.used) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { main->setting.state.status = f_string_dynamic_append_nulless(data->path_build_objects, &main->cache_argument); diff --git a/level_3/fake/c/main/build/objects.h b/level_3/fake/c/main/build/objects.h index 1d0a0df..199556c 100644 --- a/level_3/fake/c/main/build/objects.h +++ b/level_3/fake/c/main/build/objects.h @@ -31,7 +31,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->settings.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_directory_create(). * Errors (with error bit) from: f_directory_exists(). diff --git a/level_3/fake/c/main/build/print/compile.c b/level_3/fake/c/main/build/print/compile.c index 3004a31..d13549f 100644 --- a/level_3/fake/c/main/build/print/compile.c +++ b/level_3/fake/c/main/build/print/compile.c @@ -13,7 +13,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling shared library"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_library_shared_ @@ -26,7 +26,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling static library"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_library_static_ @@ -39,7 +39,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling shared object"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_object_shared_ @@ -52,7 +52,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling static object"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_object_static_ @@ -65,7 +65,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling objects for static library"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_object_static_library_ @@ -78,7 +78,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling shared program"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_program_shared_ @@ -91,7 +91,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Compiling static program"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_compile_program_static_ diff --git a/level_3/fake/c/main/build/print/compile.h b/level_3/fake/c/main/build/print/compile.h index 49266a7..5257ba2 100644 --- a/level_3/fake/c/main/build/print/compile.h +++ b/level_3/fake/c/main/build/print/compile.h @@ -27,7 +27,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -49,7 +49,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -71,7 +71,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -93,7 +93,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -115,7 +115,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -137,7 +137,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -159,7 +159,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/build/print/error.c b/level_3/fake/c/main/build/print/error.c index 03dc97b..7002408 100644 --- a/level_3/fake/c/main/build/print/error.c +++ b/level_3/fake/c/main/build/print/error.c @@ -12,7 +12,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The path ", path, " could not be created, a parent directory is invalid or does not exist"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_cannot_create_due_to_parent_ @@ -24,7 +24,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The path ", path, " exists but is not a directory"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_exist_not_directory_ @@ -36,7 +36,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The setting ", name, " is required but is not specified in the settings file ", path, 0); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_missing_required_setting_ @@ -48,7 +48,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The specified mode ", mode, " in the settings file ", path, " is not a valid mode"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_mode_invalid_ @@ -60,7 +60,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "A setting in the settings file ", path, " is too long"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_setting_too_long_ @@ -72,7 +72,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The values for the setting ", name, " of the setting file ", path, " is too long"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_error_setting_value_too_long_ diff --git a/level_3/fake/c/main/build/print/error.h b/level_3/fake/c/main/build/print/error.h index 1734522..1cb6dc9 100644 --- a/level_3/fake/c/main/build/print/error.h +++ b/level_3/fake/c/main/build/print/error.h @@ -29,7 +29,7 @@ extern "C" { * The path that cannot be created. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -53,7 +53,7 @@ extern "C" { * The path that cannot be created. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -79,7 +79,7 @@ extern "C" { * The path to the file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -106,7 +106,7 @@ extern "C" { * The path to the file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -130,7 +130,7 @@ extern "C" { * The path that cannot be created. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -156,7 +156,7 @@ extern "C" { * The path that cannot be created. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/build/print/message.c b/level_3/fake/c/main/build/print/message.c index 3f7b0a0..f06c2fe 100644 --- a/level_3/fake/c/main/build/print/message.c +++ b/level_3/fake/c/main/build/print/message.c @@ -13,7 +13,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple_variable(print, "Copying ", path, 0); - return F_none; + return F_okay; } #endif // _di_fake_build_print_message_copying_ @@ -26,7 +26,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, print->to); fake_print_context_important_simple(print, "Creating base build directories"); - return F_none; + return F_okay; } #endif // _di_fake_build_print_message_skeleton_build_base_ diff --git a/level_3/fake/c/main/build/print/message.h b/level_3/fake/c/main/build/print/message.h index 8312d62..52b408a 100644 --- a/level_3/fake/c/main/build/print/message.h +++ b/level_3/fake/c/main/build/print/message.h @@ -29,7 +29,7 @@ extern "C" { * The path being copied. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -51,7 +51,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/build/print/verbose.c b/level_3/fake/c/main/build/print/verbose.c index 4e5f31b..3a938cb 100644 --- a/level_3/fake/c/main/build/print/verbose.c +++ b/level_3/fake/c/main/build/print/verbose.c @@ -12,7 +12,7 @@ extern "C" { fake_print_common_simple_variable(print, "Created directory ", directory); - return F_none; + return F_okay; } #endif // _di_fake_build_print_verbose_create_directory_ @@ -24,7 +24,7 @@ extern "C" { fake_print_common_wrapped_variables(print, "Linked file ", from, " to ", to, 0); - return F_none; + return F_okay; } #endif // _di_fake_build_print_verbose_linked_file_ diff --git a/level_3/fake/c/main/build/print/verbose.h b/level_3/fake/c/main/build/print/verbose.h index 85871b9..c24d44a 100644 --- a/level_3/fake/c/main/build/print/verbose.h +++ b/level_3/fake/c/main/build/print/verbose.h @@ -29,7 +29,7 @@ extern "C" { * The directory created. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -55,7 +55,7 @@ extern "C" { * The link destination. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/build/print/warning.c b/level_3/fake/c/main/build/print/warning.c index 23e4160..b4317f3 100644 --- a/level_3/fake/c/main/build/print/warning.c +++ b/level_3/fake/c/main/build/print/warning.c @@ -11,7 +11,7 @@ extern "C" { fake_print_context_wrapped_parameters(print, "The parameters ", symbol_1, name_1, " and ", symbol_2, name_2, " contradict, defaulting to ", symbol_3, name_3, 0); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_parameters_contradict_ @@ -36,7 +36,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_setting_boolean_may_only_be_ @@ -47,7 +47,7 @@ extern "C" { fake_print_context_wrapped_parameters(print, "The build settings ", f_string_empty_s, name_1, " and ", f_string_empty_s, name_2, " cannot both be false when using the language ", f_string_empty_s, language, 0); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_setting_both_cannot_using_language_ @@ -74,7 +74,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_setting_language_may_only_be_ @@ -95,7 +95,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_setting_required_default_to_ @@ -125,7 +125,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_build_print_warning_setting_version_may_only_be_ diff --git a/level_3/fake/c/main/build/print/warning.h b/level_3/fake/c/main/build/print/warning.h index c386e7f..4e475ff 100644 --- a/level_3/fake/c/main/build/print/warning.h +++ b/level_3/fake/c/main/build/print/warning.h @@ -39,7 +39,7 @@ extern "C" { * The name for the third parameter (the fallback). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -67,7 +67,7 @@ extern "C" { * The value being defaulted to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -97,7 +97,7 @@ extern "C" { * The name for the language. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -125,7 +125,7 @@ extern "C" { * The value being defaulted to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see f_file_stream_lock() @@ -153,7 +153,7 @@ extern "C" { * The name for the language. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see fake_print_context_wrapped_parameters() @@ -179,7 +179,7 @@ extern "C" { * The value being defaulted to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see f_file_stream_lock() diff --git a/level_3/fake/c/main/build/program.h b/level_3/fake/c/main/build/program.h index 956068a..b7c81ac 100644 --- a/level_3/fake/c/main/build/program.h +++ b/level_3/fake/c/main/build/program.h @@ -29,7 +29,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fake_build_touch(). * @param data_build @@ -59,7 +59,7 @@ extern "C" { * This modifies data.main.cache_arguments. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add(). * @@ -96,7 +96,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_execute_arguments_add(). * diff --git a/level_3/fake/c/main/build/skeleton.c b/level_3/fake/c/main/build/skeleton.c index 896be52..0dfac33 100644 --- a/level_3/fake/c/main/build/skeleton.c +++ b/level_3/fake/c/main/build/skeleton.c @@ -102,7 +102,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) { if (F_status_set_fine(main->setting.state.status) == F_file_found) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; continue; } @@ -120,7 +120,7 @@ extern "C" { fake_build_touch(data, file_stage); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_build_skeleton_ diff --git a/level_3/fake/c/main/build/skeleton.h b/level_3/fake/c/main/build/skeleton.h index 8cf47b1..b7c7f4f 100644 --- a/level_3/fake/c/main/build/skeleton.h +++ b/level_3/fake/c/main/build/skeleton.h @@ -23,7 +23,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fake/c/main/clean.c b/level_3/fake/c/main/clean.c index 831dc0d..8c91116 100644 --- a/level_3/fake/c/main/clean.c +++ b/level_3/fake/c/main/clean.c @@ -14,7 +14,7 @@ extern "C" { fake_print_message_delete_all_files(&main->program.message); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->program.error.verbosity >= f_console_verbosity_verbose_e) { main->setting.state.status = f_directory_remove_custom(main->setting.build, F_directory_max_descriptors_d, F_true, fake_clean_remove_recursively_verbosely); @@ -26,14 +26,14 @@ extern "C" { if (F_status_set_fine(main->setting.state.status) == F_file_found_not || F_status_set_fine(main->setting.state.status) == F_directory) { fake_print_warning_build_directory_not_directory(&main->program.warning, main->setting.build); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } if (F_status_is_error(main->setting.state.status)) { fake_print_error_file(&main->program.error, macro_fake_f(f_directory_remove), main->setting.build, f_file_operation_delete_s, fll_error_file_type_directory_e); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_clean_operate_ diff --git a/level_3/fake/c/main/clean.h b/level_3/fake/c/main/clean.h index ee3a16e..a7dce89 100644 --- a/level_3/fake/c/main/clean.h +++ b/level_3/fake/c/main/clean.h @@ -23,7 +23,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fake/c/main/common.c b/level_3/fake/c/main/common.c index 578ae9e..17dac75 100644 --- a/level_3/fake/c/main/common.c +++ b/level_3/fake/c/main/common.c @@ -320,7 +320,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { @@ -514,7 +514,7 @@ extern "C" { return; } - parameter_state->state->status = F_none; + parameter_state->state->status = F_okay; } #endif // _di_fake_setting_load_parameter_callback_ diff --git a/level_3/fake/c/main/common.h b/level_3/fake/c/main/common.h index a8e8fdd..4bc07cc 100644 --- a/level_3/fake/c/main/common.h +++ b/level_3/fake/c/main/common.h @@ -27,7 +27,7 @@ extern "C" { * The main program and setting data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: f_memory_array_increase_by(). @@ -66,7 +66,7 @@ extern "C" { * The state.status is used to represent the return status of this callback. * * This alters parameter_state->state->status: - * F_none on success. + * F_okay on success. * F_process on success, designating that processing should be performed (see f_console_parameter_process()). * * Errors (with error bit) from: f_memory_array_increase(). diff --git a/level_3/fake/c/main/common/type.h b/level_3/fake/c/main/common/type.h index 95d86ad..c605b75 100644 --- a/level_3/fake/c/main/common/type.h +++ b/level_3/fake/c/main/common/type.h @@ -104,7 +104,7 @@ extern "C" { #define fake_setting_t_initialize \ { \ 0, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ f_string_dynamic_t_initialize, \ f_string_dynamic_t_initialize, \ diff --git a/level_3/fake/c/main/fake.c b/level_3/fake/c/main/fake.c index fdb9aa5..bde1b00 100644 --- a/level_3/fake/c/main/fake.c +++ b/level_3/fake/c/main/fake.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (fake_main_flag_help_e | fake_main_flag_version_e | fake_main_flag_copyright_e)) { if (main->setting.flag & fake_main_flag_help_e) { @@ -200,7 +200,7 @@ extern "C" { } else if (main->setting.state.status != F_child) { if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; fake_print_operation_all_complete(&main->program.message); } @@ -341,7 +341,7 @@ extern "C" { fake_print_error_file(&main->program.error, macro_fake_f(f_file_read), path_file, f_file_operation_read_s, fll_error_file_type_file_e); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { @@ -384,13 +384,13 @@ extern "C" { main->setting.state.status = f_file_stream_read_block(file, buffer); - } while (F_status_is_fine(main->setting.state.status) && main->setting.state.status != F_interrupt && main->setting.state.status != F_none_eof); + } while (F_status_is_fine(main->setting.state.status) && main->setting.state.status != F_interrupt && main->setting.state.status != F_okay_eof); if (F_status_is_error(main->setting.state.status)) { fake_print_error_file(&main->program.error, macro_fake_f(f_file_stream_read_block), f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_file_e); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_pipe_buffer_ @@ -432,7 +432,7 @@ extern "C" { struct stat directory_stat; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; // Check only expected operations (fake_operation_clean_e and fake_operation_skeleton_e should not call this function). if (data->operation == fake_operation_make_e) { @@ -458,13 +458,13 @@ extern "C" { // @fixme these should not be accessing main->program.parameters.arguments directly and should instead use setting flags. if (f_path_is_absolute(main->program.parameters.arguments.array[index]) == F_true || f_path_is_relative_current(main->program.parameters.arguments.array[index]) == F_true) { - requireds[1] = F_none; // fake_long_data_s + requireds[1] = F_okay; // fake_long_data_s } else { main->setting.state.status = f_file_exists(main->program.parameters.arguments.array[index], F_true); if (F_status_is_error_not(main->setting.state.status) && main->setting.state.status == F_true) { - requireds[1] = F_none; // fake_long_data_s + requireds[1] = F_okay; // fake_long_data_s } } } @@ -472,7 +472,7 @@ extern "C" { for (uint8_t i = 0; i < 6; ++i) { - if (requireds[i] != F_none && values[i].used) { + if (requireds[i] != F_okay && values[i].used) { memset(&directory_stat, 0, sizeof(struct stat)); main->setting.state.status = f_file_stat(values[i], F_true, &directory_stat); @@ -498,7 +498,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_validate_parameter_paths_ diff --git a/level_3/fake/c/main/fake.h b/level_3/fake/c/main/fake.h index 43a5ca3..468e719 100644 --- a/level_3/fake/c/main/fake.h +++ b/level_3/fake/c/main/fake.h @@ -161,7 +161,7 @@ extern "C" { * The main program and setting data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_child if this is a child process returning. * * F_interrupt (with error bit) on interrupt signal received. @@ -196,7 +196,7 @@ extern "C" { * The program data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_child if this is a child process returning. * * F_interrupt (with error bit) on interrupt signal received. @@ -227,7 +227,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * F_false on file not found and file is not required. * * F_file_found_not (with error bit) if file is not found and file is required. @@ -264,7 +264,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -290,7 +290,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fake/c/main/fake/do.c b/level_3/fake/c/main/fake/do.c index 1350063..5f761c4 100644 --- a/level_3/fake/c/main/fake/do.c +++ b/level_3/fake/c/main/fake/do.c @@ -51,7 +51,7 @@ extern "C" { recurse->state.status = f_string_dynamic_append_nulless(map->name, &recurse->path_cache); if (F_status_is_error_not(recurse->state.status)) { - recurse->state.status = F_none; + recurse->state.status = F_okay; // Do not allow trailing path separators in the string's length calculation, except root directory '/'. for (; recurse->path_cache.used; --recurse->path_cache.used) { diff --git a/level_3/fake/c/main/fake/do.h b/level_3/fake/c/main/fake/do.h index ddfc6b3..71b3a39 100644 --- a/level_3/fake/c/main/fake/do.h +++ b/level_3/fake/c/main/fake/do.h @@ -30,7 +30,7 @@ extern "C" { * - fake_state_code_local_e: This is required and assumed to be set. * * This alters recurse.state.custom.main.setting.state.status and recurse.state.status: - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) on invalid parameter to the callback. * diff --git a/level_3/fake/c/main/fake/path_generate.c b/level_3/fake/c/main/fake/path_generate.c index 34c870d..c3352e7 100644 --- a/level_3/fake/c/main/fake/path_generate.c +++ b/level_3/fake/c/main/fake/path_generate.c @@ -11,7 +11,7 @@ extern "C" { fake_main_t * const main = data->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; uint8_t i = 0; { @@ -359,7 +359,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_path_generate_ @@ -370,7 +370,7 @@ extern "C" { fake_main_t * const main = data->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; for (uint8_t i = 0; i < length; ++i) { diff --git a/level_3/fake/c/main/fake/path_generate.h b/level_3/fake/c/main/fake/path_generate.h index cda38ac..ec81017 100644 --- a/level_3/fake/c/main/fake/path_generate.h +++ b/level_3/fake/c/main/fake/path_generate.h @@ -23,7 +23,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append_nulless(). * Errors (with error bit) from: fake_path_generate_string_dynamic(). @@ -45,7 +45,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append_nulless(). * diff --git a/level_3/fake/c/main/make.c b/level_3/fake/c/main/make.c index 48dd2d6..9180ba2 100644 --- a/level_3/fake/c/main/make.c +++ b/level_3/fake/c/main/make.c @@ -90,7 +90,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_exist_not); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } } @@ -139,7 +139,7 @@ extern "C" { } } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_get_id_mode_ @@ -154,7 +154,7 @@ extern "C" { fake_string_dynamic_reset(&main->cache_argument); if (!path.used || path.used == data_make->path.stack.array[0].used) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -176,7 +176,7 @@ extern "C" { main->setting.state.status = f_string_dynamic_terminate(&main->cache_argument); if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_path_relative_ diff --git a/level_3/fake/c/main/make.h b/level_3/fake/c/main/make.h index f6d3655..a6981a0 100644 --- a/level_3/fake/c/main/make.h +++ b/level_3/fake/c/main/make.h @@ -47,7 +47,7 @@ extern "C" { * The data_make.cache_path will be updated to reflect the full path to this file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * F_exist_not (with error bit) if there is no owner or group by the given name. @@ -84,7 +84,7 @@ extern "C" { * The data_make.cache_path will be updated to reflect the full path to this file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * F_parameter (with error bit) on invalid parameter. @@ -113,7 +113,7 @@ extern "C" { * The relative path is stored in data_make.cache_path. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * F_parameter (with error bit) on invalid parameter. diff --git a/level_3/fake/c/main/make/load_fakefile.c b/level_3/fake/c/main/make/load_fakefile.c index 3d86559..70b430b 100644 --- a/level_3/fake/c/main/make/load_fakefile.c +++ b/level_3/fake/c/main/make/load_fakefile.c @@ -293,7 +293,7 @@ extern "C" { f_fss_set_delete(&settings); } - data_make->main->setting.state.status = F_none; + data_make->main->setting.state.status = F_okay; } #endif // _di_fake_make_load_fakefile_ @@ -421,7 +421,7 @@ extern "C" { if (F_status_is_error(data_make->main->setting.state.status)) return; - data_make->main->setting.state.status = F_none; + data_make->main->setting.state.status = F_okay; } #endif // _di_fake_make_load_fakefile_setting_define_and_parameter_ @@ -507,7 +507,7 @@ extern "C" { if (F_status_is_error(data_make->main->setting.state.status)) return; - data_make->main->setting.state.status = F_none; + data_make->main->setting.state.status = F_okay; } #endif // _di_fake_make_load_fakefile_setting_environment_ @@ -597,7 +597,7 @@ extern "C" { fake_make_print_warning_setting_content_empty(&data_make->main->program.warning, data_make->data->file_data_build_fakefile, data_make->main->buffer, *object, fake_make_setting_return_s); } - data_make->main->setting.state.status = F_none; + data_make->main->setting.state.status = F_okay; } #endif // _di_fake_make_load_fakefile_setting_parameter_ diff --git a/level_3/fake/c/main/make/load_fakefile.h b/level_3/fake/c/main/make/load_fakefile.h index 6a5c141..aca3a85 100644 --- a/level_3/fake/c/main/make/load_fakefile.h +++ b/level_3/fake/c/main/make/load_fakefile.h @@ -25,7 +25,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -117,7 +117,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_environment_set(). * Errors (with error bit) from: f_string_dynamic_mash(). @@ -148,7 +148,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append(). * Errors (with error bit) from: f_string_dynamic_append_nulless(). @@ -212,7 +212,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_append_assure(). * Errors (with error bit) from: f_string_dynamic_append_assure(). diff --git a/level_3/fake/c/main/make/load_parameters.h b/level_3/fake/c/main/make/load_parameters.h index 5b4da74..913cd35 100644 --- a/level_3/fake/c/main/make/load_parameters.h +++ b/level_3/fake/c/main/make/load_parameters.h @@ -23,7 +23,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append(). * Errors (with error bit) from: f_string_dynamic_append_nulless(). diff --git a/level_3/fake/c/main/make/operate.c b/level_3/fake/c/main/make/operate.c index 90478d1..4ea35b3 100644 --- a/level_3/fake/c/main/make/operate.c +++ b/level_3/fake/c/main/make/operate.c @@ -103,7 +103,7 @@ extern "C" { f_string_range_t range = f_string_range_t_initialize; f_number_unsigned_t index = 0; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; // Validate the remaining parameters. for (i = 0; i < main->program.parameters.remaining.used; ++i) { @@ -211,7 +211,7 @@ extern "C" { fake_make_data_delete(&data_make); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_ @@ -1192,7 +1192,7 @@ extern "C" { fake_main_t * const main = data_make->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; fake_string_dynamic_reset(&main->cache_1); fake_string_dynamic_reset(&main->cache_2); @@ -1349,7 +1349,7 @@ extern "C" { f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; - for (i = 0; i < section->objects.used; ++i, main->setting.state.status = F_none) { + for (i = 0; i < section->objects.used; ++i, main->setting.state.status = F_okay) { fake_string_dynamics_reset(&main->cache_arguments); @@ -1453,7 +1453,7 @@ extern "C" { // F_signal_quit is used by the exit section operation. if (!section_stack->used) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } break; @@ -1461,8 +1461,8 @@ extern "C" { else if (main->setting.state.status == F_failure) { // When F_failure (without the error bit) is returned, an error occured but the exit mode is not set to exit. - // Record the success state and set the status to F_none. - main->setting.state.status = F_none; + // Record the success state and set the status to F_okay. + main->setting.state.status = F_okay; state_process.success = F_false; } else { diff --git a/level_3/fake/c/main/make/operate.h b/level_3/fake/c/main/make/operate.h index 7484e5b..33958f2 100644 --- a/level_3/fake/c/main/make/operate.h +++ b/level_3/fake/c/main/make/operate.h @@ -26,7 +26,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but fakefile is empty. * * F_interrupt (with error bit) on interrupt signal received. @@ -63,7 +63,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but fakefile is empty. * * F_interrupt (with error bit) on interrupt signal received. @@ -195,7 +195,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * F_child on child process exiting. * F_signal_abort on abort signal received. * F_signal_quit on quit signal received. diff --git a/level_3/fake/c/main/make/operate_process.c b/level_3/fake/c/main/make/operate_process.c index 9ae65b8..0401d62 100644 --- a/level_3/fake/c/main/make/operate_process.c +++ b/level_3/fake/c/main/make/operate_process.c @@ -273,7 +273,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_buffer_escape_ @@ -416,7 +416,7 @@ extern "C" { fll_error_print(&data_make->error, F_status_set_fine(main->setting.state.status), macro_fake_f(f_string_dynamic_append), F_true); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_process_return_ diff --git a/level_3/fake/c/main/make/operate_process.h b/level_3/fake/c/main/make/operate_process.h index 5efa19c..21d53e0 100644 --- a/level_3/fake/c/main/make/operate_process.h +++ b/level_3/fake/c/main/make/operate_process.h @@ -23,7 +23,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -133,7 +133,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters date_make.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if source.used is 0. * * Errors (with error bit) from: f_string_dynamic_increase_by(). @@ -160,7 +160,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters date_make.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if both program.used is 0 and arguments.used is 0. * * F_interrupt (with error bit) on interrupt signal received. @@ -200,7 +200,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters date_make.setting.state.status: - * F_none on success. + * F_okay on success. * F_failure on identifying the return code as an error code and fail mode is not set to fake_make_operation_fail_exit_e. * * F_failure (with error bit) on identifying the return code as an error code and fail mode is set to fake_make_operation_fail_exit_e. diff --git a/level_3/fake/c/main/make/operate_process_type.c b/level_3/fake/c/main/make/operate_process_type.c index cbbc455..2d3fdbe 100644 --- a/level_3/fake/c/main/make/operate_process_type.c +++ b/level_3/fake/c/main/make/operate_process_type.c @@ -11,7 +11,7 @@ extern "C" { fake_main_t * const main = data_make->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (!main->cache_arguments.used || f_compare_dynamic(fake_make_operation_argument_success_s, main->cache_arguments.array[0]) == F_equal_to) { main->setting.state.status = F_signal_abort; @@ -20,7 +20,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_signal_abort); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -86,7 +86,7 @@ extern "C" { fake_main_t * const main = data_make->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (state_process->condition == fake_make_operation_if_type_if_define_e) { fake_make_operate_process_type_if_define(data_make, F_false, state_process); @@ -210,7 +210,7 @@ extern "C" { fake_main_t * const main = data_make->main; const f_number_unsigned_t total = main->cache_arguments.used - 1; - f_status_t failed = F_none; + f_status_t failed = F_okay; fake_local_t local = macro_fake_local_t_initialize_1(main, &main->cache_map, &failed); main->cache_recurse_do.action = &fake_do_copy_action; @@ -337,7 +337,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_process_type_copy_ @@ -362,7 +362,7 @@ extern "C" { else { fake_make_print_verbose_operate_define(&main->program.message, main->cache_arguments.array[0]); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_process_type_define_ @@ -377,7 +377,7 @@ extern "C" { const int recursion_max = all ? F_directory_max_descriptors_d : 0; struct stat file_stat; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; for (f_number_unsigned_t i = 0; i < main->cache_arguments.used; ++i) { @@ -389,7 +389,7 @@ extern "C" { if (F_status_set_fine(main->setting.state.status) == F_file_found_not) { fake_make_print_warning_file_not_found(&main->program.warning, main->cache_arguments.array[i]); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { fake_print_error_file(&main->program.error, macro_fake_f(f_file_stat), main->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e); @@ -410,7 +410,7 @@ extern "C" { if (F_status_set_fine(main->setting.state.status) == F_file_found_not) { fake_make_print_verbose_operate_file_not_found(&main->program.message, F_true, main->cache_arguments.array[i]); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } if (F_status_is_error(main->setting.state.status)) { @@ -429,7 +429,7 @@ extern "C" { fake_make_print_verbose_operate_file_not_found(&main->program.message, F_false, main->cache_arguments.array[i]); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } if (F_status_is_error(main->setting.state.status)) { @@ -444,7 +444,7 @@ extern "C" { fake_make_print_verbose_operate_delete(&main->program.message, main->cache_arguments.array[i]); } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_deletes_ @@ -455,7 +455,7 @@ extern "C" { fake_main_t * const main = data_make->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (!main->cache_arguments.used || f_compare_dynamic(fake_make_operation_argument_success_s, main->cache_arguments.array[0]) == F_equal_to) { main->setting.state.status = F_signal_quit; @@ -474,7 +474,7 @@ extern "C" { data_make->error.set = &main->program.context.set; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -531,7 +531,7 @@ extern "C" { bool dereference = F_true; f_number_unsigned_t i = 0; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (f_compare_dynamic(fake_make_operation_argument_no_dereference_s, main->cache_arguments.array[i]) == F_equal_to) { ++i; @@ -572,7 +572,7 @@ extern "C" { fake_make_print_verbose_operate_set_role(&main->program.message, all ? 0x1 : 0x0, main->cache_arguments.array[i], (f_number_unsigned_t) id); } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_groups_ @@ -619,7 +619,7 @@ extern "C" { f_number_unsigned_t i = if_not ? 2 : 1; bool dereference = F_true; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (i == main->cache_arguments.used) { if (if_not) { @@ -629,7 +629,7 @@ extern "C" { state_process->condition_result = fake_condition_result_false_e; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -671,7 +671,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_if_exist_ @@ -691,7 +691,7 @@ extern "C" { f_number_unsigned_t i = if_not ? 2 : 1; bool dereference = F_true; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (f_compare_dynamic(fake_make_operation_argument_no_dereference_s, main->cache_arguments.array[i]) == F_equal_to) { ++i; @@ -706,7 +706,7 @@ extern "C" { state_process->condition_result = fake_condition_result_false_e; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -799,7 +799,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_if_is_ @@ -819,7 +819,7 @@ extern "C" { f_number_unsigned_t i = 1; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; state_process->condition_result = fake_condition_result_true_e; range.start = 0; @@ -841,7 +841,7 @@ extern "C" { } if (F_status_is_error_not(main->setting.state.status)) { - for (i = 2; i < main->cache_arguments.used; ++i, main->setting.state.status = F_none, number_left = number_right, is_negative_left = is_negative_right) { + for (i = 2; i < main->cache_arguments.used; ++i, main->setting.state.status = F_okay, number_left = number_right, is_negative_left = is_negative_right) { if (main->cache_arguments.array[i].used) { range.start = 0; @@ -946,7 +946,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_process_type_if_greater_if_lesser_ @@ -962,7 +962,7 @@ extern "C" { f_number_unsigned_t i = if_not ? 2 : 1; bool dereference = F_true; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (f_compare_dynamic(fake_make_operation_argument_no_dereference_s, main->cache_arguments.array[i]) == F_equal_to) { ++i; @@ -1013,7 +1013,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_if_group_ @@ -1112,7 +1112,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_if_mode_ @@ -1127,7 +1127,7 @@ extern "C" { f_number_unsigned_t i = if_not ? 2 : 1; bool dereference = F_true; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (f_compare_dynamic(fake_make_operation_argument_no_dereference_s, main->cache_arguments.array[i]) == F_equal_to) { ++i; @@ -1178,7 +1178,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_if_owner_ @@ -1404,7 +1404,7 @@ extern "C" { fake_make_print_verbose_operate_symbolic_link(&main->program.message, main->cache_arguments.array[main->cache_arguments.used - 1], main->cache_arguments.array[0]); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_link_ @@ -1415,7 +1415,7 @@ extern "C" { fake_main_t * const main = data_make->main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; f_file_mode_t mode_rule = 0; uint8_t replace = 0; @@ -1473,7 +1473,7 @@ extern "C" { fake_make_print_verbose_operate_set_mode(&main->program.message, main->cache_arguments.array[i], mode); } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_modes_ @@ -1564,7 +1564,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_process_type_move_ @@ -1591,7 +1591,7 @@ extern "C" { // Ensure that a break only happens within its active state_process->operation stack. if (main->setting.state.status == F_signal_abort) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else if (F_status_set_fine(main->setting.state.status) == F_signal_abort) { main->setting.state.status = F_status_set_error(F_failure); @@ -1655,7 +1655,7 @@ extern "C" { fake_make_print_verbose_operate_set_role(&main->program.message, all ? 0x3 : 0x2, main->cache_arguments.array[i], (f_number_unsigned_t) id); } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_owners_ @@ -1753,7 +1753,7 @@ extern "C" { } // for } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_parameter_ @@ -1797,7 +1797,7 @@ extern "C" { fake_make_print_verbose_operate_set_path(&main->program.message, main->cache_argument); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_pop_ @@ -1865,7 +1865,7 @@ extern "C" { f_file_stream_unlock(main->program.message.to); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_print_ @@ -1958,7 +1958,7 @@ extern "C" { ++data_make->path.stack.used; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_to_ @@ -1990,7 +1990,7 @@ extern "C" { data_make->path.stack.used = 1; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_top_ @@ -2043,7 +2043,7 @@ extern "C" { fake_make_print_verbose_operate_touch(&main->program.message, main->cache_arguments.array[i]); } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_process_type_touch_ @@ -2079,7 +2079,7 @@ extern "C" { main->setting.state.status = F_false; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; f_file_stream_flush(file); f_file_stream_close(&file); @@ -2147,7 +2147,7 @@ extern "C" { f_file_stream_close(&file); } - main->setting.state.status = F_status_is_error(main->setting.state.status) ? F_status_set_error(F_failure) : F_none; + main->setting.state.status = F_status_is_error(main->setting.state.status) ? F_status_set_error(F_failure) : F_okay; } #endif // _di_fake_make_operate_process_type_write_ diff --git a/level_3/fake/c/main/make/operate_process_type.h b/level_3/fake/c/main/make/operate_process_type.h index df92d6f..91973c9 100644 --- a/level_3/fake/c/main/make/operate_process_type.h +++ b/level_3/fake/c/main/make/operate_process_type.h @@ -23,7 +23,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success but not breaking. + * F_okay on success but not breaking. * F_signal_abort on normal break * * F_signal_abort (with error bit) on break on error. @@ -97,7 +97,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -134,7 +134,7 @@ extern "C" { * This modifies data.main.cache_map. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -162,7 +162,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * Success from: f_environment_set(). * @@ -181,7 +181,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -211,14 +211,14 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on unknown exit type (only success and failure are known). + * F_okay on unknown exit type (only success and failure are known). * F_signal_quit to designate exit on success. * * F_failure (with error bit) on any error. * F_signal_quit (with error bit) to designate exit on failure. * * @return - * F_none on unknown exit type (only success and failure are known). + * F_okay on unknown exit type (only success and failure are known). * F_signal_quit to designate exit on success. * * F_failure (with error bit) on any error. @@ -247,7 +247,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -276,7 +276,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @param if_not @@ -296,7 +296,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -320,7 +320,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -341,7 +341,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -368,7 +368,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -392,7 +392,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -421,7 +421,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -448,7 +448,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @param if_not @@ -468,7 +468,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -494,7 +494,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -513,7 +513,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -546,7 +546,7 @@ extern "C" { * This modifies data.main.cache_argument. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -569,7 +569,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -593,7 +593,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -622,7 +622,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -648,7 +648,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -675,7 +675,7 @@ extern "C" { * This resets and uses data_make.cache_1. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -701,7 +701,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -724,7 +724,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -752,7 +752,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -775,7 +775,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -799,7 +799,7 @@ extern "C" { * This resets and uses data_make.cache_1. * * This alters data_make.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * diff --git a/level_3/fake/c/main/make/operate_validate.c b/level_3/fake/c/main/make/operate_validate.c index 0b36c94..b9f7675 100644 --- a/level_3/fake/c/main/make/operate_validate.c +++ b/level_3/fake/c/main/make/operate_validate.c @@ -16,7 +16,7 @@ extern "C" { return; } - data_make->main->setting.state.status = F_none; + data_make->main->setting.state.status = F_okay; if (state_process->operation == fake_make_operation_type_break_e) { fake_make_operate_validate_type_break(data_make); diff --git a/level_3/fake/c/main/make/operate_validate.h b/level_3/fake/c/main/make/operate_validate.h index eb587f2..4ebee6d 100644 --- a/level_3/fake/c/main/make/operate_validate.h +++ b/level_3/fake/c/main/make/operate_validate.h @@ -26,7 +26,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.status: - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) on invalid parameter. * diff --git a/level_3/fake/c/main/make/operate_validate_type.c b/level_3/fake/c/main/make/operate_validate_type.c index 5e05f85..1661184 100644 --- a/level_3/fake/c/main/make/operate_validate_type.c +++ b/level_3/fake/c/main/make/operate_validate_type.c @@ -31,7 +31,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_validate_type_break_ @@ -81,7 +81,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_validate_type_build_ @@ -98,7 +98,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_validate_type_clean_top_skeleton_ @@ -111,7 +111,7 @@ extern "C" { fake_main_t * const main = data_make->main; if (main->cache_arguments.used > 1) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < main->cache_arguments.used; ++i) { @@ -195,7 +195,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_validate_type_compile_ @@ -421,7 +421,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } return; @@ -434,14 +434,14 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } return; } if (state_process->condition == fake_make_operation_if_type_if_exist_e || state_process->condition == fake_make_operation_if_type_if_not_exist_e) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -559,7 +559,7 @@ extern "C" { } if (i < main->cache_arguments.used) { - f_status_t status = F_none; + f_status_t status = F_okay; for (; i < main->cache_arguments.used; ++i) { @@ -590,7 +590,7 @@ extern "C" { main->setting.state.status = status; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } return; @@ -605,11 +605,11 @@ extern "C" { return; } - f_status_t status = F_none; + f_status_t status = F_okay; f_string_range_t range = f_string_range_t_initialize; f_number_unsigned_t number = 0; - for (i = k; i < main->cache_arguments.used; ++i, main->setting.state.status = F_none) { + for (i = k; i < main->cache_arguments.used; ++i, main->setting.state.status = F_okay) { if (main->cache_arguments.array[i].used) { range.start = 0; @@ -648,7 +648,7 @@ extern "C" { main->setting.state.status = status; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } return; @@ -670,7 +670,7 @@ extern "C" { fake_main_t * const main = data_make->main; if (main->cache_arguments.used > 1) { - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigned_t i = 0; for (; i < main->cache_arguments.used; ++i) { @@ -747,7 +747,7 @@ extern "C" { main->setting.state.status = fake_make_operate_validate_define_name(main->cache_arguments.array[0]); if (main->setting.state.status == F_true) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -775,7 +775,7 @@ extern "C" { fake_main_t * const main = data_make->main; if (main->cache_arguments.used) { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < main->cache_arguments.used; ++i) { @@ -837,7 +837,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_validate_type_else_ @@ -868,7 +868,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_make_operate_validate_type_exit_ @@ -892,7 +892,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { fake_print_error_requires_more_arguments(&main->program.error); @@ -920,7 +920,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_validate_type_index_ @@ -941,7 +941,7 @@ extern "C" { } if (main->cache_arguments.used > 1) { - f_status_t status = F_none; + f_status_t status = F_okay; // 0x1 = force, 0x2 = strict. uint8_t flag = 0; @@ -1099,7 +1099,7 @@ extern "C" { if (main->cache_arguments.used > 1) { { - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < main->cache_arguments.used; ++i) { @@ -1167,7 +1167,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { fake_print_error_requires_more_arguments(&main->program.error); @@ -1221,7 +1221,7 @@ extern "C" { } } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { fake_print_error_requires_more_arguments(&main->program.error); @@ -1275,7 +1275,7 @@ extern "C" { fake_make_parameter_variable_value_work_s, }; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < 33; ++i) { @@ -1313,7 +1313,7 @@ extern "C" { } if (main->cache_arguments.used > i) { - f_status_t status = F_none; + f_status_t status = F_okay; for (; i < main->cache_arguments.used; ++i) { @@ -1366,7 +1366,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_validate_type_pop_ @@ -1384,7 +1384,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_fake_make_operate_validate_type_run_ @@ -1427,7 +1427,7 @@ extern "C" { } if (main->setting.state.status) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { fake_make_print_error_content_not_directory(&main->program.error, 0, main->cache_arguments.array[0]); @@ -1465,7 +1465,7 @@ extern "C" { } } - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 1; i < main->cache_arguments.used; ++i) { @@ -1512,7 +1512,7 @@ extern "C" { main->setting.state.status = F_status_set_error(F_failure); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { diff --git a/level_3/fake/c/main/make/operate_validate_type.h b/level_3/fake/c/main/make/operate_validate_type.h index 1dbb311..1014bdc 100644 --- a/level_3/fake/c/main/make/operate_validate_type.h +++ b/level_3/fake/c/main/make/operate_validate_type.h @@ -23,7 +23,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -38,7 +38,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -53,7 +53,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -68,7 +68,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -87,7 +87,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -105,7 +105,7 @@ extern "C" { * This condition will be updated by this as appropriate. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -126,7 +126,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -146,7 +146,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -163,7 +163,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -183,7 +183,7 @@ extern "C" { * This condition will be updated by this as appropriate. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -198,7 +198,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -213,7 +213,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -228,7 +228,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -243,7 +243,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -258,7 +258,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -281,7 +281,7 @@ extern "C" { * The current operation stack. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -296,7 +296,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -314,7 +314,7 @@ extern "C" { * This condition will be updated by this as appropriate. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -331,7 +331,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -346,7 +346,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. */ @@ -361,7 +361,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -378,7 +378,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * @@ -395,7 +395,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * This alters data_make.main->setting.state: - * F_none on success. + * F_okay on success. * * F_failure (with error bit) on any error. * diff --git a/level_3/fake/c/main/make/print/error.c b/level_3/fake/c/main/make/print/error.c index af083a1..eb91d3e 100644 --- a/level_3/fake/c/main/make/print/error.c +++ b/level_3/fake/c/main/make/print/error.c @@ -12,7 +12,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The argument ", name, " is not a valid section name"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_argument_invalid_section_ @@ -24,7 +24,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "No compiler has been specified, cannot perform ", action, " section operation"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_compiler_not_specified_ @@ -42,7 +42,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_content_not_directory_ @@ -54,7 +54,7 @@ extern "C" { fake_print_context_simple(print, "Define name must not be an empty string"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_define_name_empty_ @@ -66,7 +66,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "Invalid characters in the define name ", name, ", only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_define_invalid_character_ @@ -86,7 +86,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_fakefile_section_missing_ @@ -98,7 +98,7 @@ extern "C" { fake_print_context_simple(print, "File name argument must not be an empty string"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_file_name_empty_ @@ -116,7 +116,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_file_type_ @@ -128,7 +128,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "No indexer has been specified, cannot perform ", action, " section operation"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_indexer_not_specified_ @@ -150,7 +150,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_after_condition_ @@ -162,7 +162,7 @@ extern "C" { fake_make_print_error_after_condition(print, "May only be used immediately after"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_after_condition_may_only_ @@ -174,7 +174,7 @@ extern "C" { fake_make_print_error_after_condition(print, "Must not be used immediately after"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_after_condition_must_not_ @@ -186,7 +186,7 @@ extern "C" { fake_make_print_error_after_condition(print, "Has no preceding"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_after_condition_no_preceding_ @@ -217,7 +217,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_operation_incomplete_ @@ -235,7 +235,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_operation_recursion_ @@ -247,7 +247,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "No operation section named ", name, " is found"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_operation_section_not_found_ @@ -265,7 +265,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_out_of_range_number_ @@ -277,7 +277,7 @@ extern "C" { fake_print_context_simple(print, "Must not attempt to pop project root off of path stack"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_pop_last_path_ @@ -295,7 +295,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_program_failed_ @@ -307,7 +307,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "Failed to find program ", program, " for executing"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_program_not_found_ @@ -319,7 +319,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "Cannot assign a value to the parameter name ", name, " because it is a reserved parameter name"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_reserved_parameter_name_ @@ -331,7 +331,7 @@ extern "C" { fake_print_context_simple(print, "Target file name argument must not be an empty string"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_target_file_name_empty_ @@ -343,7 +343,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "Invalid or unsupported number provided ", number, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_unsupported_number_ @@ -361,7 +361,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_error_unsupported_type_ diff --git a/level_3/fake/c/main/make/print/error.h b/level_3/fake/c/main/make/print/error.h index 09bc8f2..0d2f55b 100644 --- a/level_3/fake/c/main/make/print/error.h +++ b/level_3/fake/c/main/make/print/error.h @@ -31,7 +31,7 @@ extern "C" { * The invalid section name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -53,7 +53,7 @@ extern "C" { * The action that cannot be performed due to a lack of a compiler. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -77,7 +77,7 @@ extern "C" { * The name of the variable containing one or more invalid characters. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -101,7 +101,7 @@ extern "C" { * The name of the missing section. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -121,7 +121,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -145,7 +145,7 @@ extern "C" { * The second content that should be a directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -165,7 +165,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -189,7 +189,7 @@ extern "C" { * The file path or name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -211,7 +211,7 @@ extern "C" { * The action that cannot be performed due to a lack of a compiler. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -233,7 +233,7 @@ extern "C" { * The message describing how in relation to the after condition. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -253,7 +253,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -273,7 +273,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -293,7 +293,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -315,7 +315,7 @@ extern "C" { * The code of the operation. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -337,7 +337,7 @@ extern "C" { * The range within the buffer representing the operation name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -359,7 +359,7 @@ extern "C" { * The name of the operation. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -385,7 +385,7 @@ extern "C" { * The number allowed, represented as a positive. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -405,7 +405,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -427,7 +427,7 @@ extern "C" { * The return code from the program. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -449,7 +449,7 @@ extern "C" { * The program name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -471,7 +471,7 @@ extern "C" { * The reserved parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -491,7 +491,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -513,7 +513,7 @@ extern "C" { * The string representing the number. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -537,7 +537,7 @@ extern "C" { * The value that is unsupported for the type. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/make/print/message.c b/level_3/fake/c/main/make/print/message.c index 518cde9..b154397 100644 --- a/level_3/fake/c/main/make/print/message.c +++ b/level_3/fake/c/main/make/print/message.c @@ -34,7 +34,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_message_now_making_ @@ -52,7 +52,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_message_processing_section_ diff --git a/level_3/fake/c/main/make/print/message.h b/level_3/fake/c/main/make/print/message.h index 96646d6..dd7dda6 100644 --- a/level_3/fake/c/main/make/print/message.h +++ b/level_3/fake/c/main/make/print/message.h @@ -29,7 +29,7 @@ extern "C" { * The name or path of the file that is empty. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -57,7 +57,7 @@ extern "C" { * The section structure containing the section name range. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/make/print/verbose.c b/level_3/fake/c/main/make/print/verbose.c index c276a5b..aff4655 100644 --- a/level_3/fake/c/main/make/print/verbose.c +++ b/level_3/fake/c/main/make/print/verbose.c @@ -12,7 +12,7 @@ extern "C" { fake_print_context_simple_variable(print, "Breaking as ", arguments.used ? arguments.array[0] : fake_make_operation_argument_success_s, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_break_ @@ -29,7 +29,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_copy_ @@ -41,7 +41,7 @@ extern "C" { fake_print_context_simple_variable(print, "Defined environment variable ", variable, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_define_ @@ -53,7 +53,7 @@ extern "C" { fake_print_context_simple_variable(print, "Removed ", path, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_delete_ @@ -65,7 +65,7 @@ extern "C" { fake_print_context_simple_variable(print, "Exiting as ", arguments.used ? arguments.array[0] : fake_make_operation_argument_success_s, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_exiting_as_ @@ -77,7 +77,7 @@ extern "C" { fll_print_format("The %Q '%[%Q%]' is not found.%]%r", print->to, print->set->notable, is_directory ? f_file_type_name_directory_s : f_file_type_name_file_s, file, print->set->notable, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_file_not_found_ @@ -111,7 +111,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_program_ @@ -139,7 +139,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_set_failure_state_ @@ -155,7 +155,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_set_mode_ @@ -167,7 +167,7 @@ extern "C" { fake_print_context_simple_variable(print, "Changed project path to ", path, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_set_path_ @@ -184,7 +184,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_set_role_ @@ -201,7 +201,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_symbolic_link_ @@ -213,7 +213,7 @@ extern "C" { fake_print_context_simple_variable(print, "Touched ", path, 0); - return F_none; + return F_okay; } #endif // _di_fake_make_print_verbose_operate_touch_ diff --git a/level_3/fake/c/main/make/print/verbose.h b/level_3/fake/c/main/make/print/verbose.h index 89f096c..1e5b12d 100644 --- a/level_3/fake/c/main/make/print/verbose.h +++ b/level_3/fake/c/main/make/print/verbose.h @@ -30,7 +30,7 @@ extern "C" { * Set arguments.used to 0 to use the default "success" exiting as string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -57,7 +57,7 @@ extern "C" { * The destination to copy to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -79,7 +79,7 @@ extern "C" { * The environment variable name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -101,7 +101,7 @@ extern "C" { * The path or file that is deleted. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -124,7 +124,7 @@ extern "C" { * Set arguments.used to 0 to use the default "success" exiting as string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -149,7 +149,7 @@ extern "C" { * The file or directory path or name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -173,7 +173,7 @@ extern "C" { * The arguments pass to the program. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -195,7 +195,7 @@ extern "C" { * The failure state code being set to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -219,7 +219,7 @@ extern "C" { * The mode being changed to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -241,7 +241,7 @@ extern "C" { * The path being changed to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -269,7 +269,7 @@ extern "C" { * The uid_t or gid_t representing the owner or group. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -293,7 +293,7 @@ extern "C" { * A string the symbolic link is to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -315,7 +315,7 @@ extern "C" { * The file path being touched. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/make/print/warning.c b/level_3/fake/c/main/make/print/warning.c index 25ad4b9..8b65aa1 100644 --- a/level_3/fake/c/main/make/print/warning.c +++ b/level_3/fake/c/main/make/print/warning.c @@ -22,7 +22,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_cannot_change_back_ @@ -34,7 +34,7 @@ extern "C" { fake_print_context_simple_variable(print, "The environment name", name, "is already added, replacing previous value"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_environment_name_already_added_ @@ -46,7 +46,7 @@ extern "C" { fake_print_context_simple_variable(print, "The environment name", name, "is invalid, ignoring"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_environment_name_invalid_ @@ -58,7 +58,7 @@ extern "C" { fake_print_context_simple_variable(print, "The fakefile", fakefile, "is empty"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_fakefile_empty_ @@ -70,7 +70,7 @@ extern "C" { fake_print_context_simple_variable(print, "The file", file, "cannot be found"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_file_not_found_ @@ -92,7 +92,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_setting_content_empty_ @@ -116,7 +116,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_setting_content_invalid_ @@ -128,7 +128,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The fakefile ", fakefile, " may only have a single content for the object ", name, ", only using the first"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_setting_content_multiple_ @@ -140,7 +140,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The object ", name, " in the fakefile ", fakefile, " may only be specified once, only using the first"); - return F_none; + return F_okay; } #endif // _di_fake_make_print_warning_setting_object_multiple_ diff --git a/level_3/fake/c/main/make/print/warning.h b/level_3/fake/c/main/make/print/warning.h index 081ad3f..12a07bd 100644 --- a/level_3/fake/c/main/make/print/warning.h +++ b/level_3/fake/c/main/make/print/warning.h @@ -29,7 +29,7 @@ extern "C" { * The path that cannot be changed back to. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -55,7 +55,7 @@ extern "C" { * The name of the environment variable that is already added. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -79,7 +79,7 @@ extern "C" { * The name of the environment variable that is invalid. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -103,7 +103,7 @@ extern "C" { * The name or path of the file that is empty. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -127,7 +127,7 @@ extern "C" { * The name or path of the file that is not found. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -157,7 +157,7 @@ extern "C" { * The name of the setting that has an invalid value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -191,7 +191,7 @@ extern "C" { * The name of the setting that has an invalid value. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -219,7 +219,7 @@ extern "C" { * The name of the content. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -245,7 +245,7 @@ extern "C" { * The name of the object. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/print/error.c b/level_3/fake/c/main/print/error.c index ee39978..f40bd3b 100644 --- a/level_3/fake/c/main/print/error.c +++ b/level_3/fake/c/main/print/error.c @@ -14,7 +14,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_fake_print_error_ @@ -26,7 +26,7 @@ extern "C" { fake_print_context_wrapped_number(print, "The ", (f_number_unsigned_t) index, " argument must not be an empty string"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_argument_empty_ @@ -198,7 +198,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_build_operation_file_full_ @@ -228,7 +228,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The directory ", path, " could not be created, a parent directory is missing or invalid"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_directory_create_parent_missing_ @@ -240,7 +240,7 @@ extern "C" { fake_print_context_simple_variable(print, "Failed to find program ", program, " for executing"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_execute_program_not_found_ @@ -271,7 +271,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_failure_operation_ @@ -283,7 +283,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "Failed to execute script ", script, ""); - return F_none; + return F_okay; } #endif // _di_fake_print_error_failure_script_ @@ -309,7 +309,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_fake_print_error_file_ @@ -321,7 +321,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The file ", path, " could not be created, a parent directory is missing or invalid"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_file_create_parent_missing_ @@ -335,7 +335,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_simple_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_fake_print_error_file_simple_ @@ -409,7 +409,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_fss_message_ @@ -421,7 +421,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The group ", group, " is not found"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_group_not_found_ @@ -433,7 +433,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The mode ", mode, " is invalid"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_mode_invalid_ @@ -445,7 +445,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The number ", number, " is too large"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_number_too_large_ @@ -476,7 +476,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_failed_ @@ -498,7 +498,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_link_argument_unknown_ @@ -510,7 +510,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The point file ", argument, " already exists"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_link_point_exists_ @@ -522,7 +522,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The target file ", argument, " does not exist"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_link_target_exists_not_ @@ -541,7 +541,7 @@ extern "C" { fake_print_error_file(print, function, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e); } - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_path_outside_ @@ -573,7 +573,7 @@ extern "C" { fake_print_error_file(print, function, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e); } - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_path_stack_max_ @@ -606,7 +606,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_stack_max_ @@ -637,7 +637,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_operation_unknown_ @@ -649,7 +649,7 @@ extern "C" { fake_print_context_wrapped_parameter(print, "The ", symbol, name, " parameter must not be empty and must not contain only white space"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_parameter_not_empty_ @@ -661,7 +661,7 @@ extern "C" { fake_print_context_wrapped_parameter_value(print, "The value of the directory parameter ", symbol, name, " has a path of ", value, " that is not found."); - return F_none; + return F_okay; } #endif // _di_fake_print_error_parameter_directory_not_found_path_ @@ -681,7 +681,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_error_parameter_not_word_ @@ -693,7 +693,7 @@ extern "C" { fake_print_context_wrapped_variables(print, "The operation ", operation_1, " cannot be specified with the operation ", operation_2, 0); - return F_none; + return F_okay; } #endif // _di_fake_print_error_parameter_operation_not_with_ @@ -705,7 +705,7 @@ extern "C" { fake_print_context_wrapped_parameter(print, "The parameter ", symbol, parameter, " is specified too many times"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_parameter_too_many_ @@ -717,7 +717,7 @@ extern "C" { fake_print_context_simple(print, "Requires more arguments"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_requires_more_arguments_ @@ -729,7 +729,7 @@ extern "C" { fake_print_context_simple(print, "Has too many arguments"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_too_many_arguments_ @@ -741,7 +741,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The user ", user, " is not found"); - return F_none; + return F_okay; } #endif // _di_fake_print_error_user_not_found_ diff --git a/level_3/fake/c/main/print/error.h b/level_3/fake/c/main/print/error.h index 45ea837..acac5f8 100644 --- a/level_3/fake/c/main/print/error.h +++ b/level_3/fake/c/main/print/error.h @@ -31,7 +31,7 @@ extern "C" { * The function name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -57,7 +57,7 @@ extern "C" { * The index of the argument that is an empty string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -134,7 +134,7 @@ extern "C" { * Likely should have a space added at the start of the string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if print is NULL. @@ -191,7 +191,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -215,7 +215,7 @@ extern "C" { * The identifier of the operation that failed. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -241,7 +241,7 @@ extern "C" { * The name of the script that failed. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -294,7 +294,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -318,7 +318,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -342,7 +342,7 @@ extern "C" { * The name of the not found program. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -372,7 +372,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -440,7 +440,7 @@ extern "C" { * Set to F_true to print the fallback error message for unknown errors. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -466,7 +466,7 @@ extern "C" { * A string representing the group (either as a name or as a group ID). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -490,7 +490,7 @@ extern "C" { * A string representing the invalid mode. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -514,7 +514,7 @@ extern "C" { * A string representing the number that is too large. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -540,7 +540,7 @@ extern "C" { * The range within the buffer representing the operation name within the section. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -564,7 +564,7 @@ extern "C" { * The argument that is unknown by the link operation. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -588,7 +588,7 @@ extern "C" { * The argument representing the point file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -612,7 +612,7 @@ extern "C" { * The argument representing the point file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -640,7 +640,7 @@ extern "C" { * The path that is outside of the project path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -668,7 +668,7 @@ extern "C" { * The path to the directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -699,7 +699,7 @@ extern "C" { * The max stack depth. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -727,7 +727,7 @@ extern "C" { * The range within the buffer representing the operation name within the section. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -757,7 +757,7 @@ extern "C" { * The value that is invalid. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -785,7 +785,7 @@ extern "C" { * The value that is not found. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -813,7 +813,7 @@ extern "C" { * The value that is invalid. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -841,7 +841,7 @@ extern "C" { * The name of the second operation that cannot be used. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -861,7 +861,7 @@ extern "C" { * The parameter name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -879,7 +879,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -897,7 +897,7 @@ extern "C" { * All make related setting data, including data from the fakefile and the build settings file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -921,7 +921,7 @@ extern "C" { * A string representing the user (either as a name or as a user ID). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/print/message.c b/level_3/fake/c/main/print/message.c index 6a645f6..c1461c1 100644 --- a/level_3/fake/c/main/print/message.c +++ b/level_3/fake/c/main/print/message.c @@ -41,7 +41,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_message_building_ @@ -55,7 +55,7 @@ extern "C" { fake_print_context_important_simple_variable(print, "Deleting all files within build directory ", main->setting.build, 0); - return F_none; + return F_okay; } #endif // _di_fake_print_message_delete_all_files_ @@ -67,7 +67,7 @@ extern "C" { fake_print_context_important_simple(print, "Generating skeleton structure"); - return F_none; + return F_okay; } #endif // _di_fake_print_message_generating_skeleton_ @@ -142,7 +142,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_message_help_ diff --git a/level_3/fake/c/main/print/message.h b/level_3/fake/c/main/print/message.h index 554d23d..c42218e 100644 --- a/level_3/fake/c/main/print/message.h +++ b/level_3/fake/c/main/print/message.h @@ -32,7 +32,7 @@ extern "C" { * The build setting data. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see f_file_stream_lock() @@ -54,7 +54,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see fake_print_common_simple_variable() @@ -74,7 +74,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * @see fake_print_common_simple() @@ -94,7 +94,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/print/operation.c b/level_3/fake/c/main/print/operation.c index d641533..55cd009 100644 --- a/level_3/fake/c/main/print/operation.c +++ b/level_3/fake/c/main/print/operation.c @@ -17,7 +17,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_operation_all_complete_ @@ -49,7 +49,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fake_print_operation_cancelled_ diff --git a/level_3/fake/c/main/print/operation.h b/level_3/fake/c/main/print/operation.h index e51430d..7b4b10b 100644 --- a/level_3/fake/c/main/print/operation.h +++ b/level_3/fake/c/main/print/operation.h @@ -27,7 +27,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * The identifier of the operation that failed. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/print/verbose.c b/level_3/fake/c/main/print/verbose.c index 27efb0b..57a9a94 100644 --- a/level_3/fake/c/main/print/verbose.c +++ b/level_3/fake/c/main/print/verbose.c @@ -12,7 +12,7 @@ extern "C" { fake_print_common_wrapped_variables(print, "Cloning file ", source, " to ", destination, f_string_empty_s.string); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_cloning_ @@ -24,7 +24,7 @@ extern "C" { fake_print_common_wrapped_variables(print, "Copying file ", source, " to ", destination, f_string_empty_s.string); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_copying_ @@ -46,7 +46,7 @@ extern "C" { fake_print_common_simple_variable(print, "Created file ", path); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_create_file_ @@ -58,7 +58,7 @@ extern "C" { fake_print_common_wrapped_variable(print, "Directory ", path, " already exists"); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_directory_exists_ @@ -70,7 +70,7 @@ extern "C" { fake_print_common_wrapped_variable(print, "File ", path, " already exists"); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_file_exists_ @@ -82,7 +82,7 @@ extern "C" { fake_print_common_wrapped_variable(print, "File ", path, " already exists (as a symbolic link)"); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_file_exists_as_link_ @@ -94,7 +94,7 @@ extern "C" { fake_print_common_wrapped_variable(print, "File ", path, " already exists but is not a regular file (or a symbolic link)"); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_file_exists_not_regular_or_link_ @@ -106,7 +106,7 @@ extern "C" { fake_print_common_simple_variable(print, "Pre-populated file ", path); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_file_pre_populated_ @@ -118,7 +118,7 @@ extern "C" { fake_print_common_wrapped_variables(print, "Moving file ", source, " to ", destination, f_string_empty_s.string); - return F_none; + return F_okay; } #endif // _di_fake_print_verbose_moving_ diff --git a/level_3/fake/c/main/print/verbose.h b/level_3/fake/c/main/print/verbose.h index b17688c..a123ce5 100644 --- a/level_3/fake/c/main/print/verbose.h +++ b/level_3/fake/c/main/print/verbose.h @@ -31,7 +31,7 @@ extern "C" { * The destination file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -57,7 +57,7 @@ extern "C" { * The destination file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -99,7 +99,7 @@ extern "C" { * The name of the file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -123,7 +123,7 @@ extern "C" { * The name of the directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -147,7 +147,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -171,7 +171,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -195,7 +195,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -219,7 +219,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -245,7 +245,7 @@ extern "C" { * The destination file path. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/print/warning.c b/level_3/fake/c/main/print/warning.c index 341d3c2..a4639d3 100644 --- a/level_3/fake/c/main/print/warning.c +++ b/level_3/fake/c/main/print/warning.c @@ -12,7 +12,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The build directory ", path, " exists but is not a directory"); - return F_none; + return F_okay; } #endif // _di_fake_print_warning_build_directory_not_directory_ @@ -24,7 +24,7 @@ extern "C" { fake_print_context_wrapped_variable(print, "The path ", path, " exists but is not a directory"); - return F_none; + return F_okay; } #endif // _di_fake_print_warning_path_exists_not_directory_ diff --git a/level_3/fake/c/main/print/warning.h b/level_3/fake/c/main/print/warning.h index 080f9bd..a84cdf9 100644 --- a/level_3/fake/c/main/print/warning.h +++ b/level_3/fake/c/main/print/warning.h @@ -29,7 +29,7 @@ extern "C" { * The path of the build directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -53,7 +53,7 @@ extern "C" { * The name of the file or directory. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fake/c/main/signal.c b/level_3/fake/c/main/signal.c index cfff1e8..80bc085 100644 --- a/level_3/fake/c/main/signal.c +++ b/level_3/fake/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/fake/c/main/skeleton.c b/level_3/fake/c/main/skeleton.c index 1c6a9d7..5439fae 100644 --- a/level_3/fake/c/main/skeleton.c +++ b/level_3/fake/c/main/skeleton.c @@ -115,7 +115,7 @@ extern "C" { fake_skeleton_operate_file_create(data, data->file_data_build_fakefile, F_false, fake_make_skeleton_content_fakefile_s); if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_skeleton_operate_ @@ -131,7 +131,7 @@ extern "C" { if (main->setting.state.status == F_true) { fake_print_verbose_directory_exists(&main->program.message, path); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -166,7 +166,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_skeleton_operate_directory_create_ @@ -182,7 +182,7 @@ extern "C" { if (main->setting.state.status == F_true) { fake_print_verbose_file_exists(&main->program.message, path); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -194,7 +194,7 @@ extern "C" { if (main->setting.state.status == F_true) { fake_print_verbose_file_exists_as_link(&main->program.message, path); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -203,7 +203,7 @@ extern "C" { if (main->setting.state.status == F_false) { fake_print_verbose_file_exists_not_regular_or_link(&main->program.message, path); - main->setting.state.status = F_status_set_warning(F_none); + main->setting.state.status = F_status_set_warning(F_okay); return; } @@ -267,7 +267,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fake_skeleton_operate_file_create_ diff --git a/level_3/fake/c/main/skeleton.h b/level_3/fake/c/main/skeleton.h index ae51481..4186117 100644 --- a/level_3/fake/c/main/skeleton.h +++ b/level_3/fake/c/main/skeleton.h @@ -23,7 +23,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * @@ -44,7 +44,7 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * * F_failure (with warning bit) on path exists but is not a directory. * @@ -67,9 +67,9 @@ extern "C" { * The program data. * * This alters data.main->setting.state.status: - * F_none on success. + * F_okay on success. * - * F_none (with warning bit) on file exists but is not a regular or a link. + * F_okay (with warning bit) on file exists but is not a regular or a link. * * Errors (with error bit) from: f_file_create() * Errors (with error bit) from: f_file_is() diff --git a/level_3/firewall/c/common.c b/level_3/firewall/c/common.c index 488fedf..5956658 100644 --- a/level_3/firewall/c/common.c +++ b/level_3/firewall/c/common.c @@ -108,7 +108,7 @@ extern "C" { if (!setting) return F_status_set_error(F_parameter); - return F_none; + return F_okay; } #endif // _di_firewall_setting_delete_ @@ -201,7 +201,7 @@ extern "C" { firewall_setting_delete(&main->setting); - return F_none; + return F_okay; } #endif // _di_firewall_setting_unload_ diff --git a/level_3/firewall/c/common.h b/level_3/firewall/c/common.h index c3c3222..eda13ed 100644 --- a/level_3/firewall/c/common.h +++ b/level_3/firewall/c/common.h @@ -461,7 +461,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ @@ -484,7 +484,7 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). @@ -506,7 +506,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * diff --git a/level_3/firewall/c/firewall.c b/level_3/firewall/c/firewall.c index 1e627c5..cc42f2e 100644 --- a/level_3/firewall/c/firewall.c +++ b/level_3/firewall/c/firewall.c @@ -15,7 +15,7 @@ extern "C" { #ifndef _di_firewall_main_ f_status_t firewall_main(fll_program_data_t * const main, firewall_setting_t * const setting) { - f_status_t status = F_none; + f_status_t status = F_okay; setting->state.step_small = firewall_allocation_console_d; @@ -52,22 +52,22 @@ extern "C" { if (main->parameters.array[f_console_standard_parameter_help_e].result & f_console_result_found_e) { firewall_print_help(setting, main->message); - return F_none; + return F_okay; } if (main->parameters.array[f_console_standard_parameter_version_e].result & f_console_result_found_e) { fll_program_print_version(&main->message, firewall_program_version_s); - return F_none; + return F_okay; } if (main->parameters.array[f_console_standard_parameter_copyright_e].result & f_console_result_found_e) { fll_program_print_copyright(&main->message); - return F_none; + return F_okay; } - status = F_none; + status = F_okay; firewall_data_t data = firewall_data_t_initialize; data.main = main; diff --git a/level_3/firewall/c/firewall.h b/level_3/firewall/c/firewall.h index eb92ecd..4522a86 100644 --- a/level_3/firewall/c/firewall.h +++ b/level_3/firewall/c/firewall.h @@ -73,7 +73,7 @@ extern "C" { * The parameters passed to the process. * * @return - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. * diff --git a/level_3/firewall/c/print.c b/level_3/firewall/c/print.c index 3606471..1a625d4 100644 --- a/level_3/firewall/c/print.c +++ b/level_3/firewall/c/print.c @@ -29,7 +29,7 @@ extern "C" { f_file_stream_flush(print.to); f_file_stream_unlock(print.to); - return F_none; + return F_okay; } #endif // _di_firewall_print_help_ diff --git a/level_3/firewall/c/print.h b/level_3/firewall/c/print.h index b2f32fe..6db7e94 100644 --- a/level_3/firewall/c/print.h +++ b/level_3/firewall/c/print.h @@ -23,7 +23,7 @@ extern "C" { * The output structure to print to. * * @return - * F_none on success. + * F_okay on success. */ #ifndef _di_firewall_print_help_ extern f_status_t firewall_print_help(firewall_setting_t * const setting, const fl_print_t print); diff --git a/level_3/firewall/c/private-common.c b/level_3/firewall/c/private-common.c index 9234aff..54c4185 100644 --- a/level_3/firewall/c/private-common.c +++ b/level_3/firewall/c/private-common.c @@ -11,7 +11,7 @@ extern "C" { f_string_dynamics_resize(0, &data->chains); f_string_dynamics_resize(0, &data->devices); - return F_none; + return F_okay; } #endif // _di_firewall_data_delete_ diff --git a/level_3/firewall/c/private-common.h b/level_3/firewall/c/private-common.h index 9252930..4d9d76d 100644 --- a/level_3/firewall/c/private-common.h +++ b/level_3/firewall/c/private-common.h @@ -98,7 +98,7 @@ typedef struct { * The program data. * * @return - * F_none on success. + * F_okay on success. * * Status codes (with error bit) are returned on any problem. * diff --git a/level_3/firewall/c/private-firewall.c b/level_3/firewall/c/private-firewall.c index 54afad5..62d336e 100644 --- a/level_3/firewall/c/private-firewall.c +++ b/level_3/firewall/c/private-firewall.c @@ -10,7 +10,7 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca if (!data || !local || local->device >= data->devices.used) return F_status_set_error(F_parameter); - f_status_t status = F_none; + f_status_t status = F_okay; bool invalid = F_false; bool is_ip_list = F_false; @@ -396,7 +396,7 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca if (F_status_is_error(status)) break; if (status == F_data_not) { - status = F_none; + status = F_okay; } else { ++arguments.used; @@ -561,7 +561,7 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca fll_print_format("%r%[%QCannot find the file '%Q'.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, path_file, data->main->warning.context, f_string_eol_s); } - status = F_none; + status = F_okay; } else if (F_status_set_fine(status) == F_file_open) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { @@ -782,7 +782,7 @@ f_status_t firewall_create_custom_chains(firewall_data_t * const data, firewall_ if (!data || !local) return F_status_set_error(F_parameter); - f_status_t status = F_none; + f_status_t status = F_okay; uint8_t tool = firewall_program_iptables_e; bool new_chain = F_false; @@ -975,7 +975,7 @@ f_status_t firewall_delete_chains(firewall_data_t * const data) { if (!data) return F_status_set_error(F_parameter); const f_string_static_t tools[2] = { firewall_tool_iptables_s, firewall_tool_ip6tables_s }; - f_status_t status = F_none; + f_status_t status = F_okay; for (f_number_unsigned_t i = 0; i < 2; ++i) { @@ -1071,7 +1071,7 @@ f_status_t firewall_default_lock(firewall_data_t * const data) { const f_string_static_t chains[3] = { firewall_chain_input_s, firewall_chain_output_s, firewall_chain_forward_s }; const f_string_static_t tools[2] = { firewall_tool_iptables_s, firewall_tool_ip6tables_s }; - f_status_t status = F_none; + f_status_t status = F_okay; int return_code = 0; @@ -1247,7 +1247,7 @@ f_status_t firewall_process_rules(firewall_data_t * const data, f_string_range_t if (!data || !range || !local) return F_status_set_error(F_parameter); - f_status_t status = F_none; + f_status_t status = F_okay; f_number_unsigneds_t delimits = f_number_unsigneds_t_initialize; f_state_t state = f_state_t_initialize; @@ -1306,7 +1306,7 @@ f_status_t firewall_delete_local_data(firewall_local_data_t * const local) { f_string_ranges_resize(0, &local->rule_objects); f_string_rangess_resize(0, &local->rule_contents); - return F_none; + return F_okay; } #ifdef __cplusplus diff --git a/level_3/firewall/c/private-firewall.h b/level_3/firewall/c/private-firewall.h index 95f28f9..14ed355 100644 --- a/level_3/firewall/c/private-firewall.h +++ b/level_3/firewall/c/private-firewall.h @@ -21,7 +21,7 @@ extern "C" { * Local firewall settings. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. @@ -50,7 +50,7 @@ extern f_status_t firewall_perform_commands(firewall_data_t * const data, firewa * Local firewall settings. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. @@ -67,7 +67,7 @@ extern f_status_t firewall_create_custom_chains(firewall_data_t * const data, fi * The program data. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * F_interrupt (with error bit) on receiving a process signal, such as an interrupt signal. @@ -84,7 +84,7 @@ extern f_status_t firewall_delete_chains(firewall_data_t * const data) F_attribu * The program data. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * Status codes (with error bit) are returned on any problem. @@ -105,7 +105,7 @@ extern f_status_t firewall_default_lock(firewall_data_t * const data) F_attribut * Local firewall settings. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * Status codes (with error bit) are returned on any problem. @@ -123,7 +123,7 @@ extern f_status_t firewall_buffer_rules(firewall_data_t * const data, const f_st * Local firewall settings. * * @return - * F_none on success. + * F_okay on success. * F_child on child process exiting. * * Status codes (with error bit) are returned on any problem. @@ -137,7 +137,7 @@ extern f_status_t firewall_process_rules(firewall_data_t * const data, f_string_ * Local firewall settings. * * @return - * F_none on success. + * F_okay on success. * * Status codes (with error bit) are returned on any problem. */ diff --git a/level_3/fss_identify/c/main/common.c b/level_3/fss_identify/c/main/common.c index a2a2870..0408a85 100644 --- a/level_3/fss_identify/c/main/common.c +++ b/level_3/fss_identify/c/main/common.c @@ -161,7 +161,7 @@ extern "C" { f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; - f_status_t status = F_none; + f_status_t status = F_okay; for (; i < main->setting.names.used; ++i) { diff --git a/level_3/fss_identify/c/main/common.h b/level_3/fss_identify/c/main/common.h index 6238b21..d1a5268 100644 --- a/level_3/fss_identify/c/main/common.h +++ b/level_3/fss_identify/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). diff --git a/level_3/fss_identify/c/main/common/type.c b/level_3/fss_identify/c/main/common/type.c index e7647d8..bb5e4fe 100644 --- a/level_3/fss_identify/c/main/common/type.c +++ b/level_3/fss_identify/c/main/common/type.c @@ -26,7 +26,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->names); f_string_dynamics_resize(0, &setting->files); - return F_none; + return F_okay; } #endif // _di_fss_identify_setting_delete_ diff --git a/level_3/fss_identify/c/main/common/type.h b/level_3/fss_identify/c/main/common/type.h index 2865e38..b061e20 100644 --- a/level_3/fss_identify/c/main/common/type.h +++ b/level_3/fss_identify/c/main/common/type.h @@ -67,7 +67,7 @@ extern "C" { 0, \ 0, \ f_string_range_t_initialize, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ f_file_t_initialize, \ f_string_dynamic_t_initialize, \ @@ -118,7 +118,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/fss_identify/c/main/fss_identify.c b/level_3/fss_identify/c/main/fss_identify.c index a34b129..dc49243 100644 --- a/level_3/fss_identify/c/main/fss_identify.c +++ b/level_3/fss_identify/c/main/fss_identify.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (fss_identify_main_flag_help_e | fss_identify_main_flag_version_e | fss_identify_main_flag_copyright_e)) { if (main->setting.flag & fss_identify_main_flag_help_e) { @@ -92,7 +92,7 @@ extern "C" { if (F_status_set_fine(main->setting.state.status) == F_interrupt) return; if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_identify_main_ diff --git a/level_3/fss_identify/c/main/fss_identify.h b/level_3/fss_identify/c/main/fss_identify.h index 92de992..f003f17 100644 --- a/level_3/fss_identify/c/main/fss_identify.h +++ b/level_3/fss_identify/c/main/fss_identify.h @@ -73,7 +73,7 @@ extern "C" { * The main program and setting data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * diff --git a/level_3/fss_identify/c/main/load.c b/level_3/fss_identify/c/main/load.c index 9b1d157..34bace4 100644 --- a/level_3/fss_identify/c/main/load.c +++ b/level_3/fss_identify/c/main/load.c @@ -13,7 +13,7 @@ extern "C" { if (!main) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; main->setting.buffer.used = 0; main->setting.range.start = 0; main->setting.range.stop = 0; @@ -43,12 +43,12 @@ extern "C" { main->setting.range.stop = main->setting.range.start; - } while (main->setting.state.status != F_none_eof && main->setting.buffer.string[main->setting.range.start] != f_string_eol_s.string[0]); + } while (main->setting.state.status != F_okay_eof && main->setting.buffer.string[main->setting.range.start] != f_string_eol_s.string[0]); // Reset the start point to prepare the buffer for processing. main->setting.range.start = 0; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_identify_load_line_ diff --git a/level_3/fss_identify/c/main/load.h b/level_3/fss_identify/c/main/load.h index fef66ee..638e436 100644 --- a/level_3/fss_identify/c/main/load.h +++ b/level_3/fss_identify/c/main/load.h @@ -19,7 +19,7 @@ * The main program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_file_stream_read_block(). * Errors (with error bit) from: f_string_dynamic_resize(). diff --git a/level_3/fss_identify/c/main/print/data.c b/level_3/fss_identify/c/main/print/data.c index ce09d5b..d3cd3db 100644 --- a/level_3/fss_identify/c/main/print/data.c +++ b/level_3/fss_identify/c/main/print/data.c @@ -29,7 +29,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_data_id_ @@ -42,7 +42,7 @@ extern "C" { fll_print_format("%ul%r", print->to, main->setting.total, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_data_total_ diff --git a/level_3/fss_identify/c/main/print/data.h b/level_3/fss_identify/c/main/print/data.h index 182b859..fbbadc4 100644 --- a/level_3/fss_identify/c/main/print/data.h +++ b/level_3/fss_identify/c/main/print/data.h @@ -27,7 +27,7 @@ extern "C" { * The Identifier to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -45,7 +45,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fss_identify/c/main/print/error.c b/level_3/fss_identify/c/main/print/error.c index d3b6a2a..7ee2bda 100644 --- a/level_3/fss_identify/c/main/print/error.c +++ b/level_3/fss_identify/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((fss_identify_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_error_ @@ -26,7 +26,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_error_file_ @@ -38,7 +38,7 @@ extern "C" { fll_print_format("%[%QNo sources are specified, please pipe data or designate a file.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_error_no_from_ @@ -58,7 +58,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_error_parameter_file_name_empty_ @@ -80,7 +80,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_error_parameter_file_name_invalid_ diff --git a/level_3/fss_identify/c/main/print/error.h b/level_3/fss_identify/c/main/print/error.h index b5d6e90..594b181 100644 --- a/level_3/fss_identify/c/main/print/error.h +++ b/level_3/fss_identify/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -74,7 +74,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -96,7 +96,7 @@ extern "C" { * The index within the argv[] array where the empty string is found. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -122,7 +122,7 @@ extern "C" { * The parameter name value string that is invalid. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fss_identify/c/main/print/message.c b/level_3/fss_identify/c/main/print/message.c index dc789f3..a675fea 100644 --- a/level_3/fss_identify/c/main/print/message.c +++ b/level_3/fss_identify/c/main/print/message.c @@ -50,7 +50,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_identify_print_message_help_ #ifdef __cplusplus diff --git a/level_3/fss_identify/c/main/print/message.h b/level_3/fss_identify/c/main/print/message.h index e3eacae..fc998a7 100644 --- a/level_3/fss_identify/c/main/print/message.h +++ b/level_3/fss_identify/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fss_identify/c/main/process.c b/level_3/fss_identify/c/main/process.c index 71c1590..fd6837d 100644 --- a/level_3/fss_identify/c/main/process.c +++ b/level_3/fss_identify/c/main/process.c @@ -92,7 +92,7 @@ extern "C" { } // for } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_identify_process_ diff --git a/level_3/fss_identify/c/main/process.h b/level_3/fss_identify/c/main/process.h index f2a169e..30caa80 100644 --- a/level_3/fss_identify/c/main/process.h +++ b/level_3/fss_identify/c/main/process.h @@ -22,7 +22,7 @@ * This alters main.program.signal_received, setting it to a received signal. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fll_fss_identify(). * @param name diff --git a/level_3/fss_identify/c/main/signal.c b/level_3/fss_identify/c/main/signal.c index 2faad5c..42ffca4 100644 --- a/level_3/fss_identify/c/main/signal.c +++ b/level_3/fss_identify/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/fss_read/c/basic/fss_read.c b/level_3/fss_read/c/basic/fss_read.c index 6e7a635..14acecf 100644 --- a/level_3/fss_read/c/basic/fss_read.c +++ b/level_3/fss_read/c/basic/fss_read.c @@ -55,7 +55,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_basic_process_load_ diff --git a/level_3/fss_read/c/basic/fss_read.h b/level_3/fss_read/c/basic/fss_read.h index 6b232c5..0598960 100644 --- a/level_3/fss_read/c/basic/fss_read.h +++ b/level_3/fss_read/c/basic/fss_read.h @@ -77,7 +77,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_basic_process_help_ @@ -96,7 +96,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. diff --git a/level_3/fss_read/c/basic/print.c b/level_3/fss_read/c/basic/print.c index 3d86963..103dea4 100644 --- a/level_3/fss_read/c/basic/print.c +++ b/level_3/fss_read/c/basic/print.c @@ -30,7 +30,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_basic_print_help_ @@ -50,7 +50,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_fss_read_basic_print_object_end_ diff --git a/level_3/fss_read/c/basic/print.h b/level_3/fss_read/c/basic/print.h index 40c5c3f..c3e7932 100644 --- a/level_3/fss_read/c/basic/print.h +++ b/level_3/fss_read/c/basic/print.h @@ -21,7 +21,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -43,7 +43,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/basic_list/fss_read.c b/level_3/fss_read/c/basic_list/fss_read.c index 6d6e4bf..6d1f477 100644 --- a/level_3/fss_read/c/basic_list/fss_read.c +++ b/level_3/fss_read/c/basic_list/fss_read.c @@ -55,7 +55,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_basic_list_process_load_ diff --git a/level_3/fss_read/c/basic_list/fss_read.h b/level_3/fss_read/c/basic_list/fss_read.h index 2b57474..b13c8b5 100644 --- a/level_3/fss_read/c/basic_list/fss_read.h +++ b/level_3/fss_read/c/basic_list/fss_read.h @@ -77,7 +77,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_basic_list_process_help_ @@ -96,7 +96,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. diff --git a/level_3/fss_read/c/basic_list/print.c b/level_3/fss_read/c/basic_list/print.c index 0d47ffb..9e89e2d 100644 --- a/level_3/fss_read/c/basic_list/print.c +++ b/level_3/fss_read/c/basic_list/print.c @@ -30,7 +30,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_basic_list_print_help_ @@ -58,7 +58,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_basic_list_print_object_end_ diff --git a/level_3/fss_read/c/basic_list/print.h b/level_3/fss_read/c/basic_list/print.h index f99fb8b..029055e 100644 --- a/level_3/fss_read/c/basic_list/print.h +++ b/level_3/fss_read/c/basic_list/print.h @@ -21,7 +21,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -43,7 +43,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/embedded_list/fss_read.c b/level_3/fss_read/c/embedded_list/fss_read.c index 1725b21..326d306 100644 --- a/level_3/fss_read/c/embedded_list/fss_read.c +++ b/level_3/fss_read/c/embedded_list/fss_read.c @@ -55,7 +55,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_embedded_list_process_load_ diff --git a/level_3/fss_read/c/embedded_list/fss_read.h b/level_3/fss_read/c/embedded_list/fss_read.h index 6b77918..be8f50a 100644 --- a/level_3/fss_read/c/embedded_list/fss_read.h +++ b/level_3/fss_read/c/embedded_list/fss_read.h @@ -77,7 +77,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_embedded_list_process_help_ @@ -96,7 +96,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. diff --git a/level_3/fss_read/c/embedded_list/print.c b/level_3/fss_read/c/embedded_list/print.c index 66a2a8e..bdf29b5 100644 --- a/level_3/fss_read/c/embedded_list/print.c +++ b/level_3/fss_read/c/embedded_list/print.c @@ -30,7 +30,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_embedded_list_print_help_ @@ -58,7 +58,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_embedded_list_print_object_end_ @@ -74,7 +74,7 @@ extern "C" { f_print_dynamic_raw(f_fss_embedded_list_close_end_s, print->to); } - return F_none; + return F_okay; } #endif // _di_fss_read_embedded_list_print_set_end_ diff --git a/level_3/fss_read/c/embedded_list/print.h b/level_3/fss_read/c/embedded_list/print.h index 6914be9..4c62c4d 100644 --- a/level_3/fss_read/c/embedded_list/print.h +++ b/level_3/fss_read/c/embedded_list/print.h @@ -21,7 +21,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -43,7 +43,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -69,7 +69,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/extended/fss_read.c b/level_3/fss_read/c/extended/fss_read.c index 0489d89..213add1 100644 --- a/level_3/fss_read/c/extended/fss_read.c +++ b/level_3/fss_read/c/extended/fss_read.c @@ -55,7 +55,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_extended_process_load_ diff --git a/level_3/fss_read/c/extended/fss_read.h b/level_3/fss_read/c/extended/fss_read.h index db910e6..0a08278 100644 --- a/level_3/fss_read/c/extended/fss_read.h +++ b/level_3/fss_read/c/extended/fss_read.h @@ -96,7 +96,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_extended_process_help_ @@ -115,7 +115,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. diff --git a/level_3/fss_read/c/extended/print.c b/level_3/fss_read/c/extended/print.c index 040fe85..9cec070 100644 --- a/level_3/fss_read/c/extended/print.c +++ b/level_3/fss_read/c/extended/print.c @@ -15,7 +15,7 @@ extern "C" { fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_format_e) ? fss_read_pipe_content_start_s : f_fss_extended_next_s, print->to); } - return F_none; + return F_okay; } #endif // _di_fss_read_extended_print_content_next_ @@ -45,7 +45,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_extended_print_help_ @@ -65,7 +65,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_fss_read_extended_print_object_end_ diff --git a/level_3/fss_read/c/extended/print.h b/level_3/fss_read/c/extended/print.h index 8d7d834..f8b10a2 100644 --- a/level_3/fss_read/c/extended/print.h +++ b/level_3/fss_read/c/extended/print.h @@ -27,7 +27,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -47,7 +47,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -69,7 +69,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/extended_list/fss_read.c b/level_3/fss_read/c/extended_list/fss_read.c index 6c130e5..adb75b2 100644 --- a/level_3/fss_read/c/extended_list/fss_read.c +++ b/level_3/fss_read/c/extended_list/fss_read.c @@ -55,7 +55,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_extended_list_process_load_ diff --git a/level_3/fss_read/c/extended_list/fss_read.h b/level_3/fss_read/c/extended_list/fss_read.h index ca8ed26..db7780f 100644 --- a/level_3/fss_read/c/extended_list/fss_read.h +++ b/level_3/fss_read/c/extended_list/fss_read.h @@ -77,7 +77,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_extended_list_process_help_ @@ -96,7 +96,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. diff --git a/level_3/fss_read/c/extended_list/print.c b/level_3/fss_read/c/extended_list/print.c index 4ec740d..f3c2fc0 100644 --- a/level_3/fss_read/c/extended_list/print.c +++ b/level_3/fss_read/c/extended_list/print.c @@ -30,7 +30,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_extended_list_print_help_ @@ -58,7 +58,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_extended_list_print_object_end_ @@ -74,7 +74,7 @@ extern "C" { f_print_dynamic_raw(f_fss_extended_list_close_end_s, print->to); } - return F_none; + return F_okay; } #endif // _di_fss_read_extended_list_print_set_end_ diff --git a/level_3/fss_read/c/extended_list/print.h b/level_3/fss_read/c/extended_list/print.h index 823832e..bb30dc0 100644 --- a/level_3/fss_read/c/extended_list/print.h +++ b/level_3/fss_read/c/extended_list/print.h @@ -21,7 +21,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -43,7 +43,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -67,7 +67,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/main/common.c b/level_3/fss_read/c/main/common.c index 560b2fb..68ebe99 100644 --- a/level_3/fss_read/c/main/common.c +++ b/level_3/fss_read/c/main/common.c @@ -36,7 +36,7 @@ extern "C" { } // for } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_ensure_quotes_length_ @@ -123,7 +123,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; if (main->setting.state.status == F_done) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -495,7 +495,7 @@ extern "C" { main->setting.files.array[0].range.start = 0; - while (main->setting.state.status != F_none_eof) { + while (main->setting.state.status != F_okay_eof) { if (fss_read_signal_check(main)) break; @@ -802,7 +802,7 @@ extern "C" { } // for } // for - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_setting_load_depth_ diff --git a/level_3/fss_read/c/main/common.h b/level_3/fss_read/c/main/common.h index 16216d1..3be3a1d 100644 --- a/level_3/fss_read/c/main/common.h +++ b/level_3/fss_read/c/main/common.h @@ -23,7 +23,7 @@ extern "C" { * The main program data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_memory_array_resize(). * Errors (with error bit) from: f_memory_arrays_resize(). @@ -52,7 +52,7 @@ extern "C" { * This alters main.setting.range. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * * F_interrupt (with error bit) on interrupt signal received. @@ -68,7 +68,7 @@ extern "C" { * Errors (with error bit) from: fss_read_signal_check() * @param callback * (optional) Designate a function to call after performing the initial processing, but before printing help. - * If the function returns F_done, then this function immediately returns, resetting status to F_none. + * If the function returns F_done, then this function immediately returns, resetting status to F_okay. * Set to NULL to disable. * * @see f_console_parameter_process() @@ -102,7 +102,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_interrupt (with error bit) on interrupt signal received. * F_parameter (with error bit) on parameter error. diff --git a/level_3/fss_read/c/main/common/type.c b/level_3/fss_read/c/main/common/type.c index df851a1..afc436f 100644 --- a/level_3/fss_read/c/main/common/type.c +++ b/level_3/fss_read/c/main/common/type.c @@ -33,7 +33,7 @@ extern "C" { depths->used = length; } - return F_none; + return F_okay; } #endif // _di_fss_read_depths_resize_ @@ -53,7 +53,7 @@ extern "C" { files->used = length; } - return F_none; + return F_okay; } #endif // _di_fss_read_files_resize_ @@ -89,7 +89,7 @@ extern "C" { f_memory_array_resize(0, sizeof(uint8_t), (void **) &setting->quotes_object.array, &setting->quotes_object.used, &setting->quotes_object.size); f_memory_arrays_resize(0, sizeof(f_uint8s_t), (void **) &setting->quotes_content.array, &setting->quotes_content.used, &setting->quotes_content.size, &f_uint8ss_delete_callback); - return F_none; + return F_okay; } #endif // _di_fss_read_setting_delete_ diff --git a/level_3/fss_read/c/main/common/type.h b/level_3/fss_read/c/main/common/type.h index 0a322a8..1281d79 100644 --- a/level_3/fss_read/c/main/common/type.h +++ b/level_3/fss_read/c/main/common/type.h @@ -249,8 +249,8 @@ extern "C" { { \ fss_read_main_flag_none_e, \ fss_read_delimit_mode_all_e, \ - F_none, \ - macro_f_state_t_initialize_1(fss_read_allocation_large_d, fss_read_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ + F_okay, \ + macro_f_state_t_initialize_1(fss_read_allocation_large_d, fss_read_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ 0, \ 0, \ 0, \ @@ -315,7 +315,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -338,7 +338,7 @@ extern "C" { * Must not be NULL. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. * @@ -378,7 +378,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/fss_read/c/main/fss_read.c b/level_3/fss_read/c/main/fss_read.c index ba42f8f..1c3068e 100644 --- a/level_3/fss_read/c/main/fss_read.c +++ b/level_3/fss_read/c/main/fss_read.c @@ -64,7 +64,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (fss_read_main_flag_help_e | fss_read_main_flag_version_e | fss_read_main_flag_copyright_e)) { if (main->setting.flag & fss_read_main_flag_help_e) { diff --git a/level_3/fss_read/c/main/fss_read.h b/level_3/fss_read/c/main/fss_read.h index 888edd3..bcf52c1 100644 --- a/level_3/fss_read/c/main/fss_read.h +++ b/level_3/fss_read/c/main/fss_read.h @@ -123,7 +123,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * @@ -164,7 +164,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_append_assure(). * diff --git a/level_3/fss_read/c/main/main.h b/level_3/fss_read/c/main/main.h index d183272..10726e6 100644 --- a/level_3/fss_read/c/main/main.h +++ b/level_3/fss_read/c/main/main.h @@ -43,7 +43,7 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_main_process_help_ @@ -65,7 +65,7 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); * This alters main.callback.process_help, main.callback.process_normal, and main.callback.process_pipe. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * F_parameter (with error bit) on parameter related error. diff --git a/level_3/fss_read/c/main/main/print.c b/level_3/fss_read/c/main/main/print.c index 48b6e2b..46cd714 100644 --- a/level_3/fss_read/c/main/main/print.c +++ b/level_3/fss_read/c/main/main/print.c @@ -27,7 +27,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_main_print_error_format_unknown_ @@ -109,7 +109,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_main_main_print_help_ diff --git a/level_3/fss_read/c/main/main/print.h b/level_3/fss_read/c/main/main/print.h index e885561..0cb6aba 100644 --- a/level_3/fss_read/c/main/main/print.h +++ b/level_3/fss_read/c/main/main/print.h @@ -23,7 +23,7 @@ extern "C" { * A string representing the value that is of an unknown format. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -41,7 +41,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/fss_read/c/main/print/data.c b/level_3/fss_read/c/main/print/data.c index 29a51d0..d83b39b 100644 --- a/level_3/fss_read/c/main/print/data.c +++ b/level_3/fss_read/c/main/print/data.c @@ -59,7 +59,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_fss_read_print_at_ @@ -92,7 +92,7 @@ extern "C" { main->callback.print_content_ignore(&main->program.output); } - return F_none; + return F_okay; } #endif // _di_fss_read_print_content_ @@ -107,7 +107,7 @@ extern "C" { fll_print_dynamic_raw(fss_read_pipe_content_ignore_s, print->to); } - return F_none; + return F_okay; } #endif // _di_fss_read_print_content_ignore_ @@ -118,7 +118,7 @@ extern "C" { fll_print_format("%ul%r", print->to, number, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fss_read_print_number_ @@ -164,7 +164,7 @@ extern "C" { } } - return F_none; + return F_okay; } #endif // _di_fss_read_print_object_ @@ -184,7 +184,7 @@ extern "C" { ); } - return F_none; + return F_okay; } #endif // _di_fss_read_print_quote_ @@ -197,7 +197,7 @@ extern "C" { fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_format_e) ? fss_read_pipe_content_end_s : f_string_eol_s, print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_set_end_ @@ -212,7 +212,7 @@ extern "C" { fll_print_dynamic_raw(fss_read_pipe_content_end_s, print->to); } - return F_none; + return F_okay; } #endif // _di_fss_read_print_set_end_no_eol_ diff --git a/level_3/fss_read/c/main/print/data.h b/level_3/fss_read/c/main/print/data.h index 96c857c..4061a73 100644 --- a/level_3/fss_read/c/main/print/data.h +++ b/level_3/fss_read/c/main/print/data.h @@ -39,7 +39,7 @@ extern "C" { * This represents the positions within the current Content at the "at" position. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -80,7 +80,7 @@ extern "C" { * The delimits array representing a delimited Content. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -107,7 +107,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -133,7 +133,7 @@ extern "C" { * The number to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -164,7 +164,7 @@ extern "C" { * This represents the positions within the current Object at the "at" position. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -198,7 +198,7 @@ extern "C" { * This represents the positions within the current Object at the "at" position. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -222,7 +222,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -248,7 +248,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/main/print/error.c b/level_3/fss_read/c/main/print/error.c index 8b55ab5..bfbbc50 100644 --- a/level_3/fss_read/c/main/print/error.c +++ b/level_3/fss_read/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((fss_read_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_ @@ -24,7 +24,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(((fss_read_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_file_ @@ -42,7 +42,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_parameter_requires_message_ @@ -64,7 +64,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_parameter_value_before_value_number_ @@ -84,7 +84,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_parameter_value_once_only_number_ @@ -102,7 +102,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_one_content_only_ @@ -124,7 +124,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_print_error_unsupported_eol_ diff --git a/level_3/fss_read/c/main/print/error.h b/level_3/fss_read/c/main/print/error.h index 28efcc2..0efb66b 100644 --- a/level_3/fss_read/c/main/print/error.h +++ b/level_3/fss_read/c/main/print/error.h @@ -27,7 +27,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -58,7 +58,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -87,7 +87,7 @@ extern "C" { * The message to print regarding why the message should be displayed. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -116,7 +116,7 @@ extern "C" { * The parameter value that is before the "value" function parameter. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -143,7 +143,7 @@ extern "C" { * The parameter value that is already specified. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -163,7 +163,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -183,7 +183,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_read/c/main/process_normal.c b/level_3/fss_read/c/main/process_normal.c index 66d87d5..9d5235c 100644 --- a/level_3/fss_read/c/main/process_normal.c +++ b/level_3/fss_read/c/main/process_normal.c @@ -21,7 +21,7 @@ extern "C" { fss_read_print_number(&main->program.output, 0); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -110,7 +110,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_ @@ -126,7 +126,7 @@ extern "C" { fss_read_print_number(&main->program.output, 0); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -134,7 +134,7 @@ extern "C" { // If the standard only has one line per Content, then any line value greater than 0 equates to no line to print. if ((main->setting.flag & fss_read_main_flag_line_e) && (main->setting.flag & fss_read_main_flag_line_single_e)) { if (main->setting.line) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -169,7 +169,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -183,7 +183,7 @@ extern "C" { fss_read_print_number(&main->program.output, 0); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_at_ @@ -236,7 +236,7 @@ extern "C" { ++(*line); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -346,7 +346,7 @@ extern "C" { } } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_at_line_ @@ -360,7 +360,7 @@ extern "C" { if (!(main->setting.flag & fss_read_main_flag_content_e)) { fss_read_print_number(&main->program.output, 0); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -393,7 +393,7 @@ extern "C" { fss_read_print_number(&main->program.output, max); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_columns_ @@ -434,7 +434,7 @@ extern "C" { memset(names, F_true, sizeof(bool) * main->setting.objects.used); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_name_ @@ -488,7 +488,7 @@ extern "C" { : total ); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_total_ @@ -566,7 +566,7 @@ extern "C" { : total ); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_process_normal_total_multiple_ diff --git a/level_3/fss_read/c/main/process_normal.h b/level_3/fss_read/c/main/process_normal.h index 7774c24..f39eca1 100644 --- a/level_3/fss_read/c/main/process_normal.h +++ b/level_3/fss_read/c/main/process_normal.h @@ -26,7 +26,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: main.callback.process_at(). * Errors (with error bit) from: main.callback.process_at_line(). @@ -57,7 +57,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fss_read_signal_check(). * @param names @@ -88,7 +88,7 @@ extern "C" { * This alters main.setting.range. * * This alters main.setting.state.status: - * F_none on success but line not yet found. + * F_okay on success but line not yet found. * F_success on success and line is found and printed. * * Errors (with error bit) from: f_string_dynamic_append_assure(). @@ -122,7 +122,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fss_read_signal_check(). * @param names @@ -145,7 +145,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fss_read_signal_check(). * @param names @@ -170,7 +170,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fss_read_signal_check(). * @param names @@ -195,7 +195,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: fss_read_signal_check(). * @param names diff --git a/level_3/fss_read/c/main/signal.c b/level_3/fss_read/c/main/signal.c index fa651f9..78c45c8 100644 --- a/level_3/fss_read/c/main/signal.c +++ b/level_3/fss_read/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/fss_read/c/payload/fss_read.c b/level_3/fss_read/c/payload/fss_read.c index 58bff92..cb56b3e 100644 --- a/level_3/fss_read/c/payload/fss_read.c +++ b/level_3/fss_read/c/payload/fss_read.c @@ -73,7 +73,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_payload_process_load_ @@ -84,7 +84,7 @@ extern "C" { fss_read_main_t * const main = (fss_read_main_t *) void_main; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_read_payload_process_set_ diff --git a/level_3/fss_read/c/payload/fss_read.h b/level_3/fss_read/c/payload/fss_read.h index 3df87a6..7a8dedb 100644 --- a/level_3/fss_read/c/payload/fss_read.h +++ b/level_3/fss_read/c/payload/fss_read.h @@ -78,7 +78,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_read_payload_process_help_ @@ -97,7 +97,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * F_data_not_stop (with warning bit) on no valid FSS data found and reached stopping point. * F_data_not_eos (with warning bit) on no valid FSS data found and reached end of string. @@ -125,7 +125,7 @@ extern "C" { * Must be of type fss_read_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. */ #ifndef _di_fss_read_payload_process_set_ extern void fss_read_payload_process_set(void * const main); @@ -146,12 +146,12 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) on parameter error. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * * @see fss_read_setting_load() diff --git a/level_3/fss_read/c/payload/print.c b/level_3/fss_read/c/payload/print.c index 6ab79f4..fa91a73 100644 --- a/level_3/fss_read/c/payload/print.c +++ b/level_3/fss_read/c/payload/print.c @@ -12,7 +12,7 @@ extern "C" { fll_print_format("%r%[%QThe payload may only be specified last.%]%r", print->to, f_string_eol_s, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_fss_read_payload_print_error_payload_not_last_ @@ -48,7 +48,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_payload_print_help_ @@ -77,7 +77,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_read_payload_print_object_end_ diff --git a/level_3/fss_read/c/payload/print.h b/level_3/fss_read/c/payload/print.h index cd97707..c67b5f0 100644 --- a/level_3/fss_read/c/payload/print.h +++ b/level_3/fss_read/c/payload/print.h @@ -21,7 +21,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -41,7 +41,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -63,7 +63,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/basic/fss_write.c b/level_3/fss_write/c/basic/fss_write.c index a2815d2..5c1d503 100644 --- a/level_3/fss_write/c/basic/fss_write.c +++ b/level_3/fss_write/c/basic/fss_write.c @@ -23,7 +23,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -84,7 +84,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); diff --git a/level_3/fss_write/c/basic/fss_write.h b/level_3/fss_write/c/basic/fss_write.h index c1b9e4b..0314ab1 100644 --- a/level_3/fss_write/c/basic/fss_write.h +++ b/level_3/fss_write/c/basic/fss_write.h @@ -90,7 +90,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_basic_process_help_ diff --git a/level_3/fss_write/c/basic/print.c b/level_3/fss_write/c/basic/print.c index 50e38f3..2c9038a 100644 --- a/level_3/fss_write/c/basic/print.c +++ b/level_3/fss_write/c/basic/print.c @@ -32,7 +32,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_basic_print_help_ diff --git a/level_3/fss_write/c/basic/print.h b/level_3/fss_write/c/basic/print.h index 9820d91..d72ec1c 100644 --- a/level_3/fss_write/c/basic/print.h +++ b/level_3/fss_write/c/basic/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/basic_list/fss_write.c b/level_3/fss_write/c/basic_list/fss_write.c index 120fc95..8eda6b7 100644 --- a/level_3/fss_write/c/basic_list/fss_write.c +++ b/level_3/fss_write/c/basic_list/fss_write.c @@ -26,7 +26,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -84,7 +84,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); diff --git a/level_3/fss_write/c/basic_list/fss_write.h b/level_3/fss_write/c/basic_list/fss_write.h index ff46c2d..ebb9e24 100644 --- a/level_3/fss_write/c/basic_list/fss_write.h +++ b/level_3/fss_write/c/basic_list/fss_write.h @@ -91,7 +91,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_basic_list_process_help_ diff --git a/level_3/fss_write/c/basic_list/print.c b/level_3/fss_write/c/basic_list/print.c index 35ce56e..d4647c5 100644 --- a/level_3/fss_write/c/basic_list/print.c +++ b/level_3/fss_write/c/basic_list/print.c @@ -32,7 +32,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_basic_list_print_help_ diff --git a/level_3/fss_write/c/basic_list/print.h b/level_3/fss_write/c/basic_list/print.h index 4d98e6f..2e47fa0 100644 --- a/level_3/fss_write/c/basic_list/print.h +++ b/level_3/fss_write/c/basic_list/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/embedded_list/fss_write.c b/level_3/fss_write/c/embedded_list/fss_write.c index a74c16c..d2ab259 100644 --- a/level_3/fss_write/c/embedded_list/fss_write.c +++ b/level_3/fss_write/c/embedded_list/fss_write.c @@ -27,7 +27,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -89,7 +89,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); diff --git a/level_3/fss_write/c/embedded_list/fss_write.h b/level_3/fss_write/c/embedded_list/fss_write.h index 68c4456..9516c12 100644 --- a/level_3/fss_write/c/embedded_list/fss_write.h +++ b/level_3/fss_write/c/embedded_list/fss_write.h @@ -90,7 +90,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_embedded_list_process_help_ diff --git a/level_3/fss_write/c/embedded_list/print.c b/level_3/fss_write/c/embedded_list/print.c index 5c29ff9..eff5ec5 100644 --- a/level_3/fss_write/c/embedded_list/print.c +++ b/level_3/fss_write/c/embedded_list/print.c @@ -35,7 +35,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_embedded_list_print_help_ diff --git a/level_3/fss_write/c/embedded_list/print.h b/level_3/fss_write/c/embedded_list/print.h index 9e97887..6e35464 100644 --- a/level_3/fss_write/c/embedded_list/print.h +++ b/level_3/fss_write/c/embedded_list/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/extended/fss_write.c b/level_3/fss_write/c/extended/fss_write.c index 652551d..356060c 100644 --- a/level_3/fss_write/c/extended/fss_write.c +++ b/level_3/fss_write/c/extended/fss_write.c @@ -28,7 +28,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -96,7 +96,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); diff --git a/level_3/fss_write/c/extended/fss_write.h b/level_3/fss_write/c/extended/fss_write.h index cc9e01c..56e175f 100644 --- a/level_3/fss_write/c/extended/fss_write.h +++ b/level_3/fss_write/c/extended/fss_write.h @@ -90,7 +90,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_extended_process_help_ diff --git a/level_3/fss_write/c/extended/print.c b/level_3/fss_write/c/extended/print.c index e161833..4e148f4 100644 --- a/level_3/fss_write/c/extended/print.c +++ b/level_3/fss_write/c/extended/print.c @@ -32,7 +32,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_extended_print_help_ diff --git a/level_3/fss_write/c/extended/print.h b/level_3/fss_write/c/extended/print.h index 640f8f4..44b764f 100644 --- a/level_3/fss_write/c/extended/print.h +++ b/level_3/fss_write/c/extended/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/extended_list/fss_write.c b/level_3/fss_write/c/extended_list/fss_write.c index c83eab3..3a25a63 100644 --- a/level_3/fss_write/c/extended_list/fss_write.c +++ b/level_3/fss_write/c/extended_list/fss_write.c @@ -27,7 +27,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -89,7 +89,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); diff --git a/level_3/fss_write/c/extended_list/fss_write.h b/level_3/fss_write/c/extended_list/fss_write.h index c91afc8..beda6d9 100644 --- a/level_3/fss_write/c/extended_list/fss_write.h +++ b/level_3/fss_write/c/extended_list/fss_write.h @@ -90,7 +90,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_extended_list_process_help_ diff --git a/level_3/fss_write/c/extended_list/print.c b/level_3/fss_write/c/extended_list/print.c index a3c7426..e734feb 100644 --- a/level_3/fss_write/c/extended_list/print.c +++ b/level_3/fss_write/c/extended_list/print.c @@ -35,7 +35,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_extended_list_print_help_ diff --git a/level_3/fss_write/c/extended_list/print.h b/level_3/fss_write/c/extended_list/print.h index 989b300..786c14f 100644 --- a/level_3/fss_write/c/extended_list/print.h +++ b/level_3/fss_write/c/extended_list/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/main/common.c b/level_3/fss_write/c/main/common.c index a2bf89e..2add847 100644 --- a/level_3/fss_write/c/main/common.c +++ b/level_3/fss_write/c/main/common.c @@ -92,7 +92,7 @@ extern "C" { if (F_status_is_error(main->setting.state.status)) return; if (main->setting.state.status == F_done) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } diff --git a/level_3/fss_write/c/main/common.h b/level_3/fss_write/c/main/common.h index 3ea8b01..cc4c3d0 100644 --- a/level_3/fss_write/c/main/common.h +++ b/level_3/fss_write/c/main/common.h @@ -31,7 +31,7 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * * F_parameter (with error bit) on parameter error. @@ -43,7 +43,7 @@ extern "C" { * Errors (with error bit) from: fll_program_parameter_process_verbosity_standard(). * @param callback * (optional) Designate a function to call after performing the initial processing, but before printing help. - * If the function returns F_done, then this function immediately returns, resetting status to F_none. + * If the function returns F_done, then this function immediately returns, resetting status to F_okay. * Set to NULL to disable. * * @see f_console_parameter_process() diff --git a/level_3/fss_write/c/main/common/type.c b/level_3/fss_write/c/main/common/type.c index a929e12..a788a01 100644 --- a/level_3/fss_write/c/main/common/type.c +++ b/level_3/fss_write/c/main/common/type.c @@ -27,7 +27,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->objects); f_string_dynamicss_resize(0, &setting->contentss); - return F_none; + return F_okay; } #endif // _di_fss_write_setting_delete_ diff --git a/level_3/fss_write/c/main/common/type.h b/level_3/fss_write/c/main/common/type.h index e2142a9..da614cd 100644 --- a/level_3/fss_write/c/main/common/type.h +++ b/level_3/fss_write/c/main/common/type.h @@ -107,8 +107,8 @@ extern "C" { #define fss_write_setting_t_initialize \ { \ fss_write_main_flag_none_e, \ - F_none, \ - macro_f_state_t_initialize_1(fss_write_allocation_large_d, fss_write_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ + F_okay, \ + macro_f_state_t_initialize_1(fss_write_allocation_large_d, fss_write_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ f_string_range_t_initialize, \ f_string_static_t_initialize, \ f_string_static_t_initialize, \ @@ -168,7 +168,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/fss_write/c/main/fss_write.c b/level_3/fss_write/c/main/fss_write.c index 33e38a4..fd6e648 100644 --- a/level_3/fss_write/c/main/fss_write.c +++ b/level_3/fss_write/c/main/fss_write.c @@ -23,7 +23,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (fss_write_main_flag_help_e | fss_write_main_flag_version_e | fss_write_main_flag_copyright_e)) { if (main->setting.flag & fss_write_main_flag_help_e) { @@ -198,7 +198,7 @@ extern "C" { return; } - f_status_t status_pipe = F_none; + f_status_t status_pipe = F_okay; f_file_t input = f_file_t_initialize; input.id = F_type_descriptor_input_d; @@ -228,7 +228,7 @@ extern "C" { } if (range.start > range.stop) { - if (status_pipe == F_none_eof) break; + if (status_pipe == F_okay_eof) break; main->setting.block.used = 0; @@ -430,7 +430,7 @@ extern "C" { } // for // If the pipe ended before finishing, then attempt to wrap up. - if (F_status_is_error_not(main->setting.state.status) && status_pipe == F_none_eof && state) { + if (F_status_is_error_not(main->setting.state.status) && status_pipe == F_okay_eof && state) { main->callback.process_set(void_main); flag |= 0x1; @@ -446,7 +446,7 @@ extern "C" { main->setting.contentss.used = used_contentss; if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = (flag & 0x1) ? F_none : F_data_not; + main->setting.state.status = (flag & 0x1) ? F_okay : F_data_not; } } #endif // _di_fss_write_process_pipe_ diff --git a/level_3/fss_write/c/main/fss_write.h b/level_3/fss_write/c/main/fss_write.h index 3fe7bb9..4bb96d3 100644 --- a/level_3/fss_write/c/main/fss_write.h +++ b/level_3/fss_write/c/main/fss_write.h @@ -80,7 +80,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.custom.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * F_interrupt on (exit) signal received. @@ -121,7 +121,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.custom.setting.state.status: - * F_none on success. + * F_okay on success. * F_interrupt on (exit) signal received. * * F_parameter (with error bit) if main is NULL or setting is NULL. @@ -140,7 +140,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but pipe contained no relevant data. * F_basic on success and the basic has been printed. * F_interrupt on (exit) signal received. @@ -161,7 +161,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_interrupt on (exit) signal received. * * F_parameter (with error bit) if main is NULL or setting is NULL. diff --git a/level_3/fss_write/c/main/main.h b/level_3/fss_write/c/main/main.h index dae60f0..89391dc 100644 --- a/level_3/fss_write/c/main/main.h +++ b/level_3/fss_write/c/main/main.h @@ -43,7 +43,7 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_main_process_help_ @@ -65,13 +65,13 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); * This alters main.setting.process_help, main.setting.process_normal, and main.setting.process_pipe. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_interrupt on (exit) signal received. * * F_parameter (with error bit) if main is NULL or setting is NULL. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * * Errors (with error bit) from: f_console_parameter_process(). diff --git a/level_3/fss_write/c/main/main/print.c b/level_3/fss_write/c/main/main/print.c index dfc3afc..917a76a 100644 --- a/level_3/fss_write/c/main/main/print.c +++ b/level_3/fss_write/c/main/main/print.c @@ -27,7 +27,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_main_print_error_format_unknown_ @@ -103,7 +103,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_main_main_print_help_ diff --git a/level_3/fss_write/c/main/main/print.h b/level_3/fss_write/c/main/main/print.h index 8a6ec40..d894023 100644 --- a/level_3/fss_write/c/main/main/print.h +++ b/level_3/fss_write/c/main/main/print.h @@ -25,7 +25,7 @@ extern "C" { * A string representing the value that is of an unknown format. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -45,7 +45,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/main/print/error.c b/level_3/fss_write/c/main/print/error.c index eb4ea34..9e1d148 100644 --- a/level_3/fss_write/c/main/print/error.c +++ b/level_3/fss_write/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((fss_write_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_fss_write_print_error_ @@ -24,7 +24,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(((fss_write_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_fss_write_print_error_file_ @@ -46,7 +46,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_print_error_parameter_same_times_at_least_ @@ -64,7 +64,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_print_error_one_content_only_ @@ -82,7 +82,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _fss_write_print_error_prepend_only_whitespace_ @@ -104,7 +104,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_print_error_unsupported_eol_ diff --git a/level_3/fss_write/c/main/print/error.h b/level_3/fss_write/c/main/print/error.h index 88f84e3..9ec1405 100644 --- a/level_3/fss_write/c/main/print/error.h +++ b/level_3/fss_write/c/main/print/error.h @@ -27,7 +27,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -56,7 +56,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -78,7 +78,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -100,7 +100,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -120,7 +120,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -140,7 +140,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/fss_write/c/main/signal.c b/level_3/fss_write/c/main/signal.c index 6e17e58..4b71733 100644 --- a/level_3/fss_write/c/main/signal.c +++ b/level_3/fss_write/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/fss_write/c/payload/fss_write.c b/level_3/fss_write/c/payload/fss_write.c index db76431..3e4e009 100644 --- a/level_3/fss_write/c/payload/fss_write.c +++ b/level_3/fss_write/c/payload/fss_write.c @@ -21,7 +21,7 @@ extern "C" { fss_write_main_t * const main = (fss_write_main_t *) void_main; - f_status_t status_pipe = F_none; + f_status_t status_pipe = F_okay; f_file_t input = f_file_t_initialize; input.id = F_type_descriptor_input_d; input.size_read = fss_write_allocation_large_d; @@ -99,7 +99,7 @@ extern "C" { } if (range.start > range.stop) { - if (status_pipe == F_none_eof) break; + if (status_pipe == F_okay_eof) break; main->setting.block.used = 0; @@ -117,7 +117,7 @@ extern "C" { range.start = 0; range.stop = main->setting.block.used - 1; - status_pipe = F_none; + status_pipe = F_okay; } // Start Object. @@ -342,7 +342,7 @@ extern "C" { } // for // If the pipe ended before finishing, then attempt to wrap up. - if (F_status_is_error_not(main->setting.state.status) && status_pipe == F_none_eof && state) { + if (F_status_is_error_not(main->setting.state.status) && status_pipe == F_okay_eof && state) { fss_write_payload_process_set(void_main); flag |= 0x1; @@ -363,7 +363,7 @@ extern "C" { main->setting.state.status = F_payload; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { @@ -407,7 +407,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -446,7 +446,7 @@ extern "C" { &main->setting.state ); - if (F_status_set_fine(main->setting.state.status) == F_none_eol) { + if (F_status_set_fine(main->setting.state.status) == F_okay_eol) { main->setting.state.status = F_status_set_error(F_support_not); fss_write_print_error_unsupported_eol(&main->program.error); @@ -535,7 +535,7 @@ extern "C" { fll_print_dynamic(main->setting.buffer, main->program.output.to); main->setting.buffer.used = 0; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_fss_write_payload_process_set_ diff --git a/level_3/fss_write/c/payload/fss_write.h b/level_3/fss_write/c/payload/fss_write.h index 8aa5dc5..80d5bc4 100644 --- a/level_3/fss_write/c/payload/fss_write.h +++ b/level_3/fss_write/c/payload/fss_write.h @@ -72,7 +72,7 @@ extern "C" { * This does not alter main.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. */ #ifndef _di_fss_write_payload_process_help_ @@ -89,7 +89,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but pipe contained no relevant data. * F_payload on success and the payload has been printed. * F_interrupt on (exit) signal received. @@ -110,7 +110,7 @@ extern "C" { * Must be of type fss_write_main_t. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_interrupt on (exit) signal received. * * F_parameter (with error bit) if main is NULL or setting is NULL. @@ -136,14 +136,14 @@ extern "C" { * This alters setting.process_help, setting.process_normal, and setting.process_pipe. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_interrupt on (exit) signal received. * * F_parameter (with error bit) if main is NULL or setting is NULL. * F_parameter (with error bit) on parameter error. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success but nothing was provided to operate with. * * @see fss_write_setting_load() diff --git a/level_3/fss_write/c/payload/print.c b/level_3/fss_write/c/payload/print.c index a8312c7..9608aa8 100644 --- a/level_3/fss_write/c/payload/print.c +++ b/level_3/fss_write/c/payload/print.c @@ -16,7 +16,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_payload_print_error_payload_not_last_ @@ -48,7 +48,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_fss_write_payload_print_help_ diff --git a/level_3/fss_write/c/payload/print.h b/level_3/fss_write/c/payload/print.h index 32a179b..64f071e 100644 --- a/level_3/fss_write/c/payload/print.h +++ b/level_3/fss_write/c/payload/print.h @@ -23,7 +23,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. @@ -45,7 +45,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if a parameter is NULL. diff --git a/level_3/iki_read/c/main/common.h b/level_3/iki_read/c/main/common.h index c9651fd..1e2b8a8 100644 --- a/level_3/iki_read/c/main/common.h +++ b/level_3/iki_read/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: f_file_exists(). @@ -62,7 +62,7 @@ extern "C" { * The program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_string_dynamic_resize(). * Errors (with error bit) from: f_string_triples_resize(). diff --git a/level_3/iki_read/c/main/common/type.c b/level_3/iki_read/c/main/common/type.c index bbc7a22..931de23 100644 --- a/level_3/iki_read/c/main/common/type.c +++ b/level_3/iki_read/c/main/common/type.c @@ -30,7 +30,7 @@ extern "C" { f_iki_data_delete(&setting->data); - return F_none; + return F_okay; } #endif // _di_iki_read_setting_delete_ diff --git a/level_3/iki_read/c/main/common/type.h b/level_3/iki_read/c/main/common/type.h index f5855cf..3dd04d3 100644 --- a/level_3/iki_read/c/main/common/type.h +++ b/level_3/iki_read/c/main/common/type.h @@ -73,8 +73,8 @@ extern "C" { #define iki_read_setting_t_initialize \ { \ iki_read_main_flag_none_e, \ - F_none, \ - macro_f_state_t_initialize_1(iki_read_allocation_large_d, iki_read_allocation_small_d, F_none, 0, 0, 0, 0, 0, 0, 0), \ + F_okay, \ + macro_f_state_t_initialize_1(iki_read_allocation_large_d, iki_read_allocation_small_d, F_okay, 0, 0, 0, 0, 0, 0, 0), \ 0, \ 0, \ f_string_dynamic_t_initialize, \ @@ -131,7 +131,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/iki_read/c/main/iki_read.c b/level_3/iki_read/c/main/iki_read.c index 7b34d01..69e964f 100644 --- a/level_3/iki_read/c/main/iki_read.c +++ b/level_3/iki_read/c/main/iki_read.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (iki_read_main_flag_help_e | iki_read_main_flag_version_e | iki_read_main_flag_copyright_e)) { if (main->setting.flag & iki_read_main_flag_help_e) { diff --git a/level_3/iki_read/c/main/iki_read.h b/level_3/iki_read/c/main/iki_read.h index d8385d2..969be58 100644 --- a/level_3/iki_read/c/main/iki_read.h +++ b/level_3/iki_read/c/main/iki_read.h @@ -90,7 +90,7 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * F_interrupt on (exit) signal received. diff --git a/level_3/iki_read/c/main/print/error.c b/level_3/iki_read/c/main/print/error.c index d0d3b8c..c18788d 100644 --- a/level_3/iki_read/c/main/print/error.c +++ b/level_3/iki_read/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((iki_read_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_iki_read_print_error_ @@ -26,7 +26,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_iki_read_print_error_file_ diff --git a/level_3/iki_read/c/main/print/error.h b/level_3/iki_read/c/main/print/error.h index f23bc39..b9fdac7 100644 --- a/level_3/iki_read/c/main/print/error.h +++ b/level_3/iki_read/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/iki_read/c/main/print/message.c b/level_3/iki_read/c/main/print/message.c index bddb30c..9fcbc5d 100644 --- a/level_3/iki_read/c/main/print/message.c +++ b/level_3/iki_read/c/main/print/message.c @@ -92,7 +92,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_iki_read_print_message_help_ diff --git a/level_3/iki_read/c/main/print/message.h b/level_3/iki_read/c/main/print/message.h index 2bdbf62..5739a9d 100644 --- a/level_3/iki_read/c/main/print/message.h +++ b/level_3/iki_read/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/iki_read/c/main/process.c b/level_3/iki_read/c/main/process.c index c54cb8f..5f29b01 100644 --- a/level_3/iki_read/c/main/process.c +++ b/level_3/iki_read/c/main/process.c @@ -44,7 +44,7 @@ extern "C" { iki_read_process_buffer_total(main); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } return; @@ -75,7 +75,7 @@ extern "C" { } if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_iki_read_process_buffer_ @@ -144,7 +144,7 @@ extern "C" { main->setting.state.status = F_data_not; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { @@ -159,7 +159,7 @@ extern "C" { f_file_stream_unlock(main->program.output.to); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } else { main->setting.state.status = F_data_not; @@ -177,7 +177,7 @@ extern "C" { f_file_stream_unlock(main->program.output.to); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } else { @@ -209,7 +209,7 @@ extern "C" { if (!main->setting.data.variable.used) { fll_print_dynamic_partial(main->setting.buffer, buffer_range, main->program.output.to); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -274,7 +274,7 @@ extern "C" { f_file_stream_unlock(main->program.output.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_iki_read_process_buffer_ranges_whole_ @@ -289,7 +289,7 @@ extern "C" { if (range.start > main->setting.buffer.used) { fll_print_format("%r%r", main->program.output.to, f_string_ascii_0_s, f_string_eol_s); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -297,7 +297,7 @@ extern "C" { else if (main->setting.state.status == F_data_not) { fll_print_format("%r%r", main->program.output.to, f_string_ascii_0_s, f_string_eol_s); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -370,7 +370,7 @@ extern "C" { fll_print_format("%ul%r", main->program.output.to, total, f_string_eol_s); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_iki_read_process_buffer_total_ diff --git a/level_3/iki_read/c/main/process.h b/level_3/iki_read/c/main/process.h index 5e9fda4..d6ba0a7 100644 --- a/level_3/iki_read/c/main/process.h +++ b/level_3/iki_read/c/main/process.h @@ -49,7 +49,7 @@ extern "C" { * The main program settings. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not on success, but nothing done. * * F_interrupt (with error bit) on (exit) signal received. @@ -77,7 +77,7 @@ extern "C" { * The range within the buffer to process. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but nothing to print. * * Status codes (with error bit) are returned on any problem. @@ -99,7 +99,7 @@ extern "C" { * The range within the buffer to process. * * @return - * F_none on success. + * F_okay on success. * F_data_not on success, but nothing to print. * * Status codes (with error bit) are returned on any problem. @@ -117,7 +117,7 @@ extern "C" { * The main program settings. * * @return - * F_none on success. + * F_okay on success. * * Status codes (with error bit) are returned on any problem. */ diff --git a/level_3/iki_read/c/main/signal.c b/level_3/iki_read/c/main/signal.c index 4fe029a..6ac504b 100644 --- a/level_3/iki_read/c/main/signal.c +++ b/level_3/iki_read/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/iki_write/c/main/common.h b/level_3/iki_write/c/main/common.h index 0a5d9b7..9da17f8 100644 --- a/level_3/iki_write/c/main/common.h +++ b/level_3/iki_write/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: f_file_stream_open(). diff --git a/level_3/iki_write/c/main/common/type.c b/level_3/iki_write/c/main/common/type.c index e2e099f..dad4be0 100644 --- a/level_3/iki_write/c/main/common/type.c +++ b/level_3/iki_write/c/main/common/type.c @@ -27,7 +27,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->objects); f_string_dynamics_resize(0, &setting->contents); - return F_none; + return F_okay; } #endif // _di_iki_write_setting_delete_ diff --git a/level_3/iki_write/c/main/common/type.h b/level_3/iki_write/c/main/common/type.h index 45c12b8..1aba01e 100644 --- a/level_3/iki_write/c/main/common/type.h +++ b/level_3/iki_write/c/main/common/type.h @@ -58,7 +58,7 @@ extern "C" { #define iki_write_setting_t_initialize \ { \ iki_write_main_flag_none_e, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ f_string_static_t_initialize, \ f_string_dynamic_t_initialize, \ @@ -110,7 +110,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/iki_write/c/main/iki_write.c b/level_3/iki_write/c/main/iki_write.c index 15a082b..8ef0ce1 100644 --- a/level_3/iki_write/c/main/iki_write.c +++ b/level_3/iki_write/c/main/iki_write.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (iki_write_main_flag_help_e | iki_write_main_flag_version_e | iki_write_main_flag_copyright_e)) { if (main->setting.flag & iki_write_main_flag_help_e) { @@ -48,7 +48,7 @@ extern "C" { f_number_unsigned_t previous = 0; f_string_range_t range = f_string_range_t_initialize; - f_status_t status = F_none; + f_status_t status = F_okay; f_file_t pipe = f_file_t_initialize; pipe.id = F_type_descriptor_input_d; @@ -73,7 +73,7 @@ extern "C" { main->program.signal_check = 0; } - if (status != F_none_eof) { + if (status != F_okay_eof) { status = f_file_read(pipe, &main->setting.buffer); if (F_status_is_error(status)) { @@ -180,7 +180,7 @@ extern "C" { main->setting.buffer.used = 0; } - } while (status != F_none_eof || main->setting.buffer.used || object_ended); + } while (status != F_okay_eof || main->setting.buffer.used || object_ended); if (object_ended) { main->setting.state.status = F_status_set_error(F_parameter); diff --git a/level_3/iki_write/c/main/iki_write.h b/level_3/iki_write/c/main/iki_write.h index 433ff74..006a668 100644 --- a/level_3/iki_write/c/main/iki_write.h +++ b/level_3/iki_write/c/main/iki_write.h @@ -87,7 +87,7 @@ extern "C" { * The program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * F_interrupt on (exit) signal received. diff --git a/level_3/iki_write/c/main/print/error.c b/level_3/iki_write/c/main/print/error.c index 2287577..f1d07ce 100644 --- a/level_3/iki_write/c/main/print/error.c +++ b/level_3/iki_write/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((iki_write_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_iki_write_print_error_ @@ -26,7 +26,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_iki_write_print_error_file_ @@ -46,7 +46,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_iki_write_print_error_main_missing_ @@ -64,7 +64,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_iki_write_print_error_object_not_valid_ diff --git a/level_3/iki_write/c/main/print/error.h b/level_3/iki_write/c/main/print/error.h index 62f76d2..7727063 100644 --- a/level_3/iki_write/c/main/print/error.h +++ b/level_3/iki_write/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -54,7 +54,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -74,7 +74,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -94,7 +94,7 @@ extern "C" { * The a string representing the object that is missing. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/iki_write/c/main/print/message.c b/level_3/iki_write/c/main/print/message.c index 5d480d8..63f66f6 100644 --- a/level_3/iki_write/c/main/print/message.c +++ b/level_3/iki_write/c/main/print/message.c @@ -51,7 +51,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_iki_write_print_message_help_ diff --git a/level_3/iki_write/c/main/print/message.h b/level_3/iki_write/c/main/print/message.h index ccccd94..277f96e 100644 --- a/level_3/iki_write/c/main/print/message.h +++ b/level_3/iki_write/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/iki_write/c/main/process.h b/level_3/iki_write/c/main/process.h index 26888d7..485e877 100644 --- a/level_3/iki_write/c/main/process.h +++ b/level_3/iki_write/c/main/process.h @@ -23,7 +23,7 @@ extern "C" { * The program and settings data. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_iki_object_is(). * Errors (with error bit) from: fll_iki_content_escape(). diff --git a/level_3/iki_write/c/main/signal.c b/level_3/iki_write/c/main/signal.c index 39cb1ee..d458450 100644 --- a/level_3/iki_write/c/main/signal.c +++ b/level_3/iki_write/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/status_code/c/fss/print.c b/level_3/status_code/c/fss/print.c index de75d8b..7c9b6b4 100644 --- a/level_3/status_code/c/fss/print.c +++ b/level_3/status_code/c/fss/print.c @@ -27,7 +27,7 @@ extern "C" { fl_print_format(" Each code will be printed on its own line.%r", print->to, f_string_eol_s); fl_print_format(" Errors regarding each code may be printed on its own line.%r", print->to, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_status_code_fss_print_help_detail_ diff --git a/level_3/status_code/c/fss/print.h b/level_3/status_code/c/fss/print.h index 515391d..1ebe413 100644 --- a/level_3/status_code/c/fss/print.h +++ b/level_3/status_code/c/fss/print.h @@ -28,7 +28,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/status_code/c/main/common.h b/level_3/status_code/c/main/common.h index 62d974a..7238b27 100644 --- a/level_3/status_code/c/main/common.h +++ b/level_3/status_code/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The program and settings data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). diff --git a/level_3/status_code/c/main/common/type.c b/level_3/status_code/c/main/common/type.c index cfae7e3..f5129bb 100644 --- a/level_3/status_code/c/main/common/type.c +++ b/level_3/status_code/c/main/common/type.c @@ -19,7 +19,7 @@ extern "C" { if (!setting) return F_status_set_error(F_parameter); - return F_none; + return F_okay; } #endif // _di_status_code_setting_delete_ diff --git a/level_3/status_code/c/main/common/type.h b/level_3/status_code/c/main/common/type.h index 93be680..26859f3 100644 --- a/level_3/status_code/c/main/common/type.h +++ b/level_3/status_code/c/main/common/type.h @@ -49,7 +49,7 @@ extern "C" { #define status_code_setting_t_initialize \ { \ status_code_main_flag_none_e, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ 0, \ 0, \ @@ -99,7 +99,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/status_code/c/main/convert.c b/level_3/status_code/c/main/convert.c index 671cda3..ac5920e 100644 --- a/level_3/status_code/c/main/convert.c +++ b/level_3/status_code/c/main/convert.c @@ -28,7 +28,7 @@ extern "C" { } } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_status_code_convert_number_ diff --git a/level_3/status_code/c/main/convert.h b/level_3/status_code/c/main/convert.h index 5467626..85fcba7 100644 --- a/level_3/status_code/c/main/convert.h +++ b/level_3/status_code/c/main/convert.h @@ -28,7 +28,7 @@ extern "C" { * Will not be updated on error. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if string starts wth a null (length is 0). * F_complete_not_utf (with error bit) if an incomplete UTF-8 fragment is found. * F_number (with error bit) if parameter is not a number. diff --git a/level_3/status_code/c/main/print/data.c b/level_3/status_code/c/main/print/data.c index a89da43..b918177 100644 --- a/level_3/status_code/c/main/print/data.c +++ b/level_3/status_code/c/main/print/data.c @@ -12,7 +12,7 @@ extern "C" { fll_print_format("%ui%r", print->to, code, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_status_code_print_data_code_ @@ -24,7 +24,7 @@ extern "C" { fll_print_format("%[%Q%]%r", print->to, context, value, context, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_status_code_print_data_context_value_ diff --git a/level_3/status_code/c/main/print/data.h b/level_3/status_code/c/main/print/data.h index aabd9a9..5c87ff6 100644 --- a/level_3/status_code/c/main/print/data.h +++ b/level_3/status_code/c/main/print/data.h @@ -27,7 +27,7 @@ extern "C" { * The code to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -51,7 +51,7 @@ extern "C" { * The value string. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/status_code/c/main/print/error.c b/level_3/status_code/c/main/print/error.c index e45ca9d..d4df9c4 100644 --- a/level_3/status_code/c/main/print/error.c +++ b/level_3/status_code/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((status_code_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_status_code_print_error_ @@ -34,7 +34,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_status_code_print_error_cannot_error_warning_number_ @@ -46,7 +46,7 @@ extern "C" { fll_print_format("%[No status code is specified.%]%r", print->to, print->context, print->context, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_status_code_print_error_no_status_codes_ @@ -64,7 +64,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_status_code_print_error_invalid_callback_ diff --git a/level_3/status_code/c/main/print/error.h b/level_3/status_code/c/main/print/error.h index c94298b..b57b4d0 100644 --- a/level_3/status_code/c/main/print/error.h +++ b/level_3/status_code/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -45,7 +45,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -67,7 +67,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -90,7 +90,7 @@ extern "C" { * This should either be 'status_string_from' or 'status_string_to'. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/status_code/c/main/print/message.c b/level_3/status_code/c/main/print/message.c index 34412a4..65cb897 100644 --- a/level_3/status_code/c/main/print/message.c +++ b/level_3/status_code/c/main/print/message.c @@ -47,7 +47,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_status_code_print_message_help_ @@ -70,7 +70,7 @@ extern "C" { fl_print_format(" Each code will be printed on its own line.%r", print->to, print->set->notable, print->set->notable, f_string_eol_s); fl_print_format(" Errors regarding each code may be printed on its own line.%r", print->to, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_status_code_print_message_help_detail_ diff --git a/level_3/status_code/c/main/print/message.h b/level_3/status_code/c/main/print/message.h index 100e3b7..2eee559 100644 --- a/level_3/status_code/c/main/print/message.h +++ b/level_3/status_code/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -57,7 +57,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/status_code/c/main/process.c b/level_3/status_code/c/main/process.c index 6fdc268..1cb63d2 100644 --- a/level_3/status_code/c/main/process.c +++ b/level_3/status_code/c/main/process.c @@ -29,7 +29,7 @@ extern "C" { f_file_stream_unlock(main->program.output.to); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_status_code_process_check_ @@ -43,7 +43,7 @@ extern "C" { main->setting.state.status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, value, &number); - if (main->setting.state.status == F_none) { + if (main->setting.state.status == F_okay) { status_code_print_data_context_value(&main->program.output, main->program.context.set.error, status_code_invalid_name_s); main->setting.state.status = F_status_set_error(F_parameter); @@ -58,7 +58,7 @@ extern "C" { } } - f_status_t code = F_none; + f_status_t code = F_okay; main->setting.state.status = main->setting.status_string_from(value, &code); @@ -76,7 +76,7 @@ extern "C" { if (main->setting.state.status == F_data) { status_code_print_data_context_value(&main->program.output, main->program.context.set.error, status_code_unknown_code_s); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -91,7 +91,7 @@ extern "C" { status_code_print_data_code(&main->program.output, code); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_status_code_process_number_ @@ -124,7 +124,7 @@ extern "C" { status_code_print_data_context_value(&main->program.output, f_color_set_empty_s, name); - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } #endif // _di_status_code_process_normal_ diff --git a/level_3/status_code/c/main/process.h b/level_3/status_code/c/main/process.h index c441bcb..3788a07 100644 --- a/level_3/status_code/c/main/process.h +++ b/level_3/status_code/c/main/process.h @@ -25,7 +25,7 @@ extern "C" { * The parameter value to process. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if string starts wth a null (length is 0). * F_parameter (with error bit) if a parameter is invalid. * F_number (with error bit) if parameter is not a number. @@ -50,7 +50,7 @@ extern "C" { * The parameter value to process. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if string is empty. * * Errors (with error bit) from: fl_console_parameter_to_number_unsigned(). @@ -74,7 +74,7 @@ extern "C" { * The parameter value to process. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_data_not if string starts wth a null (length is 0). * F_complete_not_utf (with error bit) if an incomplete UTF-8 fragment is found. * F_number (with error bit) if parameter is not a number. diff --git a/level_3/status_code/c/main/signal.c b/level_3/status_code/c/main/signal.c index 63d5e66..e82931e 100644 --- a/level_3/status_code/c/main/signal.c +++ b/level_3/status_code/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/status_code/c/main/status_code.c b/level_3/status_code/c/main/status_code.c index 4f4aa23..e3f5e6b 100644 --- a/level_3/status_code/c/main/status_code.c +++ b/level_3/status_code/c/main/status_code.c @@ -39,7 +39,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (status_code_main_flag_help_e | status_code_main_flag_version_e | status_code_main_flag_copyright_e)) { if (main->setting.flag & status_code_main_flag_help_e) { @@ -59,7 +59,7 @@ extern "C" { return; } - f_status_t status = F_none; + f_status_t status = F_okay; if (main->setting.flag & status_code_main_flag_number_e) { if (main->setting.flag & status_code_main_flag_pipe_e) { diff --git a/level_3/status_code/c/main/status_code.h b/level_3/status_code/c/main/status_code.h index df45ad6..ca41e23 100644 --- a/level_3/status_code/c/main/status_code.h +++ b/level_3/status_code/c/main/status_code.h @@ -80,7 +80,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * F_interrupt on (exit) signal received. diff --git a/level_3/status_code/data/documentation/man/man1/fss_status_code.1 b/level_3/status_code/data/documentation/man/man1/fss_status_code.1 index 51c5609..6c29ab9 100644 --- a/level_3/status_code/data/documentation/man/man1/fss_status_code.1 +++ b/level_3/status_code/data/documentation/man/man1/fss_status_code.1 @@ -74,7 +74,7 @@ Print F_true or F_false if status code is an error or print number with error co Convert status code name to number. .SH STATUS CODES .TP -Either code strings, such as \fBF_none\fR, or digits, such as \fB197\fR. +Either code strings, such as \fBF_okay\fR, or digits, such as \fB197\fR. .SH AUTHOR Written by Kevin Day. .SH STATUS CODES diff --git a/level_3/status_code/data/documentation/man/man1/status_code.1 b/level_3/status_code/data/documentation/man/man1/status_code.1 index 43c7d18..a3271d8 100644 --- a/level_3/status_code/data/documentation/man/man1/status_code.1 +++ b/level_3/status_code/data/documentation/man/man1/status_code.1 @@ -72,7 +72,7 @@ Print F_true or F_false if status code is an error or print number with error co Convert status code name to number. .SH STATUS CODES .TP -Either code strings, such as \fBF_none\fR, or digits, such as \fB197\fR. +Either code strings, such as \fBF_okay\fR, or digits, such as \fB197\fR. .SH AUTHOR Written by Kevin Day. .SH COPYRIGHT diff --git a/level_3/utf8/c/main/bytesequence.c b/level_3/utf8/c/main/bytesequence.c index f3e802d..9ce0396 100644 --- a/level_3/utf8/c/main/bytesequence.c +++ b/level_3/utf8/c/main/bytesequence.c @@ -52,7 +52,7 @@ extern "C" { main->setting.state.status = F_utf_not; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_utf8_convert_bytesequence_ @@ -75,13 +75,13 @@ extern "C" { do { main->setting.state.status = f_file_stream_read_block(file, &main->setting.buffer); - if (main->setting.state.status == F_none_eof && !main->setting.buffer.used) break; + if (main->setting.state.status == F_okay_eof && !main->setting.buffer.used) break; for (i = 0; F_status_is_error_not(main->setting.state.status) && i < main->setting.buffer.used; ) { if (utf8_signal_check(main)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; // Get the current width only when processing a new block. if (next) { diff --git a/level_3/utf8/c/main/bytesequence.h b/level_3/utf8/c/main/bytesequence.h index 81bfb77..3e734f4 100644 --- a/level_3/utf8/c/main/bytesequence.h +++ b/level_3/utf8/c/main/bytesequence.h @@ -25,7 +25,7 @@ extern "C" { * The program and settings data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_utf_not on invalid UTF-8 (which is still "success" when verifying). * * F_utf_not (with error bit) if not verifying and diff --git a/level_3/utf8/c/main/codepoint.c b/level_3/utf8/c/main/codepoint.c index 9a0c3c0..43eda08 100644 --- a/level_3/utf8/c/main/codepoint.c +++ b/level_3/utf8/c/main/codepoint.c @@ -9,7 +9,7 @@ extern "C" { if (!main) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; bool valid_not = F_false; @@ -64,13 +64,13 @@ extern "C" { } } else if (main->setting.mode & utf8_mode_to_bytesequence_e) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; unicode.used = macro_f_utf_byte_width(unicode.string[0]); utf8_print_data_bytesequence(&main->program.output, unicode); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; utf8_print_data_combining_or_width(&main->program.output, unicode); } @@ -78,12 +78,12 @@ extern "C" { } } else if (*mode == utf8_codepoint_mode_bad_end_e) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; utf8_print_data_character_invalid(&main->program.output, unicode); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -102,7 +102,7 @@ extern "C" { if (!main) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; bool valid_not = F_false; @@ -170,12 +170,12 @@ extern "C" { } } else if (*mode == utf8_codepoint_mode_bad_end_e) { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; utf8_print_data_character_invalid(&main->program.output, hex); } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; return; } @@ -201,7 +201,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (unicode.string[0] == f_string_ascii_u_s.string[0] || unicode.string[0] == f_string_ascii_U_s.string[0] || unicode.string[0] == f_string_ascii_plus_s.string[0]) { // Do nothing. @@ -239,7 +239,7 @@ extern "C" { } } - main->setting.state.status = (main->setting.state.status == F_true) ? F_space : F_none; + main->setting.state.status = (main->setting.state.status == F_true) ? F_space : F_okay; } } @@ -310,7 +310,7 @@ extern "C" { if (!main) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; bool valid = F_true; bool next = F_true; @@ -325,7 +325,7 @@ extern "C" { do { main->setting.state.status = f_file_stream_read_block(file, &main->setting.buffer); - if (main->setting.state.status == F_none_eof && !main->setting.buffer.used) { + if (main->setting.state.status == F_okay_eof && !main->setting.buffer.used) { // Handle complete character, which must be explicitly set to end in this situation. if (mode_codepoint == utf8_codepoint_mode_number_e || mode_codepoint == utf8_codepoint_mode_raw_number_e) { @@ -345,7 +345,7 @@ extern "C" { j = 0; next = F_true; - main->setting.state.status = F_none_eof; + main->setting.state.status = F_okay_eof; mode_codepoint = utf8_codepoint_mode_ready_e; } @@ -356,7 +356,7 @@ extern "C" { if (utf8_signal_check(main)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; // Get the current width only when processing a new block. if (next) { diff --git a/level_3/utf8/c/main/codepoint.h b/level_3/utf8/c/main/codepoint.h index d27cb52..54d10a9 100644 --- a/level_3/utf8/c/main/codepoint.h +++ b/level_3/utf8/c/main/codepoint.h @@ -25,7 +25,7 @@ extern "C" { * The program and settings data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_utf_not on invalid UTF-8 (which is still "success" when verifying). * * F_utf_not (with error bit) if not verifying and the Unicode value is invalid. @@ -51,7 +51,7 @@ extern "C" { * The program and settings data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_valid_not on invalid raw (which is still "success" when verifying). * * F_valid_not (with error bit) if not verifying and the raw value is invalid. @@ -75,7 +75,7 @@ extern "C" { * The program and settings data. * * This alters setting.state.status: - * F_none on success. + * F_okay on success. * F_next on success, but should not be processed (it is white space or NULL). * F_space on success, but the character is whitespace. * diff --git a/level_3/utf8/c/main/common.h b/level_3/utf8/c/main/common.h index 669f2c0..b0b2bcf 100644 --- a/level_3/utf8/c/main/common.h +++ b/level_3/utf8/c/main/common.h @@ -29,7 +29,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * * Errors (with error bit) from: f_console_parameter_process(). * Errors (with error bit) from: fll_program_parameter_process_context(). diff --git a/level_3/utf8/c/main/common/type.c b/level_3/utf8/c/main/common/type.c index 26d7076..1bdbef0 100644 --- a/level_3/utf8/c/main/common/type.c +++ b/level_3/utf8/c/main/common/type.c @@ -26,7 +26,7 @@ extern "C" { f_string_dynamics_resize(0, &setting->path_files_to); f_string_dynamics_resize(0, &setting->remaining); - return F_none; + return F_okay; } #endif // _di_utf8_setting_delete_ diff --git a/level_3/utf8/c/main/common/type.h b/level_3/utf8/c/main/common/type.h index c553569..e87cc1f 100644 --- a/level_3/utf8/c/main/common/type.h +++ b/level_3/utf8/c/main/common/type.h @@ -68,7 +68,7 @@ extern "C" { { \ utf8_mode_from_bytesequence_e | utf8_mode_to_codepoint_e, \ utf8_main_flag_none_e, \ - F_none, \ + F_okay, \ f_state_t_initialize, \ f_color_set_t_initialize, \ f_color_set_t_initialize, \ @@ -123,7 +123,7 @@ extern "C" { * This does not alter setting.state.status. * * @return - * F_none on success. + * F_okay on success. * * F_parameter (with error bit) if a parameter is invalid. */ diff --git a/level_3/utf8/c/main/print/data.c b/level_3/utf8/c/main/print/data.c index 2bba316..acd41d4 100644 --- a/level_3/utf8/c/main/print/data.c +++ b/level_3/utf8/c/main/print/data.c @@ -13,7 +13,7 @@ extern "C" { fl_print_format("%r%r%r", print->to, main->setting.prepend, sequence, main->setting.append); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_bytesequence_ @@ -46,7 +46,7 @@ extern "C" { fl_print_format("%]%r", print->to, main->setting.valid_not, main->setting.append); } - return F_none; + return F_okay; } #endif // _di_utf8_print_data_character_invalid_ @@ -67,7 +67,7 @@ extern "C" { fl_print_format("%rU+%06_U%r", print->to, main->setting.prepend, codepoint, main->setting.append); } - return F_none; + return F_okay; } #endif // _di_utf8_print_data_codepoint_ @@ -105,7 +105,7 @@ extern "C" { utf8_print_data_width(print, sequence); } - return F_none; + return F_okay; } #endif // _di_utf8_print_data_combining_or_width_ @@ -120,7 +120,7 @@ extern "C" { fl_print_format("%r%[%r%]%r", print->to, main->setting.prepend, main->setting.valid_not, utf8_string_unknown_s, main->setting.valid_not, main->setting.append); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_combining_or_width_invalid_ @@ -165,7 +165,7 @@ extern "C" { fl_print_format("%r%[%r%]%r", print->to, main->setting.prepend, main->setting.valid_not, character, main->setting.valid_not, main->setting.append); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_raw_bytesequence_ @@ -180,7 +180,7 @@ extern "C" { fl_print_format("%r%[%r%]%r", print->to, main->setting.prepend, main->setting.valid_not, raw, main->setting.valid_not, main->setting.append); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_raw_codepoint_ @@ -223,7 +223,7 @@ extern "C" { fl_print_format("%r%[%r%]%r", print->to, main->setting.prepend, main->setting.valid_not, *character, main->setting.valid_not, main->setting.append); } - return F_none; + return F_okay; } #endif // _di_utf8_print_data_raw_combining_or_width_ @@ -256,7 +256,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_section_header_file_ @@ -288,7 +288,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_section_header_parameter_ @@ -306,7 +306,7 @@ extern "C" { fll_print_format("%[Pipe%]:%r", print->to, print->set->title, print->set->title, f_string_eol_s); } - return F_none; + return F_okay; } #endif // _di_utf8_print_data_section_header_pipe_ @@ -323,7 +323,7 @@ extern "C" { if (status == F_true) { fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_2_s, main->setting.append); - return F_none; + return F_okay; } if (status == F_false) { @@ -332,19 +332,19 @@ extern "C" { if (status == F_true) { fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_1_s, main->setting.append); - return F_none; + return F_okay; } if (status == F_false) { fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_0_s, main->setting.append); - return F_none; + return F_okay; } } utf8_print_data_combining_or_width_invalid(print); - return F_none; + return F_okay; } #endif // _di_utf8_print_data_width_ diff --git a/level_3/utf8/c/main/print/data.h b/level_3/utf8/c/main/print/data.h index bef76ee..09d3c42 100644 --- a/level_3/utf8/c/main/print/data.h +++ b/level_3/utf8/c/main/print/data.h @@ -27,7 +27,7 @@ extern "C" { * A byte sequences representing a single character to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -49,7 +49,7 @@ extern "C" { * The byte sequence string or unicode codepoint string representing a single character to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -72,7 +72,7 @@ extern "C" { * This is the code that represents a single character. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -94,7 +94,7 @@ extern "C" { * @see utf8_print_width() * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -112,7 +112,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -134,7 +134,7 @@ extern "C" { * The width the raw character represents (a value inclusively from 1 to 4). * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -154,7 +154,7 @@ extern "C" { * The raw string already in codepoint format. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -174,7 +174,7 @@ extern "C" { * The pre-calculated width. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -198,7 +198,7 @@ extern "C" { * The index position of the file. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -218,7 +218,7 @@ extern "C" { * The index position of the parameter. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -236,7 +236,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -256,7 +256,7 @@ extern "C" { * A byte sequences representing a single character whose width is to be printed. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/utf8/c/main/print/error.c b/level_3/utf8/c/main/print/error.c index 7907e5d..c3425b5 100644 --- a/level_3/utf8/c/main/print/error.c +++ b/level_3/utf8/c/main/print/error.c @@ -12,7 +12,7 @@ extern "C" { fll_error_print(print, F_status_set_fine(((utf8_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_ @@ -53,7 +53,7 @@ extern "C" { fl_print_format("%[.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s); } - return F_none; + return F_okay; } #endif // _di_utf8_print_error_decode_ @@ -79,7 +79,7 @@ extern "C" { fl_print_format("%[.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s); } - return F_none; + return F_okay; } #endif // _di_utf8_print_error_encode_ @@ -93,7 +93,7 @@ extern "C" { fll_error_file_print(print, F_status_set_fine(main->setting.state.status), function, fll_error_file_flag_fallback_e, name, operation, type); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_file_ @@ -105,7 +105,7 @@ extern "C" { fll_print_format("%[%QNo from sources are specified, please pipe data, designate a file, or add parameters.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_no_from_ @@ -123,7 +123,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_parameter_file_name_empty_ @@ -141,7 +141,7 @@ extern "C" { f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_parameter_file_not_found_ @@ -153,7 +153,7 @@ extern "C" { fll_print_format("%[%QToo many '%r' files specified, there may only be one '%r' file.%]%r", print->to, print->set->error, print->prefix, utf8_string_to_s, utf8_string_to_s, print->set->error, f_string_eol_s); - return F_none; + return F_okay; } #endif // _di_utf8_print_error_parameter_file_to_too_many_ diff --git a/level_3/utf8/c/main/print/error.h b/level_3/utf8/c/main/print/error.h index 5082487..b97319e 100644 --- a/level_3/utf8/c/main/print/error.h +++ b/level_3/utf8/c/main/print/error.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -47,7 +47,7 @@ extern "C" { * The byte sequence string or unicode codepoint string representing a single character to print. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -69,7 +69,7 @@ extern "C" { * The codepoint that is invalid. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -98,7 +98,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -118,7 +118,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -140,7 +140,7 @@ extern "C" { * The index within the argv[] array where the empty string is found. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -167,7 +167,7 @@ extern "C" { * The file path name. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. @@ -189,7 +189,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/utf8/c/main/print/message.c b/level_3/utf8/c/main/print/message.c index e3d95fe..a712013 100644 --- a/level_3/utf8/c/main/print/message.c +++ b/level_3/utf8/c/main/print/message.c @@ -56,7 +56,7 @@ extern "C" { f_file_stream_flush(print->to); f_file_stream_unlock(print->to); - return F_none; + return F_okay; } #endif // _di_utf8_print_message_help_ diff --git a/level_3/utf8/c/main/print/message.h b/level_3/utf8/c/main/print/message.h index b9ddc72..6952803 100644 --- a/level_3/utf8/c/main/print/message.h +++ b/level_3/utf8/c/main/print/message.h @@ -25,7 +25,7 @@ extern "C" { * This does not alter print.custom.setting.state.status. * * @return - * F_none on success. + * F_okay on success. * F_output_not on success, but no printing is performed. * * F_output_not (with error bit) if setting is NULL. diff --git a/level_3/utf8/c/main/process.c b/level_3/utf8/c/main/process.c index 8e940c6..0e565b4 100644 --- a/level_3/utf8/c/main/process.c +++ b/level_3/utf8/c/main/process.c @@ -15,7 +15,7 @@ extern "C" { return; } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; bool valid = F_true; uint8_t mode_codepoint = utf8_codepoint_mode_ready_e; @@ -28,7 +28,7 @@ extern "C" { if (utf8_signal_check(main)) return; - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.mode & utf8_mode_from_bytesequence_e) { utf8_convert_bytesequence(main, text); diff --git a/level_3/utf8/c/main/signal.c b/level_3/utf8/c/main/signal.c index 99b0cb3..35ea429 100644 --- a/level_3/utf8/c/main/signal.c +++ b/level_3/utf8/c/main/signal.c @@ -94,7 +94,7 @@ extern "C" { } failsafe = 0; - main->setting.status_signal = F_none; + main->setting.status_signal = F_okay; } while (!main->program.signal_received); diff --git a/level_3/utf8/c/main/utf8.c b/level_3/utf8/c/main/utf8.c index 4ef0b45..60d0b82 100644 --- a/level_3/utf8/c/main/utf8.c +++ b/level_3/utf8/c/main/utf8.c @@ -21,7 +21,7 @@ extern "C" { fll_print_dynamic_raw(f_string_eol_s, main->program.message.to); } - main->setting.state.status = F_none; + main->setting.state.status = F_okay; if (main->setting.flag & (utf8_main_flag_help_e | utf8_main_flag_version_e | utf8_main_flag_copyright_e)) { if (main->setting.flag & utf8_main_flag_help_e) { @@ -173,7 +173,7 @@ extern "C" { main->setting.state.status = valid; } else { - main->setting.state.status = F_none; + main->setting.state.status = F_okay; } } #endif // _di_utf8_main_ diff --git a/level_3/utf8/c/main/utf8.h b/level_3/utf8/c/main/utf8.h index e27508e..c652f1d 100644 --- a/level_3/utf8/c/main/utf8.h +++ b/level_3/utf8/c/main/utf8.h @@ -93,7 +93,7 @@ extern "C" { * The main program data and settings. * * This alters main.setting.state.status: - * F_none on success. + * F_okay on success. * F_true on success when performing verification and verify passed. * F_false on success when performing verification and verify failed. * diff --git a/specifications/fss-000e.txt b/specifications/fss-000e.txt index f2734d0..7e306bc 100644 --- a/specifications/fss-000e.txt +++ b/specifications/fss-000e.txt @@ -37,7 +37,7 @@ Featureless Settings Specification: 000e - Payload: The recommended italic:"length" italic:"header" Object used to designate the italic:"payload" size does not necessarily have to be defined in the italic:"header". That is to say, if the italic:"payload" is expected to be of some pre-defined or static length then a length does not need to be provided in the italic:"header". - The recommended italic:"status" italic:"header" Object may be a string, such as code:"F_none", or a positive whole number. + The recommended italic:"status" italic:"header" Object may be a string, such as code:"F_okay", or a positive whole number. What the status code represents is application specific (or specific to a sub-standard) but may often be used to represent FLL:"Featureless Linux Library" status code. - The FLL:"Featureless Linux Library" status code is a 16-bit digit whose first two high-order bits represent italic:"error" and italic:"warning" ( representing italic:"signal"). - The FLL:"Featureless Linux Library" status code as a number is binary sensitive and may not be portable across binaries or systems. diff --git a/specifications/resolution.txt b/specifications/resolution.txt new file mode 100644 index 0000000..9d28dbd --- /dev/null +++ b/specifications/resolution.txt @@ -0,0 +1,34 @@ +Initial Draft - Currently Just Notes. + +Need an alternative to /etc/resolv.conf. + +Expand kevux specific practices that include "port" and "extension". +Add "scheme". + +The "scheme" is a group or category in this case. +Consider "inet" for classic internet. + +example resolution file (/etc/resolution): + # fss-???? + inet: + namesever 208.67.222.222 + extension kevux 127.0.0.2:123 + + kevux: + nameserver 127.0.0.2:123 + extension turtle 127.0.0.3:456 + + +Can then do nslookup like this: + nslookup google.com + nslookup turtle.kevux + nslookup kevux://google.com + nslookup kevux://turtle.kevux + nslookup kevux://kevin.turtle + +Recommend reserving "http" and "https" for "inet" use in programs. + +Need to include additional files that can be created dynamically. +Allow for user-specific checks. +Allow for custom cached includes. +Allow for custom use for things like VPN.