F_file_descriptor_max,
F_file_descriptor_not,
F_file_empty,
+ F_file_empty_not,
F_file_flush,
F_file_found,
F_file_found_not,
const f_string_static_t f_status_file_descriptor_max_s = macro_f_string_static_t_initialize_1(F_status_file_descriptor_max_s, 0, F_status_file_descriptor_max_s_length);
const f_string_static_t f_status_file_descriptor_not_s = macro_f_string_static_t_initialize_1(F_status_file_descriptor_not_s, 0, F_status_file_descriptor_not_s_length);
const f_string_static_t f_status_file_empty_s = macro_f_string_static_t_initialize_1(F_status_file_empty_s, 0, F_status_file_empty_s_length);
+ const f_string_static_t f_status_file_empty_not_s = macro_f_string_static_t_initialize_1(F_status_file_empty_not_s, 0, F_status_file_empty_not_s_length);
const f_string_static_t f_status_file_flush_s = macro_f_string_static_t_initialize_1(F_status_file_flush_s, 0, F_status_file_flush_s_length);
const f_string_static_t f_status_file_found_s = macro_f_string_static_t_initialize_1(F_status_file_found_s, 0, F_status_file_found_s_length);
const f_string_static_t f_status_file_found_not_s = macro_f_string_static_t_initialize_1(F_status_file_found_not_s, 0, F_status_file_found_not_s_length);
break;
+ case F_file_empty_not:
+ *name = f_status_file_empty_not_s;
+
+ break;
+
case F_file_flush:
*name = f_status_file_flush_s;
#define F_status_file_descriptor_max_s "F_file_descriptor_max"
#define F_status_file_descriptor_not_s "F_file_descriptor_not"
#define F_status_file_empty_s "F_file_empty"
+ #define F_status_file_empty_not_s "F_file_empty_not"
#define F_status_file_flush_s "F_file_flush"
#define F_status_file_found_s "F_file_found"
#define F_status_file_found_not_s "F_file_found_not"
#define F_status_file_descriptor_max_s_length 21
#define F_status_file_descriptor_not_s_length 21
#define F_status_file_empty_s_length 12
+ #define F_status_file_empty_not_s_length 16
#define F_status_file_flush_s_length 12
#define F_status_file_found_s_length 12
#define F_status_file_found_not_s_length 16
extern const f_string_static_t f_status_file_descriptor_max_s;
extern const f_string_static_t f_status_file_descriptor_not_s;
extern const f_string_static_t f_status_file_empty_s;
+ extern const f_string_static_t f_status_file_empty_not_s;
extern const f_string_static_t f_status_file_flush_s;
extern const f_string_static_t f_status_file_found_s;
extern const f_string_static_t f_status_file_found_not_s;
F_file_descriptor_max,
F_file_descriptor_not,
F_file_empty,
+ F_file_empty_not,
F_file_flush,
F_file_found,
F_file_found_not,
f_status_file_descriptor_max_s,
f_status_file_descriptor_not_s,
f_status_file_empty_s,
+ f_status_file_empty_not_s,
f_status_file_flush_s,
f_status_file_found_s,
f_status_file_found_not_s,
f_status_status_code_last_s,
};
- for (uint16_t i = 0; i < 635; ++i) {
+ for (uint16_t i = 0; i < 636; ++i) {
f_string_static_t result = f_string_static_t_initialize;
return F_okay;
}
+ if (f_compare_dynamic(name, f_status_file_empty_not_s) == F_equal_to) {
+ *code = F_file_empty_not;
+
+ return F_okay;
+ }
+
if (f_compare_dynamic(name, f_status_file_flush_s) == F_equal_to) {
*code = F_file_flush;
F_file_descriptor_max,
F_file_descriptor_not,
F_file_empty,
+ F_file_empty_not,
F_file_flush,
F_file_found,
F_file_found_not,
f_status_file_descriptor_max_s,
f_status_file_descriptor_not_s,
f_status_file_empty_s,
+ f_status_file_empty_not_s,
f_status_file_flush_s,
f_status_file_found_s,
f_status_file_found_not_s,
return F_false;
}
- if (status == F_directory_empty_not) {
- if (print->verbosity != f_console_verbosity_quiet_e) {
- flockfile(print->to.stream);
-
- fl_print_format("%[%QUnable to %Q %Q '%]", print->to, print->context, print->prefix, operation, type_name, print->context);
- fl_print_format(f_string_format_Q_single_s.string, print->to, print->notable, name, print->notable);
- fl_print_format("%[', not empty.%]%r", print->to, print->context, print->context, f_string_eol_s);
-
- funlockfile(print->to.stream);
- }
-
- return F_false;
- }
-
if (status == F_error) {
if (print->verbosity != f_console_verbosity_quiet_e) {
flockfile(print->to.stream);
return F_false;
}
- if (status == F_file_empty) {
+ if (status == F_directory_empty || status == F_file_empty) {
if (print->verbosity != f_console_verbosity_quiet_e) {
flockfile(print->to.stream);
return F_false;
}
+ if (status == F_directory_empty_not || status == F_file_empty_not) {
+ if (print->verbosity != f_console_verbosity_quiet_e) {
+ flockfile(print->to.stream);
+
+ fl_print_format("%[%QUnable to %Q %Q '%]", print->to, print->context, print->prefix, operation, type_name, print->context);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->notable, name, print->notable);
+ fl_print_format("%[', %Q is not empty.%]%r", print->to, print->context, type_name, print->context, f_string_eol_s);
+
+ funlockfile(print->to.stream);
+ }
+
+ return F_false;
+ }
+
if (status == F_file_flush) {
if (print->verbosity != f_console_verbosity_quiet_e) {
flockfile(print->to.stream);