Parsing-refactor: Determining structures.

This commit is contained in:
Jérôme Guélen 2025-03-28 14:36:46 +01:00 committed by Khaïs COLIN
parent befe219436
commit 5ff990ef50
17 changed files with 103 additions and 702 deletions

View file

@ -6,14 +6,13 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/21 12:30:07 by khais #+# #+# */
/* Updated: 2025/03/19 16:49:12 by khais ### ########.fr */
/* Updated: 2025/03/28 15:02:17 by khais ### ########.fr */
/* */
/* ************************************************************************** */
#include "simple_cmd.h"
#include "libft.h"
#include "../../treedrawing.h"
#include "../../postprocess/redirections/redirection_list.h"
/*
** parse a wordlist and yield a simple command.
@ -36,7 +35,6 @@ void simple_cmd_destroy(t_simple_cmd *cmd)
if (cmd == NULL)
return ;
wordlist_destroy(cmd->words);
redir_list_destroy(cmd->redirections);
free(cmd);
}
@ -49,7 +47,6 @@ void simple_cmd_debug(t_simple_cmd *cmd, t_buffer *leader, bool is_last)
indent(leader, false);
ft_printf("words = ");
wordlist_debug(cmd->words);
dedent(leader, false);
redir_list_debug(cmd->redirections, leader, true);
dedent(leader, true);
dedent(leader, is_last);
}