diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-10 08:39:24 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-10 08:39:24 +0200 |
| commit | 5f908033e68f6f3e03f2c38f4c396a0eab77ed05 (patch) | |
| tree | 993f38b720a00b3013828da7969df22e05b013c3 /src/lexer/tok_lst.c | |
| parent | 25ca78b5a53c931b0bc388aef099974dbba4b6ff (diff) | |
| download | minishell-5f908033e68f6f3e03f2c38f4c396a0eab77ed05.tar.gz minishell-5f908033e68f6f3e03f2c38f4c396a0eab77ed05.tar.bz2 minishell-5f908033e68f6f3e03f2c38f4c396a0eab77ed05.zip | |
Norming lexer
Diffstat (limited to 'src/lexer/tok_lst.c')
| -rw-r--r-- | src/lexer/tok_lst.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/lexer/tok_lst.c b/src/lexer/tok_lst.c index 89ab120..ac8ca4a 100644 --- a/src/lexer/tok_lst.c +++ b/src/lexer/tok_lst.c @@ -6,7 +6,7 @@ /* By: charles <me@cacharle.xyz> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/08/27 09:32:58 by charles #+# #+# */ -/* Updated: 2020/10/09 15:14:38 by cacharle ### ########.fr */ +/* Updated: 2020/10/10 08:15:34 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -45,11 +45,6 @@ t_tok_lst *tok_lst_new_until( return (ret); } -void tok_lst_push_back(t_tok_lst **tokens, t_tok_lst *pushed) -{ - ft_lstpush_back((t_ftlst**)tokens, (t_ftlst*)pushed); -} - t_tok_lst *tok_lst_push_front( t_tok_lst **tokens, t_tok_lst *pushed) { @@ -59,23 +54,6 @@ t_tok_lst *tok_lst_push_front( return (*tokens); } -void tok_lst_pop_front( - t_tok_lst **tokens, void (*del)(void*)) -{ - ft_lstpop_front((t_ftlst**)tokens, del); -} - -void *tok_lst_destroy(t_tok_lst **tokens, void (*del)(void*)) -{ - ft_lstdestroy((t_ftlst**)tokens, del); - return (NULL); -} - -t_tok_lst *tok_lst_last(t_tok_lst *tokens) -{ - return ((t_tok_lst*)ft_lstlast((t_ftlst*)tokens)); -} - t_tok_lst *tok_lst_uncons(t_tok_lst **tokens) { t_tok_lst *poped; |
