* 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_
/**