debug, destroy all new types (also some code for testing it)

This commit is contained in:
Khaïs COLIN 2025-04-08 16:18:57 +02:00
parent 53693e171e
commit d40b6c3586
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
18 changed files with 453 additions and 121 deletions

View file

@ -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);
}