aboutsummaryrefslogtreecommitdiff
path: root/src/debug_tools.c
diff options
context:
space:
mode:
authorChristopher Uhlig2025-01-25 13:01:10 +0100
committerChristopher Uhlig2025-01-25 13:01:10 +0100
commit87b90103930d83d74baa998866b0995cb8887d51 (patch)
tree0eb876341c2794f2165b83c1d339fb3b38e9f711 /src/debug_tools.c
parent18fb7cb8ae69fc3439266a154aa6b0f947d6805d (diff)
downloadminishell-87b90103930d83d74baa998866b0995cb8887d51.tar.gz
minishell-87b90103930d83d74baa998866b0995cb8887d51.zip
fixed leaks in tokenizer and collectargs also fixed seg for < > and improved value add by $ use
Diffstat (limited to 'src/debug_tools.c')
-rw-r--r--src/debug_tools.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/debug_tools.c b/src/debug_tools.c
index 2c8ee7e..3c38cd6 100644
--- a/src/debug_tools.c
+++ b/src/debug_tools.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/24 15:34:14 by dkaiser #+# #+# */
-/* Updated: 2025/01/23 15:21:11 by chuhlig ### ########.fr */
+/* Updated: 2025/01/25 11:39:59 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
@@ -35,21 +35,3 @@ void panic(char *msg)
ft_putendl_fd("\e[0m", 1);
}
}
-
-
-
-void print_token_list(t_token *token_list) {
- t_token *current = token_list;
- while (current != NULL) {
- if (current->type == STRING_TOKEN) {
- printf("STRING_TOKEN: %s\n", current->content.string);
- } else if (current->type == REDIR_TOKEN) {
- printf("REDIR_TOKEN: %d\n", current->content.redir_type);
- } else if (current->type == PIPE_TOKEN) {
- printf("PIPE_TOKEN\n");
- } else if (current->type == NEWLINE_TOKEN) {
- printf("NEWLINE_TOKEN\n");
- }
- current = current->next;
- }
-}