*
* Properties:
* - array: An array of Entry Item Actions.
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_entry_actions_t_
typedef struct {
controller_entry_action_t *array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
} controller_entry_actions_t;
- #define controller_entry_actions_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_entry_actions_t_initialize { 0, 0, 0 }
#endif // _di_controller_entry_actions_t_
/**
*
* Properties:
* - array: An array of Entry Items.
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_entry_items_t_
typedef struct {
controller_entry_item_t *array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
} controller_entry_items_t;
- #define controller_entry_items_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_entry_items_t_initialize { 0, 0, 0 }
- #define macro_controller_entry_items_t_clear(items) \
+ #define macro_controller_entry_items_t_clear(items) { \
items.array = 0; \
+ items.used = 0; \
items.size = 0; \
- items.used = 0;
+ }
#endif // _di_controller_entry_items_t_
/**
*
* Properties:
* - array: An array of Instances pointers (note the double-pointer).
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_instances_t_
struct controller_instances_t_ {
controller_instance_t **array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
};
- #define controller_instances_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_instances_t_initialize { 0, 0, 0 }
#endif // _di_controller_instances_t_
/**
*
* Properties:
* - array: An array of Rule Actions.
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_rule_actions_t_
typedef struct {
controller_rule_action_t *array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
} controller_rule_actions_t;
- #define controller_rule_actions_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_rule_actions_t_initialize { 0, 0, 0 }
#endif // _di_controller_rule_actions_t_
/**
*
* Properties:
* - array: An array of Rule Items.
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_rule_items_t_
typedef struct {
controller_rule_item_t *array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
} controller_rule_items_t;
- #define controller_rule_items_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_rule_items_initialize { 0, 0, 0 }
#endif // _di_controller_rule_items_t_
/**
*
* Properties:
* - array: An array of Rule "on" values.
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_rule_ons_t_
typedef struct {
controller_rule_on_t *array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
} controller_rule_ons_t;
- #define controller_rule_ons_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_rule_ons_t_initialize { 0, 0, 0 }
#endif // _di_controller_rule_ons_t_
/**
*
* Properties:
* - array: An array of Rules pointers (note the double-pointer).
- * - size: Total amount of allocated space.
* - used: Total number of allocated spaces used.
+ * - size: Total amount of allocated space.
*/
#ifndef _di_controller_rules_t_
struct controller_rules_t_ {
controller_rule_t **array;
- f_number_unsigned_t size;
f_number_unsigned_t used;
+ f_number_unsigned_t size;
};
- #define controller_rules_t_initialize { \
- 0, \
- 0, \
- 0, \
- }
+ #define controller_rules_t_initialize { 0, 0, 0 }
#endif // _di_controller_rules_t_
/**