」 feat: Parsing working but not handling error

This commit is contained in:
2024-05-31 19:26:09 +02:00
parent 6bbdef9d7c
commit 5a71c50897
7 changed files with 57 additions and 32 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/25 12:20:26 by adjoly #+# #+# */
/* Updated: 2024/05/30 16:31:48 by adjoly ### ########.fr */
/* Updated: 2024/05/31 13:17:38 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -36,6 +36,7 @@ void check_syntax(char *readline, char **argv);
void send_error(char *msg, char **argv);
void check_redir(t_list *redir, char **argv);
t_cmd *get_redir_fd(void *content);
t_list *get_cmd_list(t_list *list);
/**
* @brief Take the argv of a command a split the argv and the
* command it self
@ -44,7 +45,7 @@ t_cmd *get_redir_fd(void *content);
*
* @return (t_cmd *) cmd and argv splited into a struct
*/
t_cmd *split_cmd(char *cmd_av);
t_cmd *split_cmd(char *cmd_av, t_cmd *cmd);
/**
* @brief Take a string and an index and check if the character