/**
* All standard/core status codes.
*
- * The code f_last_status_code is intended to be used as the starting point for anything extending this and povided its own status codes.
+ * The code f_status_code_last is intended to be used as the starting point for anything extending this and povided its own status codes.
*/
enum {
#ifndef _di_f_status_booleans_
#endif // _di_f_status_access_denied_
// required
- f_last_status_code
+ f_status_code_last
}; // enum
#ifdef __cplusplus
#endif
enum {
- fl_fss_status_start = f_last_status_code,
+ fl_fss_status_code_first = f_status_code_last + 1,
#ifndef _di_fl_fss_status_error_
fl_fss_invalid_format,
fl_fss_found_comment,
#endif // _di_fl_fss_status_codes_
- fl_fss_last_error_code,
+ fl_fss_status_code_last,
}; // enum
#ifdef __cplusplus
break;
#endif // _di_fl_status_access_denied_
- case f_last_status_code:
- *string = fl_status_string_last_status_code;
+ case f_status_code_last:
+ *string = fl_status_string_status_code_last;
break;
default:
#define fl_status_string_access_denied_super_length 22
#endif // _di_fl_status_access_denied_
- #define fl_status_string_last_status_code "f_last_status_code"
- #define fl_status_string_last_error_code_length 18
+ #define fl_status_string_status_code_last "f_status_code_last"
+ #define fl_status_string_status_code_last_length 18
#endif // _di_fl_status_string_
/**
}
#endif // _di_fll_fss_status_codes_
- if (fl_string_compare(string, fll_fss_status_string_last_error_code, length, fll_fss_status_string_last_error_code_length) == f_equal_to) {
- *error = f_last_status_code;
+ if (fl_string_compare(string, fll_fss_status_string_status_code_first, length, fll_fss_status_string_status_code_first_length) == f_equal_to) {
+ *error = fl_fss_status_code_first;
+ return f_none;
+ }
+
+ if (fl_string_compare(string, fll_fss_status_string_status_code_last, length, fll_fss_status_string_status_code_last_length) == f_equal_to) {
+ *error = fl_fss_status_code_last;
return f_none;
}
break;
#endif // _di_fll_fss_status_codes_
- case fl_fss_last_error_code:
- *string = fll_fss_status_string_last_error_code;
+ case fl_fss_status_code_first:
+ *string = fll_fss_status_string_status_code_first;
+ break;
+
+ case fl_fss_status_code_last:
+ *string = fll_fss_status_string_status_code_last;
break;
- default:
+ default:
return fl_status_to_string(error, string);
}
#define fll_fss_status_string_found_comment_length 15
#endif // _di_fll_fss_status_codes_
- #define fll_fss_status_string_last_error_code "fl_fss_last_error_code"
- #define fll_fss_status_string_last_error_code_length 23
+ #define fll_fss_status_string_status_code_first "fl_fss_status_code_first"
+ #define fll_fss_status_string_status_code_first_length 25
+
+ #define fll_fss_status_string_status_code_last "fl_fss_status_code_last"
+ #define fll_fss_status_string_status_code_last_length 23
#endif // _di_fll_fss_status_string_
/**
extern f_return_status fll_fss_status_is_warning(const f_status error);
#endif // _di_fll_fss_status_is_warning_
-
#ifndef _di_fll_fss_status_is_fine_
/**
* Returns true or false depending on whether the standard context of the error code represents an normal return status and not an error.
return f_no_data;
}
- // numbers are not valid status code strings.
+ // Numbers are not valid status code strings.
if ((status = f_conversion_character_is_decimal(string[0])) == f_true) {
return f_status_set_error(f_invalid_data);
}
}
#endif // _di_fll_status_access_denied_
- if (fl_string_compare(string, fl_status_string_last_status_code, length, fl_status_string_last_error_code_length) == f_equal_to) {
- *code = f_last_status_code;
+ if (fl_string_compare(string, fl_status_string_status_code_last, length, fl_status_string_status_code_last_length) == f_equal_to) {
+ *code = f_status_code_last;
return f_none;
}
f_status status2 = f_none;
for (; counter < data->remaining.used; counter++) {
- // numbers are not valid status code strings.
+ // Numbers are not valid status code strings.
if (f_conversion_character_is_decimal(arguments.argv[data->remaining.array[counter]][0]) == f_true) {
status = f_false;
continue;
}
- status2 = fll_status_from_string(arguments.argv[data->remaining.array[counter]], &code);
+ status2 = fll_fss_status_from_string(arguments.argv[data->remaining.array[counter]], &code);
if (f_status_is_error(status2)) {
status = status2;
f_status status2 = f_none;
for (; counter < data->remaining.used; counter++) {
- // numbers are not valid status code strings.
+ // Numbers are not valid status code strings.
if (f_conversion_character_is_decimal(arguments.argv[data->remaining.array[counter]][0]) == f_true) {
status = f_false;
continue;