diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-13 10:34:30 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-13 11:42:47 +0200 |
| commit | b95e78827bf613828cbae9f196b7538fa4cfdd0b (patch) | |
| tree | 256a0748c58b73dc35b17200c8a3b266ef8ed8f2 | |
| parent | c5cde6afd3cecb44bbe9da0c28d970524da80228 (diff) | |
| download | minishell-lexer.tar.gz minishell-lexer.tar.bz2 minishell-lexer.zip | |
Fixing multiple definition of lexerlexer
| m--------- | libft | 0 | ||||
| -rw-r--r-- | src/lexer/lexer.c | 6 | ||||
| -rw-r--r-- | src/parse/lexer.c | 16 | ||||
| -rw-r--r-- | src/parse/parse.c | 16 |
4 files changed, 3 insertions, 35 deletions
diff --git a/libft b/libft -Subproject 1925805cc760061d5742f9d215998561fcd4521 +Subproject 4f4fa0d6ba8f42da8d72257b50517c222c06249 diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index 994ea55..185ff83 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -163,8 +163,8 @@ static t_ftlst *create_token_list(char *input, t_ftlst **lst) t_ftlst *lexer(char *input) { - t_ftlst **lst; - int i; + t_ftlst **lst; + /* int i; */ if (!input) return (0); @@ -172,7 +172,7 @@ t_ftlst *lexer(char *input) if (!lst) return(0); *lst = create_token_list(input, lst); - i = ft_lstsize(*lst); + /* i = ft_lstsize(*lst); */ free(lst); return (0); } diff --git a/src/parse/lexer.c b/src/parse/lexer.c deleted file mode 100644 index 74a3bd4..0000000 --- a/src/parse/lexer.c +++ /dev/null @@ -1,16 +0,0 @@ -/* -** \file lexer.c -** \brief Lexer -*/ - -#include "minishell.h" - -char **lexer(char *input) -{ - char **out_lex; - - (void)out_lex; - if (!input) - return (NULL); - return (NULL); -} diff --git a/src/parse/parse.c b/src/parse/parse.c deleted file mode 100644 index ed1aa28..0000000 --- a/src/parse/parse.c +++ /dev/null @@ -1,16 +0,0 @@ -/* -** \file parse.c -** \brief Parser -*/ - -#include "parse.h" - -t_ast *parse(char *input) -{ -/* char **out_lex; */ -/* if (!(out_lex = lexer(input))) */ -/* return (NULL); */ - - (void)input; - return (NULL); -} |
