Data types that are numeric, non-pointer, and non-structure should not need an *_initializer macros.
It has been decided for simplicity purposes that these will be left alone.
All other data types that are either non-numeric, pointers, or structures will continue to require *_initialize macros.
f_string_length used; // total number of allocated spaces used
} f_fss_headers;
- #define f_fss_headers_initialize { 0, f_string_length_initialize, f_string_length_initialize }
+ #define f_fss_headers_initialize { 0, 0, 0 }
#define f_delete_fss_headers(status, headers) \
f_delete_structure(status, headers, f_fss_header)
f_string_length used; // total number of allocated spaces used
} f_fss_objects;
- #define f_fss_objects_initialize { 0, f_string_length_initialize, f_string_length_initialize }
+ #define f_fss_objects_initialize { 0, 0, 0 }
#define f_delete_fss_objects(status, objects) \
f_delete_structure(status, objects, f_fss_object)
f_array_length used; // total number of allocated spaces used
} f_fss_content;
- #define f_fss_content_initialize { 0, f_array_length_initialize, f_array_length_initialize }
+ #define f_fss_content_initialize { 0, 0, 0 }
#define f_delete_fss_content(status, content) \
f_delete_structure(status, content, f_string_location)
f_array_length used; // total number of allocated spaces used
} f_fss_contents;
- #define f_fss_contents_initialize { 0, f_array_length_initialize, f_array_length_initialize }
+ #define f_fss_contents_initialize { 0, 0, 0 }
#define f_delete_fss_contents(status, contents) \
f_delete_structures(status, contents, f_fss_content)
if (status != f_none) break; \
} \
if (status == f_none) status = f_delete((void **) & structures.array, sizeof(type), structures.size); \
- if (status == f_none) structures.used = f_string_length_initialize;
+ if (status == f_none) structures.used = 0;
#endif // _di_f_delete_structures_
#ifndef _di_f_destroy_structures_
#ifndef _di_f_string_length_
typedef f_u_long f_string_length;
- #define f_string_length_initialize 0
#define f_string_length_printf string_format_long_unsigned
#define f_new_string_length(status, string, length) status = f_new_array((void **) & string, sizeof(f_string_length), length)
f_array_length used; // total number of allocated spaces used
} f_string_lengths;
- #define f_string_lengths_initialize { 0, f_array_length_initialize, f_array_length_initialize }
+ #define f_string_lengths_initialize { 0, 0, 0 }
#define f_delete_string_lengths(status, lengths) \
f_delete_structure(status, lengths, f_string_length)
f_array_length used; // total number of allocated spaces used
} f_string_locations;
- #define f_string_locations_initialize {0, f_array_length_initialize, f_array_length_initialize}
+ #define f_string_locations_initialize {0, 0, 0}
#define f_delete_string_locations(status, locations) \
f_delete_structure(status, locations, f_string_location)
f_string_length used; // total number of allocated spaces used
} f_dynamic_string;
- #define f_dynamic_string_initialize { f_string_initialize, f_string_length_initialize, f_string_length_initialize }
+ #define f_dynamic_string_initialize { f_string_initialize, 0, 0 }
#define f_delete_dynamic_string(status, dynamic) \
status = f_delete((void **) & dynamic.string, sizeof(f_string), dynamic.size); \
f_string_length used; // total number of allocated spaces used
} f_dynamic_strings;
- #define f_dynamic_strings_initialize { 0, f_string_length_initialize, f_string_length_initialize }
+ #define f_dynamic_strings_initialize { 0, 0, 0 }
#define f_delete_dynamic_strings(status, dynamics) \
status = f_none; \
#ifndef _di_f_status_
typedef uint16_t f_status;
- #define f_status_initialize 0
-
// The c language gives warnings about return types of constants, I pretty much hate not being able to forcefully specify that these are not the be changed as that could be a security issue
// Therefore, I need to remove the const for c, but keep it for c++, thus I define the type f_return_status, which is only for function call declarations & prototypes
// DO NOT DECLARE THESE FOR THE RETURN DATA TYPES THEMSELVES, USE f_status. ONLY USE THESE FOR FUNCTION PROTOTYPES AND DECLARATIONS
typedef f_u_long f_array_length;
typedef f_u_int f_array_length_short;
typedef f_u_long_long f_array_length_long;
-
- #define f_array_length_initialize 0
- #define f_array_length_short_initialize f_array_length_initialize
- #define f_array_length_long_initialize f_array_length_initialize
#endif // _di_f_array_length_
#ifdef __cplusplus
f_array_length used; // total number of allocated spaces used
} f_array_lengths;
- #define f_array_lengths_initialize { f_array_length_initialize, f_array_length_initialize, f_array_length_initialize }
+ #define f_array_lengths_initialize { 0, 0, 0 }
#define f_delete_array_lengths(status, lengths) \
f_delete_structure(status, lengths, f_array_length)
// make sure there is enough allocated space, if not, then allocate some more
if (buffer->size - buffer->used - 1 < string_size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_dynamic_string(status, (*buffer), buffer->used + string_size + 1); // the additional 1 is the EOS
if (remaining == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_console_id result = 0;
f_bool found = f_false;
if (parameters[parameter_counter].has_additional) {
if (extra_initiator.used >= extra_initiator.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, extra_initiator, extra_initiator.size + f_console_default_allocation_step);
if (f_error_is_error(allocation_status)) {
if (parameters[parameter_counter].has_additional) {
if (extra_initiator.used >= extra_initiator.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, extra_initiator, extra_initiator.size + f_console_default_allocation_step);
if (parameters[parameter_counter].has_additional) {
if (extra_initiator.used >= extra_initiator.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, extra_initiator, extra_initiator.size + f_console_default_allocation_step);
if (parameters[parameter_counter].has_additional) {
if (extra_initiator.used >= extra_initiator.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, extra_initiator, extra_initiator.size + f_console_default_allocation_step);
if (parameters[parameter_counter].type == f_console_type_other) {
if (parameters[parameter_counter].length > 0 && parameters[parameter_counter].symbol_other != 0) {
if (strncmp(argv[location], parameters[parameter_counter].symbol_other, parameters[parameter_counter].length + 1) == 0) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
if (parameters[parameter_counter].additional.used >= parameters[parameter_counter].additional.size) {
f_resize_string_lengths(allocation_status, parameters[parameter_counter].additional, parameters[parameter_counter].additional.size + f_console_default_allocation_step);
if (!found) {
if (extra_initiator.used > 0) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
if (parameters[extra_initiator.array[0]].additional.used >= parameters[extra_initiator.array[0]].additional.size) {
f_resize_string_lengths(allocation_status, parameters[extra_initiator.array[0]].additional, parameters[extra_initiator.array[0]].additional.size + f_console_default_allocation_step);
}
} else {
if (remaining->used >= remaining->size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, (*remaining), remaining->size + f_console_default_allocation_step);
}
{
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, extra_initiator);
}
struct dirent **listing = 0;
f_s_int length = 0;
f_s_int counter = 0;
- f_string_length size = f_string_length_initialize;
- f_status status = f_status_initialize;
+ f_string_length size = 0;
+ f_status status = f_none;
length = scandir(directory_path, &listing, 0, alphasort);
if (file.file == 0) return f_error_set_warning(f_file_not_open);
- f_status status = f_status_initialize;
- f_string_length size = f_string_length_initialize;
+ f_status status = f_none;
+ f_string_length size = 0;
f_bool infinite = f_false;
// when total_elements is 0, this means the file read will until EOF is reached
if (file.file == 0) return f_error_set_warning(f_file_not_open);
- f_status status = f_status_initialize;
- f_string_length size = f_string_length_initialize;
+ f_status status = f_none;
+ f_string_length size = 0;
size = f_file_default_read_size;
f_return_status fl_file_write(f_file file, const f_dynamic_string buffer) {
if (file.file == 0) return f_error_set_error(f_file_not_open);
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_size_t size = 0;
size = fwrite(buffer.string, file.byte_size, buffer.used, file.file);
if (file.file == 0) return f_file_not_open;
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_size_t size = 0;
f_string_length total = buffer.used - (position.stop - position.start + 1);
clearerr(file_information->file);
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_dynamic_string buffer = f_dynamic_string_initialize;
f_file_position location = f_file_position_initialize;
if (location.start >= buffer->used) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_string_length position = f_string_length_initialize;
- f_string_length distance = f_string_length_initialize;
+ f_string_length position = 0;
+ f_string_length distance = 0;
position = location.start;
if (buffer->string[input->start] == f_fss_delimit_single_quote || buffer->string[input->start] == f_fss_delimit_double_quote) {
if (delimits.used >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
if (slash_count % 2 == 0) {
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
{
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, delimits);
}
return fl_fss_found_object;
} else {
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
{
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, delimits);
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*input), (*found), delimits, f_none_on_eos, f_none_on_stop)
} else if (buffer->string[input->start] == f_eol) {
{
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, delimits);
}
fl_macro_fss_object_return_on_overflow((*buffer), (*input), (*found), delimits, f_no_data_on_eos, f_no_data_on_stop)
{
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, delimits);
}
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_bool quoted = f_false;
f_string_location buffer_position = f_string_location_initialize;
f_string_length start_position = f_string_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
+ f_string_length pre_allocate_size = 0;
fl_macro_fss_skip_past_delimit_placeholders(object, (*input))
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_location input_position = f_string_location_initialize;
f_string_location buffer_position = f_string_location_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
+ f_string_length pre_allocate_size = 0;
// add an additional 1 to ensure that there is room for the terminating newline.
pre_allocate_size = buffer->used + (content.used) + 1 + f_fss_default_allocation_step;
input->start = first_slash;
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
}
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_location buffer_position = f_string_location_initialize;
f_string_length start_position = f_string_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
- f_string_length start_buffer = f_string_length_initialize;
+ f_string_length pre_allocate_size = 0;
+ f_string_length start_buffer = 0;
fl_macro_fss_skip_past_delimit_placeholders(object, (*input))
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_bool is_comment = f_false;
f_bool has_graph = f_false;
f_string_location buffer_position = f_string_location_initialize;
f_string_length start_position = f_string_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
+ f_string_length pre_allocate_size = 0;
fl_macro_fss_skip_past_delimit_placeholders(content, (*input))
if (buffer->string[input->start] == f_fss_delimit_single_quote || buffer->string[input->start] == f_fss_delimit_double_quote) {
if (delimits.used >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
input->start = first_slash;
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
return fl_fss_found_object;
} else {
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
return fl_fss_found_no_content;
}
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_bool has_delimit = f_false;
f_autochar quoted = f_eos;
f_bool continue_main_loop = f_false;
- f_string_length location = f_string_length_initialize;
+ f_string_length location = 0;
f_array_length already_used = found->used;
while (input->start <= input->stop && input->start < buffer->used) {
f_resize_fss_content(status, (*found), found->size + f_fss_default_allocation_step);
if (f_error_is_error(status)){
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_delete_string_lengths(allocation_status, delimits);
return status;
if (buffer->string[input->start] == f_fss_delimit_single_quote || buffer->string[input->start] == f_fss_delimit_double_quote) {
if (delimits.used >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + f_fss_default_allocation_step);
if (slash_count % 2 == 0) {
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
continue;
} else {
if (delimits.used + (slash_count / 2) >= delimits.size) {
- f_status allocation_status = f_status_initialize;
+ f_status allocation_status = f_none;
f_resize_string_lengths(allocation_status, delimits, delimits.size + (slash_count / 2) + f_fss_default_allocation_step);
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_bool quoted = f_false;
f_string_location buffer_position = f_string_location_initialize;
f_string_length start_position = f_string_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
+ f_string_length pre_allocate_size = 0;
fl_macro_fss_skip_past_delimit_placeholders(object, (*input))
if (buffer == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_autochar quoted = f_eos;
f_string_location buffer_position = f_string_location_initialize;
- f_string_length start_position = f_string_length_initialize;
- f_string_length pre_allocate_size = f_string_length_initialize;
+ f_string_length start_position = 0;
+ f_string_length pre_allocate_size = 0;
// add an additional 1 to ensure that there is room for the terminating newline.
pre_allocate_size = buffer->used + (content.used) + 1 + f_fss_default_allocation_step;
#ifndef _di_fl_macro_fss_apply_delimit_placeholders_
#define fl_macro_fss_apply_delimit_placeholders(buffer, delimits) \
{ \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
\
f_string_length i = 0; \
\
#ifndef _di_fl_macro_fss_object_return_on_overflow_
#define fl_macro_fss_object_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.stop = buffer.used - 1; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.stop = input.stop; \
#ifndef _di_fl_macro_fss_object_delimited_return_on_overflow_
#define fl_macro_fss_object_delimited_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
found.stop = buffer.used - 1; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
#ifndef _di_fl_macro_fss_content_return_on_overflow_
#define fl_macro_fss_content_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.array[found.used].stop = buffer.used - 1; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
#ifndef _di_fl_macro_fss_content_delimited_return_on_overflow_
#define fl_macro_fss_content_delimited_return_on_overflow(buffer, input, found, delimits, eos_status, stop_status) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
found.array[found.used].stop = buffer.used - 1; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
#ifndef _di_fl_macro_fss_content_return_on_overflow_reset_
#define fl_macro_fss_content_return_on_overflow_reset(buffer, input, found, delimits, eos_status, stop_status, set_stop) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
input.start = set_stop; \
found.array[found.used].stop = set_stop; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
input.start = set_stop; \
#ifndef _di_fl_macro_fss_content_delimited_return_on_overflow_reset_
#define fl_macro_fss_content_delimited_return_on_overflow_reset(buffer, input, found, delimits, eos_status, stop_status, set_stop) \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
found.array[found.used].stop = set_stop; \
return eos_status; \
} else if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
#ifndef _di_fl_macro_fss_allocate_content_if_necessary_
#define fl_macro_fss_allocate_content_if_necessary(content, delimits) \
if (content.used >= content.size) { \
- f_status status = f_status_initialize; \
+ f_status status = f_none; \
\
f_resize_fss_content(status, content, content.size + f_fss_default_allocation_step); \
if (f_error_is_error(status)) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
return status; \
while (buffer.string[input.start] != f_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
return eos_status; \
} \
if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
return stop_status; \
while (buffer.string[input.start] != f_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
return eos_status; \
} \
if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
while (buffer.string[input.start] != f_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
return eos_status; \
} \
if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_delete_string_lengths(allocation_status, delimits); \
\
found.array[found.used].stop = input.stop; \
while (buffer.string[input.start] != f_eol) { \
++input.start; \
if (input.start >= buffer.used) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
return eos_status; \
} \
if (input.start > input.stop) { \
- f_status allocation_status = f_status_initialize; \
+ f_status allocation_status = f_none; \
f_string_length i = 0; \
\
while (i < delimits.used) { \
if (serialized == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
if (serialized->used + value.used + 1 >= serialized->size) {
if (locations == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_array_length i = 0;
f_array_length start = 0;
if (location == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_array_length i = 0;
f_array_length current = 0;
f_string_length size = position.stop - position.start + 1;
if (size > 0) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_dynamic_string(status, (*results), size);
if (length2 <= 0) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_string_length i1 = f_string_length_initialize;
- f_string_length i2 = f_string_length_initialize;
+ f_string_length i1 = 0;
+ f_string_length i2 = 0;
f_string_length stop1 = length1;
f_string_length stop2 = length2;
if (string2.used <= 0) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_1_parameter_checking_
- f_string_length i1 = f_string_length_initialize;
- f_string_length i2 = f_string_length_initialize;
+ f_string_length i1 = 0;
+ f_string_length i2 = 0;
f_string_length stop1 = string1.used;
f_string_length stop2 = string2.used;
if (data == 0) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_2_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
// switch to the appropriate terminal color mode
{
#endif // _di_level_2_parameter_checking_
// create a string array that is compatible with execv() calls
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_autochar **arguments_array = 0;
f_string last_slash = f_string_initialize;
status = f_new_array((void **) & arguments_array, sizeof(f_autochar **), arguments.used + 2);
if (f_error_is_error(status)) {
- f_status tmp_status = f_status_initialize;
+ f_status tmp_status = f_none;
f_delete_string(tmp_status, program_name, name_size);
return status;
}
{
- f_string_length counter = f_string_length_initialize;
+ f_string_length counter = 0;
arguments_array[0] = program_name;
counter++;
#endif // _di_level_2_parameter_checking_
// create a string array that is compatible with execv() calls
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_autochar **arguments_array = 0;
status = f_new_array((void **) & arguments_array, sizeof(f_autochar **), arguments.used + 2);
if (f_error_is_error(status)) return status;
{
- f_string_length counter = f_string_length_initialize;
+ f_string_length counter = 0;
arguments_array[0] = program_name;
counter++;
if (contents == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_2_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length initial_used = objects->used;
f_bool found_data = f_false;
objects->used++;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
found_data = f_true;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
if (contents == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_2_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length initial_used = objects->used;
f_bool found_data = f_false;
objects->used++;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
found_data = f_true;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
if (contents == f_null) return f_error_set_error(f_invalid_parameter);
#endif // _di_level_2_parameter_checking_
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length initial_used = objects->used;
f_bool found_data = f_false;
objects->used++;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
found_data = f_true;
if (contents->array[contents->used].used >= contents->array[contents->used].size) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_resize_fss_content(status, contents->array[contents->used], contents->array[contents->used].size + f_fss_default_allocation_step);
#ifndef _di_firewall_main_
f_return_status firewall_main(const f_s_int argc, const f_string argv[], firewall_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, firewall_total_parameters, &data->remaining);
show_mangle = f_false;
show_ports = f_false;
- f_string_length counter = f_string_length_initialize;
+ f_string_length counter = 0;
for (; counter < data->remaining.used; counter++) {
if (strncmp("nat", argv[data->remaining.array[counter]], 4) != 0) {
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: Failed to perform requested %s operation:", firewall_program_name);
fprintf(f_standard_error, " ");
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
fl_print_color_code(f_standard_error, data->context.error);
// remove "lo" (loopback) from the device listing
{
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
for (; i < data->devices.used; i++) {
if (fl_compare_strings((f_string) firewall_device_loop, data->devices.array[i].string, firewall_device_loop_length + 1, data->devices.array[i].used) == f_equal_to) {
}
{
- f_array_length i = f_array_length_initialize;
- f_string_length length = f_string_length_initialize;
+ f_array_length i = 0;
+ f_string_length length = 0;
for (; i < local.chain_objects.used; i++) {
length = local.chain_objects.array[i].stop - local.chain_objects.array[i].start + 1;
#ifndef _di_firewall_delete_data_
f_return_status firewall_delete_data(firewall_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < firewall_total_parameters) {
#ifndef _di_firewall_perform_commands_
f_return_status firewall_perform_commands(const firewall_local_data local, const firewall_data data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
f_dynamic_string argument = f_dynamic_string_initialize;
f_dynamic_strings arguments = f_dynamic_strings_initialize;
f_s_int results = 0;
- f_string_length length = f_string_length_initialize;
+ f_string_length length = 0;
f_bool invalid = f_false;
f_bool is_ip_list = f_false;
f_dynamic_string ip_list = f_dynamic_string_initialize;
// last up is the "rule"
if ((!is_ip_list && local.rule_contents.array[i].used > 0) || (is_ip_list && local.rule_contents.array[i].used > 1)) {
- f_string_length subcounter = f_string_length_initialize;
+ f_string_length subcounter = 0;
if (is_ip_list) {
// skip past the direction
status = f_error_set_error(status);
} else {
- f_string_length buffer_counter = f_string_length_initialize;
- f_string_length ip_length = f_string_length_initialize;
+ f_string_length buffer_counter = 0;
+ f_string_length ip_length = 0;
f_dynamic_string ip_argument = f_dynamic_string_initialize;
f_dynamic_string ip_list_action = f_dynamic_string_initialize;
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "ERROR: Failed to perform requested %s operation:", firewall_program_name);
fprintf(f_standard_error, " ");
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
fl_print_color_code(f_standard_error, data.context.error);
fl_print_color_line(f_standard_error, data.context.error, data.context.reset, "ERROR: Failed to perform requested %s operation:", firewall_program_name);
fprintf(f_standard_error, " ");
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
fl_print_color_code(f_standard_error, data.context.error);
f_bool new_chain = f_false;
f_s_int results = 0;
- f_array_length i = f_array_length_initialize;
- f_array_length j = f_array_length_initialize;
+ f_array_length i = 0;
+ f_array_length j = 0;
- f_string_length length = f_string_length_initialize;
+ f_string_length length = 0;
f_string_location location = f_string_location_initialize;
f_dynamic_strings arguments = f_dynamic_strings_initialize;
fl_print_color_line(f_standard_error, data->context.error, data->context.reset, "ERROR: Failed to perform requested %s operation:", firewall_program_name);
fprintf(f_standard_error, " ");
- f_string_length i = f_string_length_initialize;
+ f_string_length i = 0;
fl_print_color_code(f_standard_error, data->context.error);
#ifndef _di_firewall_delete_local_data_
f_return_status firewall_delete_local_data(firewall_local_data *local) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
local->is_global = f_true;
local->is_main = f_false;
f_return_status fss_basic_list_read_main_process_file(const f_array_length argc, const f_string argv[], fss_basic_list_read_data *data, const f_string filename, const f_string_length target) __attribute__((visibility ("internal")));
f_return_status fss_basic_list_read_main(const f_array_length argc, const f_string argv[], fss_basic_list_read_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_basic_list_read_total_parameters, &data->remaining);
} else if (data->parameters[fss_basic_list_read_parameter_version].result == f_console_result_found) {
fss_basic_list_read_print_version(*data);
} else if (data->remaining.used > 0 || data->process_pipe) {
- f_string_length counter = f_string_length_initialize;
- f_string_length target = f_string_length_initialize;
+ f_string_length counter = 0;
+ f_string_length target = 0;
f_string_length original_size = data->file_position.total_elements;
if (data->parameters[fss_basic_list_read_parameter_count].result == f_console_result_additional) {
}
f_return_status fss_basic_list_read_main_process_file(const f_array_length argc, const f_string argv[], fss_basic_list_read_data *data, const f_string filename, const f_string_length target) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
- f_string_length current = f_string_length_initialize;
- f_string_length found = f_string_length_initialize;
+ f_string_length current = 0;
+ f_string_length found = 0;
{
f_string_location input = f_string_location_initialize;
} else {
current = 0;
- f_string_length total = f_string_length_initialize;
- f_string_length name_length = f_string_length_initialize;
- f_string_length argv_length = f_string_length_initialize;
+ f_string_length total = 0;
+ f_string_length name_length = 0;
+ f_string_length argv_length = 0;
if (data->parameters[fss_basic_list_read_parameter_name].result == f_console_result_additional) {
argv_length = strlen(argv[data->parameters[fss_basic_list_read_parameter_name].additional.array[0]]);
#ifndef _di_fss_basic_list_read_delete_data_
f_return_status fss_basic_list_read_delete_data(fss_basic_list_read_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_basic_list_read_total_parameters) {
#ifndef _di_fss_basic_list_write_main_
f_return_status fss_basic_list_write_main(const f_array_length argc, const f_string argv[], fss_basic_list_write_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_basic_list_write_total_parameters, &data->remaining);
} else if (data->parameters[fss_basic_list_write_parameter_version].result == f_console_result_found) {
fss_basic_list_write_print_version(*data);
} else {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
f_bool object = (data->parameters[fss_basic_list_write_parameter_object].result == f_console_result_found);
f_dynamic_string buffer = f_dynamic_string_initialize;
#ifndef _di_fss_basic_list_write_delete_data_
f_return_status fss_basic_list_write_delete_data(fss_basic_list_write_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_basic_list_write_total_parameters) {
f_return_status fss_basic_read_main_process_file(const f_array_length argc, const f_string argv[], fss_basic_read_data *data, const f_string filename, const f_string_length target) __attribute__((visibility("internal")));
f_return_status fss_basic_read_main(const f_array_length argc, const f_string argv[], fss_basic_read_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_basic_read_total_parameters, &data->remaining);
} else if (data->parameters[fss_basic_read_parameter_version].result == f_console_result_found) {
fss_basic_read_print_version(*data);
} else if (data->remaining.used > 0 || data->process_pipe) {
- f_string_length counter = f_string_length_initialize;
- f_string_length target = f_string_length_initialize;
+ f_string_length counter = 0;
+ f_string_length target = 0;
f_string_length original_size = data->file_position.total_elements;
if (data->parameters[fss_basic_read_parameter_count].result == f_console_result_additional) {
}
f_return_status fss_basic_read_main_process_file(const f_array_length argc, const f_string argv[], fss_basic_read_data *data, const f_string filename, const f_string_length target) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
- f_string_length current = f_string_length_initialize;
- f_string_length found = f_string_length_initialize;
+ f_string_length current = 0;
+ f_string_length found = 0;
{
f_string_location input = f_string_location_initialize;
} else {
current = 0;
- f_string_length total = f_string_length_initialize;
- f_string_length name_length = f_string_length_initialize;
- f_string_length argv_length = f_string_length_initialize;
+ f_string_length total = 0;
+ f_string_length name_length = 0;
+ f_string_length argv_length = 0;
if (data->parameters[fss_basic_read_parameter_name].result == f_console_result_additional) {
argv_length = strlen(argv[data->parameters[fss_basic_read_parameter_name].additional.array[0]]);
#ifndef _di_fss_basic_read_delete_data_
f_return_status fss_basic_read_delete_data(fss_basic_read_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_basic_read_total_parameters) {
#ifndef _di_fss_basic_write_main_
f_return_status fss_basic_write_main(const f_array_length argc, const f_string argv[], fss_basic_write_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_basic_write_total_parameters, &data->remaining);
} else if (data->parameters[fss_basic_write_parameter_version].result == f_console_result_found) {
fss_basic_write_print_version(*data);
} else {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
f_bool object = (data->parameters[fss_basic_write_parameter_object].result == f_console_result_found);
f_dynamic_string buffer = f_dynamic_string_initialize;
#ifndef _di_fss_basic_write_delete_data_
f_return_status fss_basic_write_delete_data(fss_basic_write_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_basic_write_total_parameters) {
f_return_status fss_extended_read_main_process_file(const f_array_length argc, const f_string argv[], fss_extended_read_data *data, const f_string filename, const f_string_length target, const f_string_length select) __attribute__((visibility("internal")));
f_return_status fss_extended_read_main(const f_array_length argc, const f_string argv[], fss_extended_read_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_extended_read_total_parameters, &data->remaining);
} else if (data->parameters[fss_extended_read_parameter_version].result == f_console_result_found) {
fss_extended_read_print_version(*data);
} else if (data->remaining.used > 0 || data->process_pipe) {
- f_string_length counter = f_string_length_initialize;
- f_string_length target = f_string_length_initialize;
- f_string_length select = f_string_length_initialize;
+ f_string_length counter = 0;
+ f_string_length target = 0;
+ f_string_length select = 0;
f_string_length original_size = data->file_position.total_elements;
if (data->parameters[fss_extended_read_parameter_count].result == f_console_result_additional) {
}
f_return_status fss_extended_read_main_process_file(const f_array_length argc, const f_string argv[], fss_extended_read_data *data, const f_string filename, const f_string_length target, const f_string_length select) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
- f_string_length current = f_string_length_initialize;
- f_string_length found = f_string_length_initialize;
+ f_string_length current = 0;
+ f_string_length found = 0;
{
f_string_location input = f_string_location_initialize;
} else {
current = 0;
- f_string_length total = f_string_length_initialize;
- f_string_length name_length = f_string_length_initialize;
- f_string_length argv_length = f_string_length_initialize;
+ f_string_length total = 0;
+ f_string_length name_length = 0;
+ f_string_length argv_length = 0;
if (data->parameters[fss_extended_read_parameter_name].result == f_console_result_additional) {
argv_length = strlen(argv[data->parameters[fss_extended_read_parameter_name].additional.array[0]]);
#ifndef _di_fss_extended_read_delete_data_
f_return_status fss_extended_read_delete_data(fss_extended_read_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_extended_read_total_parameters) {
#ifndef _di_fss_extended_write_main_
f_return_status fss_extended_write_main(const f_array_length argc, const f_string argv[], fss_extended_write_data *data) {
- f_status status = f_status_initialize;
- f_status status2 = f_status_initialize;
+ f_status status = f_none;
+ f_status status2 = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_extended_write_total_parameters, &data->remaining);
} else if (data->parameters[fss_extended_write_parameter_version].result == f_console_result_found) {
fss_extended_write_print_version(*data);
} else {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
f_bool object = (data->parameters[fss_extended_write_parameter_object].result == f_console_result_found);
f_dynamic_string buffer = f_dynamic_string_initialize;
#ifndef _di_fss_extended_write_delete_data_
f_return_status fss_extended_write_delete_data(fss_extended_write_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_extended_write_total_parameters) {
#ifndef _di_fss_return_code_main_
f_return_status fss_return_code_main(const f_array_length argc, const f_string argv[], fss_return_code_data *data) {
- f_status status = f_status_initialize;
- f_status allocation_status = f_status_initialize;
+ f_status status = f_none;
+ f_status allocation_status = f_none;
status = fl_process_parameters(argc, argv, data->parameters, fss_return_code_total_parameters, &data->remaining);
} else if (data->parameters[fss_return_code_parameter_version].result == f_console_result_found) {
fss_return_code_print_version(*data);
} else if (data->parameters[fss_return_code_parameter_is_error].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
fss_return_code_delete_data(data);
return f_false;
} else if (data->parameters[fss_return_code_parameter_is_warning].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
fss_return_code_delete_data(data);
return f_false;
} else if (data->parameters[fss_return_code_parameter_is_fine].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
fss_return_code_delete_data(data);
return f_false;
} else if (data->remaining.used > 0 || data->process_pipe) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
if (data->process_pipe) {
// TODO: how should this be done?
#ifndef _di_fss_return_code_delete_data_
f_return_status fss_return_code_delete_data(fss_return_code_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < fss_return_code_total_parameters) {
#ifndef _di_return_code_main_
f_return_status return_code_main(const f_array_length argc, const f_string argv[], return_code_data *data) {
- f_status status = f_status_initialize;
- f_status allocation_status = f_status_initialize;
+ f_status status = f_none;
+ f_status allocation_status = f_none;
status = fl_process_parameters(argc, argv, data->parameters, return_code_total_parameters, &data->remaining);
} else if (data->parameters[return_code_parameter_version].result == f_console_result_found) {
return_code_print_version(*data);
} else if (data->parameters[return_code_parameter_is_error].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
return_code_delete_data(data);
return f_false;
} else if (data->parameters[return_code_parameter_is_warning].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
return_code_delete_data(data);
return f_false;
} else if (data->parameters[return_code_parameter_is_fine].result == f_console_result_found && data->remaining.used > 0) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
- f_status code = f_status_initialize;
+ f_status code = f_none;
for (; counter < data->remaining.used; counter++) {
code = (f_status) atoll(argv[data->remaining.array[counter]]);
return_code_delete_data(data);
return f_false;
} else if (data->remaining.used > 0 || data->process_pipe) {
- f_array_length counter = f_array_length_initialize;
+ f_array_length counter = 0;
if (data->process_pipe) {
// TODO: how should this be done?
#ifndef _di_return_code_delete_data_
f_return_status return_code_delete_data(return_code_data *data) {
- f_status status = f_status_initialize;
+ f_status status = f_none;
f_string_length i = 0;
while (i < return_code_total_parameters) {