aboutsummaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/lexer.c7
-rw-r--r--src/parse/parse.c6
2 files changed, 6 insertions, 7 deletions
diff --git a/src/parse/lexer.c b/src/parse/lexer.c
index 612e911..7f7a7a2 100644
--- a/src/parse/lexer.c
+++ b/src/parse/lexer.c
@@ -1,10 +1,9 @@
-
-char **ms_lexer(char *input)
+char *ms_lexer(char *input)
{
char **out_lex;
if (!input)
- return (NULL);
-
+ return ("");
+ return ("");
}
diff --git a/src/parse/parse.c b/src/parse/parse.c
index de18d7c..d1ec153 100644
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -1,11 +1,11 @@
#include "minishell.h"
-t_parsing *ms_parse(char *input)
+void *ms_parse(char *input)
{
char **out_lex;
+
if (!(out_lex = ms_lexer(input)))
- return (NULL);
+ ;
//(void)input;
- return (NULL);
}