debug: worddesc show more information

This seems appropriate since worddescs are getting more and more complex:
markers, flags, tokentypes, ...
This commit is contained in:
Khaïs COLIN 2025-04-09 15:38:13 +02:00
parent 6576c47b56
commit 4d6a64bf6a
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
9 changed files with 83 additions and 25 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/21 12:30:07 by khais #+# #+# */
/* Updated: 2025/04/15 14:37:57 by khais ### ########.fr */
/* Updated: 2025/04/15 14:47:13 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -47,7 +47,10 @@ 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");
redirect_debug(cmd->redirections, leader, false);
wordlist_debug(cmd->words, leader, true);
indent(leader, false);
ft_printf("line = %d\n", cmd->line);
dedent(leader, false);
wordlist_debug(cmd->words, leader, false);
redirect_debug(cmd->redirections, leader, true);
dedent(leader, is_last);
}