74 assert_ptr_equal(astack, NULL);
92 char data[] =
"abcdefg";
111 char data[] =
"abcdefg";
Ambiorix array stack API header file.
AMXC_INLINE void amxc_astack_clean(amxc_astack_t *const astack, amxc_astack_it_delete_t func)
Removes all items from the array stack.
AMXC_INLINE bool amxc_astack_is_empty(const amxc_astack_t *const astack)
Checks that the array stack is empty.
AMXC_INLINE int amxc_astack_init(amxc_astack_t *const astack)
Initializes an array stack.
AMXC_INLINE void amxc_astack_delete(amxc_astack_t **astack, amxc_astack_it_delete_t func)
Frees the previously allocated array stack.
AMXC_INLINE size_t amxc_astack_size(const amxc_astack_t *const astack)
Calculate the number of items on the stack, expressed in number of items.
AMXC_INLINE int amxc_astack_new(amxc_astack_t **astack)
Allocates an array stack.
AMXC_INLINE void * amxc_astack_pop(amxc_astack_t *const astack)
Removes the last added data from the stack.
AMXC_INLINE amxc_astack_it_t * amxc_astack_push(amxc_astack_t *const astack, void *data)
Adds an item to the array stack.
void amxc_astack_init_clean_null_check(UNUSED void **state)
void amxc_astack_push_check(UNUSED void **state)
void amxc_astack_init_clean_check(UNUSED void **state)
void amxc_astack_new_delete_check(UNUSED void **state)
void amxc_astack_pop_check(UNUSED void **state)
void amxc_astack_new_delete_null_check(UNUSED void **state)