]> Kevux Git Server - kevux-tools/commitdiff
Update: To FLL structure changes.
authorKevin Day <Kevin@kevux.org>
Mon, 1 Dec 2025 00:23:31 +0000 (18:23 -0600)
committerKevin Day <Kevin@kevux.org>
Mon, 1 Dec 2025 00:23:31 +0000 (18:23 -0600)
Apply similar practices to the structures.

sources/c/program/kevux/tools/tacocat/main/common/type.h

index 22f1034aad572715d13a468388479e156df73776..5a94a4c746fe93e566e513e26480b9c45510ad10 100644 (file)
@@ -267,23 +267,27 @@ extern "C" {
  * An array of socket sets.
  *
  * array: The array of socket sets.
- * size:  Total amount of allocated space.
  * used:  Total number of allocated spaces used.
+ * size:  Total amount of allocated space.
  */
 #ifndef _di_kt_tacocat_socket_sets_t_
   typedef struct {
     kt_tacocat_socket_set_t *array;
 
-    f_number_unsigned_t size;
     f_number_unsigned_t used;
+    f_number_unsigned_t size;
   } kt_tacocat_socket_sets_t;
 
   #define kt_tacocat_socket_sets_t_initialize { 0, 0, 0 }
 
-  #define macro_kt_tacocat_socket_sets_t_initialize_1(array, size, used) { array, size, used }
-  #define macro_kt_tacocat_socket_sets_t_initialize_2(array, length) { array, length, length }
+  #define macro_kt_tacocat_socket_sets_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value }
+  #define macro_kt_tacocat_socket_sets_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value }
 
-  #define macro_kt_tacocat_socket_sets_t_clear(socket_set) macro_f_string_statics_t_clear(socket_set)
+  #define macro_kt_tacocat_socket_sets_t_clear(socket_set) { \
+    socket_set.array = 0; \
+    socket_set.used = 0; \
+    socket_set.size = 0; \
+  }
 #endif // _di_kt_tacocat_socket_sets_t_
 
 /**