This is legacy behavior that is no longer needed.
Update any existing uses of these deleted macros.
extern "C" {
#endif
-#ifndef _di_f_macro_test_for_basic_errors_
- #define f_macro_test_for_basic_errors(potential_error) \
- ( potential_error == f_critical || \
- potential_error == f_unknown || \
- potential_error == f_unsupported || \
- potential_error == f_invalid_parameter || \
- potential_error == f_invalid_syntax || \
- potential_error == f_invalid_data || \
- potential_error == f_output_error || \
- potential_error == f_does_not_exist || \
- potential_error == f_failure)
-#endif // _di_f_macro_test_for_basic_errors_
-
-#ifndef _di_f_macro_test_for_allocation_errors_
- // FIXME: invalid_parameter was temporarily added here so that parameter checking could be corrected for all allocations and deallocations
- #define f_macro_test_for_allocation_errors(potential_error) \
- ( potential_error == f_allocation_error || \
- potential_error == f_reallocation_error || \
- potential_error == f_file_allocation_error || \
- potential_error == f_file_reallocation_error || \
- potential_error == f_directory_allocation_error || \
- potential_error == f_invalid_parameter || \
- potential_error == f_directory_reallocation_error )
-#endif // _di_f_macro_test_for_allocation_errors_
-
-#ifndef _di_f_macro_test_for_non_errors_
- #define f_macro_test_for_non_errors(potential_error) \
- ( potential_error == f_true || \
- potential_error == f_false || \
- potential_error == f_warn || \
- potential_error == f_no_data || \
- potential_error == f_no_data_on_eos || \
- potential_error == f_no_data_on_eof || \
- potential_error == f_no_data_on_stop || \
- potential_error == f_none_on_eof || \
- potential_error == f_none_on_eos || \
- potential_error == f_none_on_stop || \
- potential_error == f_less_than || \
- potential_error == f_equal_to || \
- potential_error == f_not_equal_to || \
- potential_error == f_greater_than || \
- potential_error == f_none )
-#endif // _di_f_macro_test_for_non_errors_
-
-#ifndef _di_macro_f_test_for_file_errors_
- #define f_macro_test_for_file_errors(potential_error) \
- ( potential_error == f_file_seek_error || \
- potential_error == f_file_read_error || \
- potential_error == f_file_write_error || \
- potential_error == f_file_flush_error || \
- potential_error == f_file_purge_error || \
- potential_error == f_file_open_error || \
- potential_error == f_file_close_error || \
- potential_error == f_file_synchronize_error || \
- potential_error == f_file_descriptor_error || \
- potential_error == f_file_not_found || \
- potential_error == f_file_is_empty || \
- potential_error == f_file_not_open )
-#endif // _di_f_macro_test_for_file_errors_
-
-#ifndef _di_f_macro_test_for_directory_errors_
- #define f_macro_test_for_directory_errors(parameter) \
- ( potential_error == f_directory_seek_error || \
- potential_error == f_directory_read_error || \
- potential_error == f_directory_write_error || \
- potential_error == f_directory_flush_error || \
- potential_error == f_directory_purge_error || \
- potential_error == f_directory_open_error || \
- potential_error == f_directory_close_error || \
- potential_error == f_directory_synchronize_error || \
- potential_error == f_directory_descriptor_error || \
- potential_error == f_directory_not_found || \
- potential_error == f_directory_is_empty || \
- potential_error == f_directory_not_open )
-#endif // _di_f_macro_test_for_directory_errors_
-
-#ifndef _di_f_macro_test_for_none_errors_
- #define f_macro_test_for_none_errors(potential_error) \
- ( potential_error == f_none || \
- potential_error == f_none_on_eof || \
- potential_error == f_none_on_eol || \
- potential_error == f_none_on_eos || \
- potential_error == f_none_on_stop)
-#endif // _di_f_macro_test_for_none_errors_
-
-#ifndef _di_f_macro_test_for_no_data_errors_
- #define f_macro_test_for_no_data_errors(potential_error) \
- ( potential_error == f_no_data || \
- potential_error == f_no_data_on_eof || \
- potential_error == f_no_data_on_eol || \
- potential_error == f_no_data_on_eos || \
- potential_error == f_no_data_on_stop)
-#endif // _di_f_macro_test_for_no_data_errors_
-
-#ifndef _di_f_macro_test_for_on_errors_
- #define f_macro_test_for_on_errors(potential_error) \
- ( potential_error == f_error_on_eof || \
- potential_error == f_error_on_eol || \
- potential_error == f_error_on_eos || \
- potential_error == f_error_on_stop)
-#endif // _di_f_macro_test_for_on_errors_
-
-#ifndef _di_f_macro_test_for_unterminated_nest_errors_
- #define f_macro_test_for_unterminated_nest_errors(potential_error) \
- ( potential_error == f_unterminated_nest || \
- potential_error == f_unterminated_nest_on_eof || \
- potential_error == f_unterminated_nest_on_eol || \
- potential_error == f_unterminated_nest_on_eos || \
- potential_error == f_unterminated_nest_on_stop)
-#endif // _di_f_macro_test_for_unterminated_nest_errors_
-
-#ifndef _di_f_macro_test_for_unterminated_group_errors_
- #define f_macro_test_for_unterminated_group_errors(potential_error) \
- ( potential_error == f_unterminated_group || \
- potential_error == f_unterminated_group_on_eof || \
- potential_error == f_unterminated_group_on_eol || \
- potential_error == f_unterminated_group_on_eos || \
- potential_error == f_unterminated_group_on_stop)
-#endif // _di_f_macro_test_for_unterminated_group_errors_
-
#ifndef _di_f_error_masks_
// f_status is required to be exactly 16 bits, the first two high order bits represent error and warning respectively.
#define f_error_bit_error 0x8000 // 1000 0000 0000 0000
f_resize_dynamic_string(status, (*buffer), buffer->used + string_size + 1); // the additional 1 is the EOS
- if (f_macro_test_for_allocation_errors(status)) {
+ if (f_error_is_error(status)) {
return status;
}
}
extern "C" {
#endif
-#ifndef _di_fl_macro_test_for_fss_errors_
- #define fl_macro_test_for_fss_errors(potential_error) \
- ( !f_macro_test_for_non_errors(potential_error) && \
- potential_error != fl_fss_no_header && \
- potential_error != fl_fss_no_header_eos && \
- potential_error != fl_fss_accepted_but_invalid && \
- potential_error != fl_fss_accepted_but_invalid_eos )
-#endif // _di_fl_macro_test_for_fss_errors_
-
enum {
fl_fss_error_start = f_last_error_code,
status = fl_fss_basic_object_write(buffer, object, &location);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return status;
}
- if (f_macro_test_for_none_errors(status)) {
+ if (status == f_none || status == f_none_on_stop || status == f_none_on_eos || status == f_none_on_eol) {
if (contents.used > 0) {
location.start = 0;
location.stop = contents.array[0].used - 1;
status = fl_fss_basic_content_write(buffer, contents.array[0], &location);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status)) {
return status;
}
}
status = fl_fss_basic_list_object_write(object, &location, buffer);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return status;
}
- if (f_macro_test_for_none_errors(status)) {
+ if (status == f_none || status == f_none_on_stop || status == f_none_on_eos || status == f_none_on_eol) {
if (contents.used > 0) {
location.start = 0;
location.stop = contents.array[0].used - 1;
status = fl_fss_basic_list_content_write(contents.array[0], &location, buffer);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return status;
}
}
status = fl_fss_extended_object_write(object, &location, buffer);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return status;
}
- if (f_macro_test_for_none_errors(status)) {
+ if (status == f_none || status == f_none_on_stop || status == f_none_on_eos || status == f_none_on_eol) {
while (current < contents.used) {
location.start = 0;
location.stop = contents.array[current].used - 1;
status = fl_fss_extended_content_write(contents.array[current], &location, buffer);
- if (f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return status;
}
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (f_error_set_fine(status) == f_invalid_parameter) {
if (f_error_is_error(status)) {
status = f_error_set_fine(status);
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
if (f_error_is_error(status)) {
status = f_error_set_fine(status);
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_no_data) {
else if (status == f_file_descriptor_error) {
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "ERROR: File descriptor error while trying to open the file '%.*s'", file_path.used, file_path.string);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "ERROR: A read error occurred while accessing the file '%.*s'", file_path.used, file_path.string);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
else if (status == f_no_data_on_eos || status == f_no_data || status == f_no_data_on_stop) {
// empty files are to be silently ignored
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'.", filename);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else {
else if (status == f_no_data_on_eos || status == f_no_data || status == f_no_data_on_stop) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: No relevant data was found within the file '%s'.", filename);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else {
if (f_error_is_error(status)) {
status = f_error_set_fine(status);
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_failure) {
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_invalid_parameter) {
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'", argv[data->remaining.array[counter]]);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
if (status == f_invalid_parameter) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: Invalid parameter when calling fll_fss_basic_list_read() for the file '%s'", filename);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_incomplete_utf_on_stop) {
fss_basic_list_read_delete_data(data);
return f_error_set_error(status);
}
- else if (f_macro_test_for_no_data_errors(status)) {
+ else if (status == f_no_data_on_stop || status == f_no_data_on_eos) {
// clear buffers, then attempt the next file
f_delete_fss_contents(status2, data->contents);
f_delete_fss_objects(status2, data->objects);
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_invalid_parameter) {
if (object) {
status = fl_fss_basic_list_object_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos || status == f_no_data_on_eol) {
return f_error_set_error(status);
}
}
else {
status = fl_fss_basic_list_content_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos || status == f_no_data_on_eol) {
return f_error_set_error(status);
}
}
if (object) {
status = fl_fss_basic_list_object_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos || status == f_no_data_on_eol) {
return f_error_set_error(status);
}
}
else {
status = fl_fss_basic_list_content_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos || status == f_no_data_on_eol) {
return f_error_set_error(status);
}
}
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_invalid_parameter) {
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'", "-");
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'", argv[data->remaining.array[counter]]);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
if (status == f_invalid_parameter) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: Invalid parameter when calling fll_fss_basic_list_read() for the file '%s'", filename);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_incomplete_utf_on_stop) {
fss_basic_read_delete_data(data);
return f_error_set_error(status);
}
- else if (f_macro_test_for_no_data_errors(status)) {
+ else if (status == f_no_data_on_stop || status == f_no_data_on_eos) {
// clear buffers, then attempt the next file
f_delete_fss_contents(status2, data->contents);
f_delete_fss_objects(status2, data->objects);
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_invalid_parameter) {
if (object) {
status = fl_fss_basic_object_write(&buffer, input, &location);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
else {
status = fl_fss_basic_content_write(&buffer, input, &location);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
if (object) {
status = fl_fss_basic_object_write(&buffer, input, &location);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
else {
status = fl_fss_basic_content_write(&buffer, input, &location);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_invalid_parameter) {
fss_extended_read_delete_data(data);
return f_error_set_error(status);
}
- else if (f_macro_test_for_no_data_errors(status)) {
- // clear buffers, then attempt the next file
- f_delete_fss_contents(status2, data->contents);
- f_delete_fss_objects(status2, data->objects);
- f_delete_dynamic_string(status2, data->buffer);
-
- return f_error_set_warning(status);
- }
if (data->file_position.total_elements == 0) {
fseek(file.file, 0, SEEK_END);
else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'", argv[data->remaining.array[counter]]);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else {
if (status == f_invalid_parameter) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: Invalid parameter when calling fll_fss_extended_read() for the file '%s'", filename);
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory");
}
else if (status == f_incomplete_utf_on_stop) {
fss_extended_read_delete_data(data);
return f_error_set_error(status);
}
- else if (f_macro_test_for_no_data_errors(status)) {
+ else if (status == f_no_data_on_stop || status == f_no_data_on_eos) {
// clear buffers, then attempt the next file
f_delete_fss_contents(status2, data->contents);
f_delete_fss_objects(status2, data->objects);
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_invalid_parameter) {
if (object) {
status = fl_fss_extended_object_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
else {
status = fl_fss_extended_content_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
status = fl_fss_extended_object_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
}
status = fl_fss_extended_content_write(input, &location, &buffer);
- if (f_error_is_error(status) || f_macro_test_for_no_data_errors(status)) {
+ if (f_error_is_error(status) || status == f_no_data_on_stop || status == f_no_data_on_eos) {
return f_error_set_error(status);
}
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_invalid_parameter) {
// TODO: there is a way to identify which parameter is incorrect
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
- } else if (f_macro_test_for_allocation_errors(status)) {
+ } else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, argument->context.error, argument->context.reset, "CRITICAL ERROR: unable to allocate memory");
} else if (f_error_set_fine(status) == f_invalid_parameter) {
fl_print_color_line(f_standard_error, argument->context.error, argument->context.reset, "INTERNAL ERROR: Invalid parameter when calling fl_process_parameters()");
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A seek error occurred while accessing the file '%s'.", filename);
} else if (status == f_file_read_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: A read error occurred while accessing the file '%s'.", filename);
- } else if (f_macro_test_for_allocation_errors(status)) {
+ } else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
} else {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: An unhandled error (%u) has occured while calling fl_file_read().", f_error_set_error(status));
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: Invalid parameter when calling fll_fss_basic_list_read() for the file '%s'.", filename);
} else if (status == f_no_data_on_eos || status == f_no_data || status == f_no_data_on_stop) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: No relevant data was found within the file '%s'.", filename);
- } else if (f_macro_test_for_allocation_errors(status)) {
+ } else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
} else {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "INTERNAL ERROR: An unhandled error (%u) has occured while calling fll_fss_basic_list_read() for the file '%s'.", f_error_set_error(status), filename);
if (f_error_is_error(status)) {
status = f_error_set_fine(status);
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
} else if (status == f_failure) {
// the error message has already been displayed.
fl_print_color_line(f_standard_error, argument.context.error, argument.context.reset, "INTERNAL ERROR: Invalid parameter when calling fll_fss_basic_list_read() for the file '%s'.", init_rule_core_file);
} else if (status == f_no_data_on_eos || status == f_no_data || status == f_no_data_on_stop) {
fl_print_color_line(f_standard_error, argument.context.error, argument.context.reset, "ERROR: No relevant data was found within the file '%s'.", init_rule_core_file);
- } else if (f_macro_test_for_allocation_errors(status)) {
+ } else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, argument.context.error, argument.context.reset, "CRITICAL ERROR: unable to allocate memory.");
} else {
fl_print_color_line(f_standard_error, argument.context.error, argument.context.reset, "INTERNAL ERROR: An unhandled error (%u) has occured while calling fll_fss_basic_list_read() for the file '%s'.", f_error_set_error(status), init_rule_core_file);
status = fll_fss_extended_read(&buffer, &location, &objects, &contents);
if (f_error_is_error(status_process)) {
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, argument->context.error, argument->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else {
if (f_error_is_error(status)) {
status = f_error_set_fine(status);
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, context.reset, "CRITICAL ERROR: unable to allocate memory.");
} else if (status == f_failure) {
// the error message has already been displayed.
}
}
else {
- if (f_macro_test_for_allocation_errors(status)) {
+ if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, context.error, context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else {
// to do this, one must look for any "has_additional" and then see if the "additional" location is set to 0
// nothing can be 0 as that represents the program name, unless argv[] is improperly created
}
- else if (f_macro_test_for_allocation_errors(status)) {
+ else if (status == f_allocation_error || status == f_reallocation_error) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "CRITICAL ERROR: unable to allocate memory.");
}
else if (status == f_invalid_parameter) {