Пример #1
0
t_error			set_pop_pipe(i_set			setid)
{
  t_error		retval;
  t_iterator		iterator;

  SET_ENTER(set);

  if ((retval = set_tail_ll(setid, &iterator)) != ERROR_NONE)
    SET_LEAVE(set, retval);

  retval = set_delete_ll(setid, iterator);

  SET_LEAVE(set, retval);
}
Пример #2
0
t_status		set_pop_pipe(i_set			setid)
{
  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_delete_ll(setid, iterator) != STATUS_OK)
    CORE_ESCAPE("unable to delete the object");

  CORE_LEAVE();
}