Exemplo n.º 1
0
/**
 * Destroy stack container auxiliary function.
 */
void _stack_destroy_auxiliary(stack_t* psk_stack)
{
    assert(psk_stack != NULL);

#if defined (CSTL_STACK_VECTOR_SEQUENCE)
    _vector_destroy_auxiliary(&psk_stack->_t_sequence);
#elif defined (CSTL_STACK_LIST_SEQUENCE)
    _list_destroy_auxiliary(&psk_stack->_t_sequence);
#else
    _deque_destroy_auxiliary(&psk_stack->_t_sequence);
#endif
}
Exemplo n.º 2
0
void _type_destroy_deque(const void* cpv_input, void* pv_output)
{
    assert(cpv_input != NULL && pv_output != NULL);
    _deque_destroy_auxiliary((deque_t*)cpv_input);
    *(bool_t*)pv_output = true;
}