diff options
| author | nass1pro <nass1pro@gmail.com> | 2020-06-14 09:01:57 +0200 |
|---|---|---|
| committer | nass1pro <nass1pro@gmail.com> | 2020-06-14 09:01:57 +0200 |
| commit | cadd588473f82cdbbfdb7210bddd22262561faf3 (patch) | |
| tree | 751dc7934907ec89412e7e2a2ae9c73d75426007 /include | |
| parent | cfb618b6e385a861db7f62141a5f13f211ca6f48 (diff) | |
| download | minishell-cadd588473f82cdbbfdb7210bddd22262561faf3.tar.gz minishell-cadd588473f82cdbbfdb7210bddd22262561faf3.tar.bz2 minishell-cadd588473f82cdbbfdb7210bddd22262561faf3.zip | |
Add t_ret in ast.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/ast.h | 6 | ||||
| -rw-r--r-- | include/parse.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/ast.h b/include/ast.h index e63ab22..a5e55bb 100644 --- a/include/ast.h +++ b/include/ast.h @@ -101,6 +101,12 @@ typedef struct s_ast }; } t_ast; +typedef struct s_ret +{ + t_ast *as; + t_ftlst *rest; +} + t_ast *ast_new(t_ast_tag tag, void *data); void ast_destroy(t_ast *ast); diff --git a/include/parse.h b/include/parse.h index ec95ef9..6cb50b8 100644 --- a/include/parse.h +++ b/include/parse.h @@ -43,6 +43,6 @@ ** parse.c */ -t_ast *parse(char **input); +t_ast *parse(t_ftlst *lst); #endif |
