t_status set_object_pipe(i_set setid, s_iterator iterator, void** data) { if (set_object_ll(setid, iterator, data) != STATUS_OK) CORE_ESCAPE("unable to retrieve the object from the linked-list set"); CORE_LEAVE(); }
t_error set_object_pipe(i_set setid, t_iterator iterator, void** data) { t_error retval; SET_ENTER(set); retval = set_object_ll(setid, iterator, data); SET_LEAVE(set, retval); }
t_error set_pick_pipe(i_set setid, void** data) { t_error retval; t_iterator iterator; SET_ENTER(set); if ((retval = set_tail_ll(setid, &iterator)) != ERROR_NONE) SET_LEAVE(set, retval); retval = set_object_ll(setid, iterator, data); SET_LEAVE(set, retval); }
t_status set_pick_pipe(i_set setid, void** data) { s_iterator iterator; /* * 1) */ if (set_tail_ll(setid, &iterator) != TRUE) CORE_ESCAPE("unable to locate the tail object in the linked-list set"); /* * 2) */ if (set_object_ll(setid, iterator, data) != STATUS_OK) CORE_ESCAPE("unable to retrieve the object"); CORE_LEAVE(); }