示例#1
0
/*
** Adds the teams specified in the parser to the game.
*/
static void add_teams(game_t *gm, list_t *teams)
{
	while (teams->l_size) {
		game_add_team(gm, list_get_front(teams));
		list_pop_front(teams);
	}
}
示例#2
0
static void	delete_actions(t_list *actions)
{
  t_actions	*action;

  while (!list_is_empty(actions))
    {
      action = (t_actions *)list_get_front(actions);
      freetab(action->av);
      free(action);
      list_pop_front(&actions);
    }
}
示例#3
0
void *stack_get_top(Stack *self)
{
    return list_get_front(self);
}