]> Kevux Git Server - fll/commitdiff
Update: remove *_initialize for specific types
authorKevin Day <kevin@kevux.org>
Sat, 9 Jun 2012 04:49:36 +0000 (23:49 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 9 Jun 2012 04:49:36 +0000 (23:49 -0500)
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.

31 files changed:
level_0/f_fss/c/fss.h
level_0/f_memory/c/memory.h
level_0/f_strings/c/strings.h
level_0/f_types/c/types.h
level_0/f_types/c/types_array.h
level_1/fl_colors/c/colors.c
level_1/fl_console/c/console.c
level_1/fl_directory/c/directory.c
level_1/fl_file/c/file.c
level_1/fl_fss/c/fss.c
level_1/fl_fss/c/fss_basic.c
level_1/fl_fss/c/fss_basic_list.c
level_1/fl_fss/c/fss_extended.c
level_1/fl_fss/c/fss_macro.h
level_1/fl_serialized/c/serialized.c
level_1/fl_strings/c/strings.c
level_2/fll_colors/c/colors.c
level_2/fll_execute/c/execute.c
level_2/fll_fss/c/fss_basic.c
level_2/fll_fss/c/fss_basic_list.c
level_2/fll_fss/c/fss_extended.c
level_3/firewall/c/firewall.c
level_3/firewall/c/private-firewall.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_basic_write/c/fss_basic_write.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_return_code/c/fss_return_code.c
level_3/return_code/c/return_code.c

index 0e8ab32ef551ed5624c321b8f88fc15bd9d12629..04e0983d3fba0c859fd674c607e2c11ad21c336d 100644 (file)
@@ -114,7 +114,7 @@ enum {
     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)
@@ -155,7 +155,7 @@ enum {
     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)
@@ -181,7 +181,7 @@ enum {
     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)
@@ -204,7 +204,7 @@ enum {
     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)
index 855af54b88b0d1df595a439d6b6e294985221a68..2aab097972d941210dd11b1c4c2068703aba154e 100644 (file)
@@ -161,7 +161,7 @@ extern "C"{
       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_
index b7382da2bbbf51edcaedb867f928aa902a547739..51da7addf23f06015ff83908c8f8d57ae3a24a0a 100644 (file)
@@ -88,7 +88,6 @@ extern "C"{
 #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)
@@ -109,7 +108,7 @@ extern "C"{
     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)
@@ -153,7 +152,7 @@ extern "C"{
     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)
@@ -177,7 +176,7 @@ extern "C"{
     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); \
@@ -216,7 +215,7 @@ extern "C"{
     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; \
index 22439099e82f04a0e9c88448b95d791c6a903b3d..49653414df1a58ae7d3491d0b193958f86764853 100644 (file)
@@ -111,8 +111,6 @@ extern "C"{
 #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
@@ -155,10 +153,6 @@ extern "C"{
   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
index c44cb26ed4379f25259a82037d7538f821575860..c800518f5c40b91361ad6614ccf3458c8e6ecff2 100644 (file)
@@ -29,7 +29,7 @@ extern "C"{
     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)
index 5c8e8a9c72fc9559761c9ce492b409251411288b..84876c7d1d2138db9f608a7b3f7b2c89955948a8 100644 (file)
@@ -54,7 +54,7 @@ extern "C"{
 
     // 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
 
index e272b88eeb6898e327d84d7a24fb72def535a638..68b18f2439d6e58a0f013bbfde0a55859d08487a 100644 (file)
@@ -16,7 +16,7 @@ extern "C"{
       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;
 
@@ -61,7 +61,7 @@ extern "C"{
 
                   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)) {
@@ -82,7 +82,7 @@ extern "C"{
 
                   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);
 
@@ -114,7 +114,7 @@ extern "C"{
 
                   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);
 
@@ -136,7 +136,7 @@ extern "C"{
 
                   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);
 
@@ -164,7 +164,7 @@ extern "C"{
           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);
@@ -190,7 +190,7 @@ extern "C"{
 
         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);
@@ -214,7 +214,7 @@ extern "C"{
             }
           } 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);
 
@@ -240,7 +240,7 @@ extern "C"{
     }
 
     {
-      f_status allocation_status = f_status_initialize;
+      f_status allocation_status = f_none;
       f_delete_string_lengths(allocation_status, extra_initiator);
     }
 
index 8e444691956d758780c1523ae218896d2ff4c578..96b664788eb954a37899247313733952a47a2be2 100644 (file)
@@ -21,8 +21,8 @@ extern "C"{
     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);
 
index b8ec5234841f6d7b47ed6109cdccf64aaec78a3f..1f27bf65ee841fbe8d4ce1649c116539cebc1c73 100644 (file)
@@ -22,8 +22,8 @@ extern "C"{
 
     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
@@ -73,8 +73,8 @@ extern "C"{
 
     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;
 
@@ -111,7 +111,7 @@ extern "C"{
   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);
@@ -132,7 +132,7 @@ extern "C"{
 
     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);
index 2e39dfbbff78fd654802bd46e664beb0878537c1..2f8d7b3e9ab23f90242b52c1b82b0fce7c3cba39 100644 (file)
@@ -109,7 +109,7 @@ extern "C"{
 
     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;
 
@@ -152,8 +152,8 @@ f_return_status fl_fss_shift_delimiters(f_dynamic_string *buffer, const f_string
     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;
 
index dbe0ccdb192d111840871c4dd2494ce4268231a2..c5f1c6aac84afe2dfc0a00f464552afbab5bc53f 100644 (file)
@@ -77,7 +77,7 @@ extern "C"{
 
       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);
 
@@ -145,7 +145,7 @@ extern "C"{
 
             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);
 
@@ -181,7 +181,7 @@ extern "C"{
                 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);
                 }
@@ -204,7 +204,7 @@ extern "C"{
               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);
 
@@ -251,7 +251,7 @@ extern "C"{
               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);
               }
@@ -266,7 +266,7 @@ extern "C"{
           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);
           }
@@ -289,7 +289,7 @@ extern "C"{
     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);
     }
@@ -350,12 +350,12 @@ extern "C"{
       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))
 
@@ -554,11 +554,11 @@ extern "C"{
       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;
index c7813731555260e74f6ad13fc1c2375f1b799182..7b6bab0edce6cdd46ef10fc9ed8ab7cdd4cb2b91 100644 (file)
@@ -84,7 +84,7 @@ extern "C"{
             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);
 
@@ -257,7 +257,7 @@ extern "C"{
             }
 
             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);
 
@@ -351,12 +351,12 @@ extern "C"{
       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))
 
@@ -473,13 +473,13 @@ extern "C"{
       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))
 
index 35d65f9e8ff0e03712f279a329c9197ee32305b4..1f646d13c5e7ee99d95a237a54b52c815ab4ad59 100644 (file)
@@ -77,7 +77,7 @@ extern "C"{
 
       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);
 
@@ -144,7 +144,7 @@ extern "C"{
             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);
 
@@ -198,7 +198,7 @@ extern "C"{
               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);
 
@@ -301,13 +301,13 @@ extern "C"{
       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) {
@@ -317,7 +317,7 @@ extern "C"{
         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;
@@ -368,7 +368,7 @@ extern "C"{
 
         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);
 
@@ -436,7 +436,7 @@ extern "C"{
 
               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);
 
@@ -489,7 +489,7 @@ extern "C"{
                 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);
 
@@ -608,12 +608,12 @@ extern "C"{
       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))
 
@@ -828,12 +828,12 @@ extern "C"{
       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;
index 68f9584f9d725e7a24b0d462a04c5e06e8ebb33a..9631e32dab858d6075a8d2203f0d41209a1213b7 100644 (file)
@@ -17,7 +17,7 @@ extern "C"{
 #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; \
     \
@@ -65,13 +65,13 @@ extern "C"{
 #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; \
@@ -82,7 +82,7 @@ extern "C"{
 #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) { \
@@ -94,7 +94,7 @@ extern "C"{
       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) { \
@@ -111,13 +111,13 @@ extern "C"{
 #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; \
@@ -128,7 +128,7 @@ extern "C"{
 #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) { \
@@ -140,7 +140,7 @@ extern "C"{
       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) { \
@@ -157,14 +157,14 @@ extern "C"{
 #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; \
@@ -176,7 +176,7 @@ extern "C"{
 #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) { \
@@ -189,7 +189,7 @@ extern "C"{
       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) { \
@@ -207,11 +207,11 @@ extern "C"{
 #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; \
@@ -224,13 +224,13 @@ extern "C"{
     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; \
@@ -243,7 +243,7 @@ extern "C"{
     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) { \
@@ -255,7 +255,7 @@ extern "C"{
         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) { \
@@ -274,14 +274,14 @@ extern "C"{
     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; \
@@ -295,7 +295,7 @@ extern "C"{
     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) { \
@@ -308,7 +308,7 @@ extern "C"{
         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) { \
index 5c50c59b99366d522e8ce981ea657d4d36b4fbd7..17c75dbef297b6b73b6e6c1a535869c82010f58a 100644 (file)
@@ -16,7 +16,7 @@ extern "C" {
       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) {
@@ -44,7 +44,7 @@ extern "C" {
       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;
@@ -83,7 +83,7 @@ extern "C" {
       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;
index bf7ac2c7017ce92524bdbf4c3a8f0ee22da045d9..50fd977972857b9f093d8172a8f0413255d14bae 100644 (file)
@@ -24,7 +24,7 @@ extern "C"{
     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);
 
@@ -116,8 +116,8 @@ extern "C"{
       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;
@@ -150,8 +150,8 @@ extern "C"{
       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;
index e9b2585a5ab8a9cbf2f0d62791a3cd7b05c67c5a..d6287b63645211ca56109bdde7db6e855db8246b 100644 (file)
@@ -16,7 +16,7 @@ extern "C"{
       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
     {
index 89e42279a59b1fdd696c3945ec0bd14e6bb66e5b..0ebc98c6797a8bfe35c418afd02f485d9f3162b5 100644 (file)
@@ -23,7 +23,7 @@ extern "C"{
     #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;
@@ -50,14 +50,14 @@ extern "C"{
     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++;
@@ -108,7 +108,7 @@ extern "C"{
     #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);
@@ -116,7 +116,7 @@ extern "C"{
     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++;
index f1ee7c25a11c3b7ffa3ddb03bffdc1f6f1a2027a..2325f7e86b39e81d0e36c8ba0c285dbb079771db 100644 (file)
@@ -18,7 +18,7 @@ extern "C"{
       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;
 
@@ -45,7 +45,7 @@ extern "C"{
             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);
 
@@ -83,7 +83,7 @@ extern "C"{
           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);
 
index 2858f9fda73ce577611a527f6d3118a7dc840f98..402bee142720a20d7ff8a1cef5eb11718328b385 100644 (file)
@@ -18,7 +18,7 @@ extern "C"{
       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;
 
@@ -45,7 +45,7 @@ extern "C"{
             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);
 
@@ -83,7 +83,7 @@ extern "C"{
           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);
 
index 1f8bdb65a18d390cb243a77e8f29f950dccece4b..db5ee004eff7f18e315416f39d17d41e5c504a4a 100644 (file)
@@ -18,7 +18,7 @@ extern "C"{
       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;
 
@@ -45,7 +45,7 @@ extern "C"{
             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);
 
@@ -83,7 +83,7 @@ extern "C"{
           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);
 
index b7b06aa967f00e411376340d1535831d64246ed5..dda945d884fc9871be42b2828dd7175d1779d650 100644 (file)
@@ -108,8 +108,8 @@ extern "C"{
 
 #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);
 
@@ -224,7 +224,7 @@ extern "C"{
             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) {
@@ -347,7 +347,7 @@ extern "C"{
               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);
 
@@ -404,7 +404,7 @@ extern "C"{
 
         // 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) {
@@ -431,8 +431,8 @@ extern "C"{
           }
 
           {
-            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;
@@ -673,7 +673,7 @@ extern "C"{
 
 #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) {
index 3ba6f5ad045ccb915154bec298f3a48718f9f292..24bf28d7299f0ac9bb8340def7d41ac5907997a8 100644 (file)
@@ -6,15 +6,15 @@
 
 #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;
index 78d200e7f5501a075057d7f44a03fb43932ad587..89b80e7376456a480fef87ab4c05034c857eb59c 100644 (file)
@@ -132,8 +132,8 @@ extern "C"{
   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);
 
@@ -176,8 +176,8 @@ extern "C"{
     } 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) {
@@ -310,11 +310,11 @@ extern "C"{
   }
 
   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;
@@ -444,9 +444,9 @@ extern "C"{
       } 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]]);
@@ -572,7 +572,7 @@ extern "C"{
 
 #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) {
index a324e698a129aaf62e8e014dfb5c87571af84975..14af7ceb73af31d4ce7e3b93dc4e3ab4c1206f51 100644 (file)
@@ -104,8 +104,8 @@ extern "C"{
 
 #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);
 
@@ -148,7 +148,7 @@ extern "C"{
     } 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;
@@ -282,7 +282,7 @@ extern "C"{
 
 #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) {
index 091f05c718a1b796b8c5208eff4114faccad53d2..dc5da71694ef9cfae1446511dccd2ac3f6bd7741 100644 (file)
@@ -118,8 +118,8 @@ extern "C"{
   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);
 
@@ -162,8 +162,8 @@ extern "C"{
     } 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) {
@@ -302,11 +302,11 @@ extern "C"{
   }
 
   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;
@@ -385,9 +385,9 @@ extern "C"{
       } 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]]);
@@ -463,7 +463,7 @@ extern "C"{
 
 #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) {
index 82ee76363f400f544dd1afa469ac1c0dbbdfd785..83aabfe017082e9d3378f82b48c8b71695f93c64 100644 (file)
@@ -104,8 +104,8 @@ extern "C"{
 
 #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);
 
@@ -148,7 +148,7 @@ extern "C"{
     } 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;
@@ -282,7 +282,7 @@ extern "C"{
 
 #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) {
index 61fd032b27f7d0bfaca04b9fc1562bde1d2116fc..159e9e3ad826aba52d2a6693cace0bc2a2cc2a84 100644 (file)
@@ -125,8 +125,8 @@ extern "C"{
   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);
 
@@ -169,9 +169,9 @@ extern "C"{
     } 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) {
@@ -316,11 +316,11 @@ extern "C"{
   }
 
   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;
@@ -399,9 +399,9 @@ extern "C"{
       } 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]]);
@@ -477,7 +477,7 @@ extern "C"{
 
 #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) {
index 01398475a031f7f70cbc43a1b6613a18fde6ce2a..9c6a3e4bc20b06985c6b2a5be975706aa50068af 100644 (file)
@@ -111,8 +111,8 @@ extern "C"{
 
 #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);
 
@@ -155,7 +155,7 @@ extern "C"{
     } 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;
@@ -327,7 +327,7 @@ extern "C"{
 
 #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) {
index 1bbccfb296f2123eb7e106718f310aa2da859a44..1296892ca1cf233e44737c167e62089a49e4d6f7 100644 (file)
@@ -117,8 +117,8 @@ extern "C"{
 
 #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);
 
@@ -161,9 +161,9 @@ extern "C"{
     } 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]]);
@@ -184,9 +184,9 @@ extern "C"{
       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]]);
@@ -207,9 +207,9 @@ extern "C"{
       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]]);
@@ -230,7 +230,7 @@ extern "C"{
       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?
@@ -258,7 +258,7 @@ extern "C"{
 
 #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) {
index 04defb3e90047b9830144fc40959d4217038c9b2..58f0ea50cb15226f8f66c8bb73ca79d8486320fe 100644 (file)
@@ -117,8 +117,8 @@ extern "C"{
 
 #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);
 
@@ -161,9 +161,9 @@ extern "C"{
     } 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]]);
@@ -184,9 +184,9 @@ extern "C"{
       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]]);
@@ -207,9 +207,9 @@ extern "C"{
       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]]);
@@ -230,7 +230,7 @@ extern "C"{
       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?
@@ -258,7 +258,7 @@ extern "C"{
 
 #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) {