」 feat: Added ctrl c to heredoc

This commit is contained in:
2024-07-13 14:16:31 +02:00
parent 310f26ef80
commit d7c5e9611b
18 changed files with 183 additions and 521 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
/* Updated: 2024/07/10 01:21:10 by adjoly ### ########.fr */
/* Updated: 2024/07/13 14:03:47 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -47,5 +47,9 @@ void __close(void *content);
int ft_heredoc(char *delimiter, t_cmd *cmd);
int __open_fd_here(char *path, int mode);
void ft_lstclear_till_nxt(t_list **lst, void (*del)(void *));
int get_fd_heredoc(int in);
int check_error(int heredoc_ret, int fd);
void __heredoc_sig(int code);
int fd_manager(int mode);
#endif

View File

@ -42,5 +42,6 @@ void free_cmd(void *content);
t_env **get_env(t_env **env);
t_list **get_list(t_list **list);
t_list **get_list2(t_list **list);
int get_exit_code(int in);
#endif

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/25 12:20:26 by adjoly #+# #+# */
/* Updated: 2024/07/09 23:52:39 by adjoly ### ########.fr */
/* Updated: 2024/07/10 14:13:41 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -48,7 +48,6 @@ void open_redir(t_redirection *redir, t_cmd *cmd, t_redir_sign sign[2]);
*/
size_t strlen_till_char(char *s, int c);
bool check_quote(char *readline);
bool check_syntax(char *readline);
bool check_redir(t_list *redir);