From 16e243d6cd64f6168b0127b07866a4b8209c335f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 8 Oct 2020 17:44:59 +0200 Subject: Added tok_lst_pop_front wrapper --- include/lexer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/lexer.h') diff --git a/include/lexer.h b/include/lexer.h index 82b4d1d..72480d5 100644 --- a/include/lexer.h +++ b/include/lexer.h @@ -6,7 +6,7 @@ /* By: nahaddac +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/19 10:51:26 by nahaddac #+# #+# */ -/* Updated: 2020/10/06 16:21:01 by cacharle ### ########.fr */ +/* Updated: 2020/10/08 17:38:33 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -89,6 +89,7 @@ t_tok_lst *tok_lst_new(enum e_tok tag, char *content); t_tok_lst *tok_lst_new_until(enum e_tok tag, char *content, size_t n); void tok_lst_push_back(t_tok_lst **tokens, t_tok_lst *pushed); t_tok_lst *tok_lst_push_front(t_tok_lst **tokens, t_tok_lst *pushed); +void tok_lst_pop_front(t_tok_lst **tokens, void (*del)(void*)); void *tok_lst_destroy(t_tok_lst **tokens, void (*del)(void*)); t_tok_lst *tok_lst_last(t_tok_lst *tokens); t_tok_lst *tok_lst_uncons(t_tok_lst **tokens); -- cgit