}
/** Return the first item matching the iterator in cursor a and cursor b
+ *
+ * @note Both cursors must operate on the same list of items.
*
* @param[in] a First cursor.
* @param[in] b Second cursor.
{
void *a_item, *b_item;
+ if (unlikely(a->head != b->head)) return NULL;
+
a_item = fr_cursor_head(a);
b_item = fr_cursor_head(b);
}
/** Return the next item matching the iterator in cursor a and cursor b
+ *
+ * @note Both cursors must operate on the same list of items.
*
* @param[in] a First cursor.
* @param[in] b Second cursor.
{
fr_cursor_iter_t b_iter;
+ if (unlikely(a->head != b->head)) return NULL;
+
/*
* If either of the iterators lack an iterator
* just use cursor_next...