mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
debug, destroy all new types (also some code for testing it)
This commit is contained in:
parent
53693e171e
commit
d40b6c3586
18 changed files with 453 additions and 121 deletions
|
|
@ -6,13 +6,15 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/21 12:30:07 by khais #+# #+# */
|
||||
/* Updated: 2025/04/11 16:49:02 by khais ### ########.fr */
|
||||
/* Updated: 2025/04/15 14:37:57 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "simple_cmd.h"
|
||||
#include "libft.h"
|
||||
#include "../../treedrawing.h"
|
||||
#include "../cmd/cmd_destroy.h"
|
||||
#include "../redirect/redirect_debug.h"
|
||||
|
||||
/*
|
||||
** parse a wordlist and yield a simple command.
|
||||
|
|
@ -45,9 +47,7 @@ void simple_cmd_debug(t_simple_cmd *cmd, t_buffer *leader, bool is_last)
|
|||
return ;
|
||||
indent(leader, is_last);
|
||||
ft_printf("%s\n", "t_simple_cmd");
|
||||
indent(leader, false);
|
||||
ft_printf("words = ");
|
||||
wordlist_debug(cmd->words);
|
||||
dedent(leader, true);
|
||||
redirect_debug(cmd->redirections, leader, false);
|
||||
wordlist_debug(cmd->words, leader, true);
|
||||
dedent(leader, is_last);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue