I am now using "instance" in parallel with "process".
Provide an "instance" codes in a similar manner.
F_process_not,
F_process_too_many,
+ // Process.
+ F_instance,
+ F_instance_not,
+ F_instance_too_many,
+
// File.
F_file,
F_file_close,
const f_string_static_t f_status_process_not_s = macro_f_string_static_t_initialize_1(F_status_process_not_s, 0, F_status_process_not_s_length);
const f_string_static_t f_status_process_too_many_s = macro_f_string_static_t_initialize_1(F_status_process_too_many_s, 0, F_status_process_too_many_s_length);
+ // Instance.
+ const f_string_static_t f_status_instance_s = macro_f_string_static_t_initialize_1(F_status_instance_s, 0, F_status_instance_s_length);
+ const f_string_static_t f_status_instance_not_s = macro_f_string_static_t_initialize_1(F_status_instance_not_s, 0, F_status_instance_not_s_length);
+ const f_string_static_t f_status_instance_too_many_s = macro_f_string_static_t_initialize_1(F_status_instance_too_many_s, 0, F_status_instance_too_many_s_length);
+
// File.
const f_string_static_t f_status_file_s = macro_f_string_static_t_initialize_1(F_status_file_s, 0, F_status_file_s_length);
const f_string_static_t f_status_file_close_s = macro_f_string_static_t_initialize_1(F_status_file_close_s, 0, F_status_file_close_s_length);
break;
+ // Instance.
+ case F_instance:
+ *name = f_status_instance_s;
+
+ break;
+
+ case F_instance_not:
+ *name = f_status_instance_not_s;
+
+ break;
+
+ case F_instance_too_many:
+ *name = f_status_instance_too_many_s;
+
+ break;
+
// File.
case F_file:
*name = f_status_file_s;
extern const f_string_static_t f_status_process_not_s;
extern const f_string_static_t f_status_process_too_many_s;
+ // Instance.
+ #define F_status_instance_s "F_instance"
+ #define F_status_instance_not_s "F_instance_not"
+ #define F_status_instance_too_many_s "F_instance_too_many"
+
+ #define F_status_instance_s_length 10
+ #define F_status_instance_not_s_length 14
+ #define F_status_instance_too_many_s_length 19
+
+ extern const f_string_static_t f_status_instance_s;
+ extern const f_string_static_t f_status_instance_not_s;
+ extern const f_string_static_t f_status_instance_too_many_s;
+
// File.
#define F_status_file_s "F_file"
#define F_status_file_close_s "F_file_close"
F_process,
F_process_not,
F_process_too_many,
+ F_instance,
+ F_instance_not,
+ F_instance_too_many,
F_file,
F_file_close,
F_file_closed,
f_status_process_s,
f_status_process_not_s,
f_status_process_too_many_s,
+ f_status_instance_s,
+ f_status_instance_not_s,
+ f_status_instance_too_many_s,
f_status_file_s,
f_status_file_close_s,
f_status_file_closed_s,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 632; ++i) {
+ for (uint16_t i = 0; i < 635; ++i) {
f_string_static_t result = f_string_static_t_initialize;
return F_okay;
}
- #endif // _di_f_status_process_s_
- #ifndef _di_f_status_file_s_
+ // Instance.
+ if (f_compare_dynamic(name, f_status_instance_s) == F_equal_to) {
+ *code = F_instance;
+
+ return F_okay;
+ }
+
+ if (f_compare_dynamic(name, f_status_instance_not_s) == F_equal_to) {
+ *code = F_instance_not;
+
+ return F_okay;
+ }
+
+ if (f_compare_dynamic(name, f_status_instance_too_many_s) == F_equal_to) {
+ *code = F_instance_too_many;
+
+ return F_okay;
+ }
+
+ // File.
if (f_compare_dynamic(name, f_status_file_s) == F_equal_to) {
*code = F_file;
F_process,
F_process_not,
F_process_too_many,
+ F_instance,
+ F_instance_not,
+ F_instance_too_many,
F_file,
F_file_close,
F_file_closed,
f_status_process_s,
f_status_process_not_s,
f_status_process_too_many_s,
+ f_status_instance_s,
+ f_status_instance_not_s,
+ f_status_instance_too_many_s,
f_status_file_s,
f_status_file_close_s,
f_status_file_closed_s,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 632; ++i) {
+ for (uint16_t i = 0; i < 635; ++i) {
f_status_t result = F_okay;