From: Kevin Day Date: Mon, 1 Dec 2025 00:23:31 +0000 (-0600) Subject: Update: To FLL structure changes. X-Git-Tag: 0.7.4~21 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=654ad3d2c9a83c0ff2801f7b4c8a7ead94ba0464;p=kevux-tools Update: To FLL structure changes. Apply similar practices to the structures. --- diff --git a/sources/c/program/kevux/tools/tacocat/main/common/type.h b/sources/c/program/kevux/tools/tacocat/main/common/type.h index 22f1034..5a94a4c 100644 --- a/sources/c/program/kevux/tools/tacocat/main/common/type.h +++ b/sources/c/program/kevux/tools/tacocat/main/common/type.h @@ -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_ /**