/** * Test the two queues are unequal. */ bool_t queue_not_equal(const queue_t* cpque_first, const queue_t* cpque_second) { assert(cpque_first != NULL); assert(cpque_second != NULL); #ifdef CSTL_QUEUE_LIST_SEQUENCE return list_not_equal(&cpque_first->_t_sequence, &cpque_second->_t_sequence); #else return deque_not_equal(&cpque_first->_t_sequence, &cpque_second->_t_sequence); #endif }
/** * Test the two stacks are unequal. */ bool_t stack_not_equal(const cstl_stack_t* cpsk_first, const cstl_stack_t* cpsk_second) { assert(cpsk_first != NULL); assert(cpsk_second != NULL); #if defined (CSTL_STACK_VECTOR_SEQUENCE) return vector_not_equal(&cpsk_first->_t_sequence, &cpsk_second->_t_sequence); #elif defined (CSTL_STACK_LIST_SEQUENCE) return list_not_equal(&cpsk_first->_t_sequence, &cpsk_second->_t_sequence); #else return deque_not_equal(&cpsk_first->_t_sequence, &cpsk_second->_t_sequence); #endif }