@brief true if both stacks hold the same bytes (NULL == NULL). */
| 228 | |
| 229 | /** @brief true if both stacks hold the same bytes (NULL == NULL). */ |
| 230 | bool stack_is_equal(const Stack* stk1, const Stack* stk2) { |
| 231 | if (stk1 == stk2) { |
| 232 | return true; |
| 233 | } |
| 234 | if (!stk1 || !stk2 || !stk1->vec || !stk2->vec) { |
| 235 | return false; |
| 236 | } |
| 237 | |
| 238 | return vector_is_equal(stk1->vec, stk2->vec); |
| 239 | } |
| 240 | |
| 241 | |
| 242 | /** @brief Inverse of stack_is_equal. */ |
no test coverage detected