This change is in two parts.
This part is just changing the status codes.
The next part will be changing all code using the status code F_none as the standard return to instead use F_okay.
I believe that F_okay makes more semantic sense than F_none when providing a standard code.
The original idea of F_none is that there are no errors.
I think "okay" is even more accurate.
Furthermore, the F_okay better matches the return code of the HTTP standard "HTTP 200 Okay".
#ifndef _di_f_execute_status_from_status_
uint8_t f_execute_status_from_status(f_status_t status) {
- if (F_status_set_fine(status) == F_none) return F_execute_none;
+ if (F_status_set_fine(status) == F_okay) return F_execute_okay;
if (F_status_set_fine(status) == F_access) return F_execute_access;
if (F_status_set_fine(status) == F_buffer) return F_execute_buffer;
if (F_status_set_fine(status) == F_busy) return F_execute_busy;
#ifndef _di_f_execute_status_to_status_
f_status_t f_execute_status_to_status(uint8_t status) {
- if (status == F_execute_none) return F_none;
+ if (status == F_execute_okay) return F_okay;
if (status == F_execute_access) return F_access;
if (status == F_execute_bad) return F_execute_not;
if (status == F_execute_buffer) return F_buffer;
*/
#ifndef _di_f_execute_e_
enum {
- F_execute_none = 0,
+ F_execute_okay = 0,
F_execute_failure,
F_execute_parameter,
F_execute_access,
* 1) F_false, must always evaluate to 0.
* 2) F_true, must always evaluate to 1 and will conflict with F_signal_hangup.
* 3) All f_signal_*, these numbers must map directly to the standard signal codes.
- * 4) F_none, this is intended to be the default return code and the return code representing the standard start code.
+ * 4) F_okay, this is intended to be the default return code and the return code representing the standard start code.
* 5) F_status_code_last, this is intended to designate the last code provided by level_0 status project.
* All code sets started by another project (such as FSS status codes) must start at this number + 1 with a code start map.
*/
// 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_none = 197,
+ F_okay = 197,
+ F_okay_not,
F_abort,
F_abort_not,
F_absolute,
F_address_not,
F_again,
F_again_not,
+ F_all,
+ F_all_not,
F_ascii,
F_ascii_not,
F_atomic,
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,
F_size_not,
F_skip,
F_skip_not,
+ F_some,
+ F_some_not,
F_space,
F_space_not,
F_start,
const f_string_static_t f_status_signal_reserved_64_s = macro_f_string_static_t_initialize_1(F_status_signal_reserved_64_s, 0, F_status_signal_reserved_64_s_length);
// Basic.
- const f_string_static_t f_status_none_s = macro_f_string_static_t_initialize_1(F_status_none_s, 0, F_status_none_s_length);
+ const f_string_static_t f_status_okay_s = macro_f_string_static_t_initialize_1(F_status_okay_s, 0, F_status_okay_s_length);
+ const f_string_static_t f_status_okay_not_s = macro_f_string_static_t_initialize_1(F_status_okay_not_s, 0, F_status_okay_not_s_length);
const f_string_static_t f_status_abort_s = macro_f_string_static_t_initialize_1(F_status_abort_s, 0, F_status_abort_s_length);
const f_string_static_t f_status_abort_not_s = macro_f_string_static_t_initialize_1(F_status_abort_not_s, 0, F_status_abort_not_s_length);
const f_string_static_t f_status_absolute_s = macro_f_string_static_t_initialize_1(F_status_absolute_s, 0, F_status_absolute_s_length);
const f_string_static_t f_status_address_not_s = macro_f_string_static_t_initialize_1(F_status_address_not_s, 0, F_status_address_not_s_length);
const f_string_static_t f_status_again_s = macro_f_string_static_t_initialize_1(F_status_again_s, 0, F_status_again_s_length);
const f_string_static_t f_status_again_not_s = macro_f_string_static_t_initialize_1(F_status_again_not_s, 0, F_status_again_not_s_length);
+ const f_string_static_t f_status_all_s = macro_f_string_static_t_initialize_1(F_status_all_s, 0, F_status_all_s_length);
+ const f_string_static_t f_status_all_not_s = macro_f_string_static_t_initialize_1(F_status_all_not_s, 0, F_status_all_not_s_length);
const f_string_static_t f_status_ascii_s = macro_f_string_static_t_initialize_1(F_status_ascii_s, 0, F_status_ascii_s_length);
const f_string_static_t f_status_ascii_not_s = macro_f_string_static_t_initialize_1(F_status_ascii_not_s, 0, F_status_ascii_not_s_length);
const f_string_static_t f_status_atomic_s = macro_f_string_static_t_initialize_1(F_status_atomic_s, 0, F_status_atomic_s_length);
const f_string_static_t f_status_nice_not_s = macro_f_string_static_t_initialize_1(F_status_nice_not_s, 0, F_status_nice_not_s_length);
const f_string_static_t f_status_no_s = macro_f_string_static_t_initialize_1(F_status_no_s, 0, F_status_no_s_length);
const f_string_static_t f_status_no_not_s = macro_f_string_static_t_initialize_1(F_status_no_not_s, 0, F_status_no_not_s_length);
+ const f_string_static_t f_status_none_s = macro_f_string_static_t_initialize_1(F_status_none_s, 0, F_status_none_s_length);
+ const f_string_static_t f_status_none_not_s = macro_f_string_static_t_initialize_1(F_status_none_not_s, 0, F_status_none_not_s_length);
const f_string_static_t f_status_object_s = macro_f_string_static_t_initialize_1(F_status_object_s, 0, F_status_object_s_length);
const f_string_static_t f_status_object_not_s = macro_f_string_static_t_initialize_1(F_status_object_not_s, 0, F_status_object_not_s_length);
- const f_string_static_t f_status_okay_s = macro_f_string_static_t_initialize_1(F_status_okay_s, 0, F_status_okay_s_length);
- const f_string_static_t f_status_okay_not_s = macro_f_string_static_t_initialize_1(F_status_okay_not_s, 0, F_status_okay_not_s_length);
const f_string_static_t f_status_once_s = macro_f_string_static_t_initialize_1(F_status_once_s, 0, F_status_once_s_length);
const f_string_static_t f_status_once_not_s = macro_f_string_static_t_initialize_1(F_status_once_not_s, 0, F_status_once_not_s_length);
const f_string_static_t f_status_option_s = macro_f_string_static_t_initialize_1(F_status_option_s, 0, F_status_option_s_length);
const f_string_static_t f_status_signal_not_s = macro_f_string_static_t_initialize_1(F_status_signal_not_s, 0, F_status_signal_not_s_length);
const f_string_static_t f_status_skip_s = macro_f_string_static_t_initialize_1(F_status_skip_s, 0, F_status_skip_s_length);
const f_string_static_t f_status_skip_not_s = macro_f_string_static_t_initialize_1(F_status_skip_not_s, 0, F_status_skip_not_s_length);
+ const f_string_static_t f_status_some_s = macro_f_string_static_t_initialize_1(F_status_some_s, 0, F_status_some_s_length);
+ const f_string_static_t f_status_some_not_s = macro_f_string_static_t_initialize_1(F_status_some_not_s, 0, F_status_some_not_s_length);
const f_string_static_t f_status_space_s = macro_f_string_static_t_initialize_1(F_status_space_s, 0, F_status_space_s_length);
const f_string_static_t f_status_space_not_s = macro_f_string_static_t_initialize_1(F_status_space_not_s, 0, F_status_space_not_s_length);
const f_string_static_t f_status_start_s = macro_f_string_static_t_initialize_1(F_status_start_s, 0, F_status_start_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_not_s = macro_f_string_static_t_initialize_1(F_status_none_not_s, 0, F_status_none_not_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_data_s = macro_f_string_static_t_initialize_1(F_status_data_s, 0, F_status_data_s_length);
break;
// Basic.
- case F_none:
- *name = f_status_none_s;
+ case F_okay:
+ *name = f_status_okay_s;
+
+ break;
+
+ case F_okay_not:
+ *name = f_status_okay_not_s;
break;
break;
+ case F_all:
+ *name = f_status_all_s;
+
+ break;
+
+ case F_all_not:
+ *name = f_status_all_not_s;
+
+ break;
+
case F_ascii:
*name = f_status_ascii_s;
break;
- case F_object:
- *name = f_status_object_s;
+ case F_none:
+ *name = f_status_none_s;
break;
- case F_object_not:
- *name = f_status_object_not_s;
+ case F_none_not:
+ *name = f_status_none_not_s;
break;
- case F_okay:
- *name = f_status_okay_s;
+ case F_object:
+ *name = f_status_object_s;
break;
- case F_okay_not:
- *name = f_status_okay_not_s;
+ case F_object_not:
+ *name = f_status_object_not_s;
break;
break;
+ case F_some:
+ *name = f_status_some_s;
+
+ break;
+
+ case F_some_not:
+ *name = f_status_some_not_s;
+
+ break;
+
case F_space:
*name = f_status_space_s;
extern const f_string_static_t f_status_signal_reserved_64_s;
// Basic.
- #define F_status_none_s "F_none"
+ #define F_status_okay_s "F_okay"
+ #define F_status_okay_not_s "F_okay_not"
#define F_status_abort_s "F_abort"
#define F_status_abort_not_s "F_abort_not"
#define F_status_absolute_s "F_absolute"
#define F_status_address_not_s "F_address_not"
#define F_status_again_s "F_again"
#define F_status_again_not_s "F_again_not"
+ #define F_status_all_s "F_all"
+ #define F_status_all_not_s "F_all_not"
#define F_status_ascii_s "F_ascii"
#define F_status_ascii_not_s "F_ascii_not"
#define F_status_atomic_s "F_atomic"
#define F_status_nice_not_s "F_nice_not"
#define F_status_no_s "F_no"
#define F_status_no_not_s "F_no_not"
+ #define F_status_none_s "F_none"
+ #define F_status_none_not_s "F_none_not"
#define F_status_object_s "F_object"
#define F_status_object_not_s "F_object_not"
- #define F_status_okay_s "F_okay"
- #define F_status_okay_not_s "F_okay_not"
#define F_status_once_s "F_once"
#define F_status_once_not_s "F_once_not"
#define F_status_option_s "F_option"
#define F_status_signal_not_s "F_signal_not"
#define F_status_skip_s "F_skip"
#define F_status_skip_not_s "F_skip_not"
+ #define F_status_some_s "F_some"
+ #define F_status_some_not_s "F_some_not"
#define F_status_space_s "F_space"
#define F_status_space_not_s "F_space_not"
#define F_status_start_s "F_start"
#define F_status_yes_s "F_yes"
#define F_status_yes_not_s "F_yes_not"
- #define F_status_none_s_length 6
+ #define F_status_okay_s_length 6
+ #define F_status_okay_not_s_length 10
#define F_status_abort_s_length 7
#define F_status_abort_not_s_length 11
#define F_status_absolute_s_length 10
#define F_status_address_not_s_length 13
#define F_status_again_s_length 7
#define F_status_again_not_s_length 11
+ #define F_status_all_s_length 5
+ #define F_status_all_not_s_length 9
#define F_status_ascii_s_length 7
#define F_status_ascii_not_s_length 11
#define F_status_atomic_s_length 8
#define F_status_nice_not_s_length 10
#define F_status_no_s_length 4
#define F_status_no_not_s_length 8
+ #define F_status_none_s_length 6
+ #define F_status_none_not_s_length 10
#define F_status_object_s_length 8
#define F_status_object_not_s_length 12
- #define F_status_okay_s_length 6
- #define F_status_okay_not_s_length 10
#define F_status_once_s_length 6
#define F_status_once_not_s_length 10
#define F_status_option_s_length 8
#define F_status_signal_not_s_length 12
#define F_status_skip_s_length 6
#define F_status_skip_not_s_length 10
+ #define F_status_some_s_length 6
+ #define F_status_some_not_s_length 10
#define F_status_space_s_length 7
#define F_status_space_not_s_length 11
#define F_status_start_s_length 7
#define F_status_yes_s_length 5
#define F_status_yes_not_s_length 9
- extern const f_string_static_t f_status_none_s;
+ extern const f_string_static_t f_status_okay_s;
+ extern const f_string_static_t f_status_okay_not_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;
extern const f_string_static_t f_status_address_not_s;
extern const f_string_static_t f_status_again_s;
extern const f_string_static_t f_status_again_not_s;
+ extern const f_string_static_t f_status_all_s;
+ extern const f_string_static_t f_status_all_not_s;
extern const f_string_static_t f_status_ascii_s;
extern const f_string_static_t f_status_ascii_not_s;
extern const f_string_static_t f_status_atomic_s;
extern const f_string_static_t f_status_nice_not_s;
extern const f_string_static_t f_status_no_s;
extern const f_string_static_t f_status_no_not_s;
+ extern const f_string_static_t f_status_none_s;
+ extern const f_string_static_t f_status_none_not_s;
extern const f_string_static_t f_status_object_s;
extern const f_string_static_t f_status_object_not_s;
- extern const f_string_static_t f_status_okay_s;
- extern const f_string_static_t f_status_okay_not_s;
extern const f_string_static_t f_status_once_s;
extern const f_string_static_t f_status_once_not_s;
extern const f_string_static_t f_status_option_s;
extern const f_string_static_t f_status_signal_not_s;
extern const f_string_static_t f_status_skip_s;
extern const f_string_static_t f_status_skip_not_s;
+ extern const f_string_static_t f_status_some_s;
+ extern const f_string_static_t f_status_some_not_s;
extern const f_string_static_t f_status_space_s;
extern const f_string_static_t f_status_space_not_s;
extern const f_string_static_t f_status_start_s;
#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_not_s "F_none_not"
#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_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_not_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
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_not_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;
F_signal_reserved_62,
F_signal_reserved_63,
F_signal_reserved_64,
- F_none,
+ F_okay,
+ F_okay_not,
F_abort,
F_abort_not,
F_absolute,
F_address_not,
F_again,
F_again_not,
+ F_all,
+ F_all_not,
F_ascii,
F_ascii_not,
F_atomic,
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,
F_size_not,
F_skip,
F_skip_not,
+ F_some,
+ F_some_not,
F_space,
F_space_not,
F_start,
const f_string_static_t status_strings[] = {
f_status_false_s,
f_status_true_s,
- f_status_true_s, // This is F_signal_hangup, but it overlaps and falls back to F_true.
+ f_status_signal_hangup_s,
f_status_signal_interrupt_s,
f_status_signal_quit_s,
f_status_signal_illegal_s,
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_not_s,
f_status_abort_s,
f_status_abort_not_s,
f_status_absolute_s,
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,
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,
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,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 619; ++i) {
+ for (uint16_t i = 0; i < 624; ++i) {
f_string_static_t result = f_string_static_t_initialize;