correctif io number
This commit is contained in:
parent
e8d4800f8c
commit
bc97d45f44
6 changed files with 10 additions and 73 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 934ff3af934eaecf04575a0a7e7e1b76628ae53b
|
Subproject commit b209bb1fb718a68256253d5ab5ff69a46a90d5d6
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/10 14:57:45 by ariard #+# #+# */
|
/* Created: 2017/03/10 14:57:45 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/11 16:23:26 by ariard ### ########.fr */
|
/* Updated: 2017/03/11 16:29:08 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/05 17:28:31 by ariard #+# #+# */
|
/* Created: 2017/03/05 17:28:31 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/11 15:46:06 by ariard ### ########.fr */
|
/* Updated: 2017/03/11 16:45:07 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -43,6 +43,7 @@ int add_ionumber(t_btree **ast, t_list **lst)
|
||||||
gen_node(ast);
|
gen_node(ast);
|
||||||
token = (*lst)->content;
|
token = (*lst)->content;
|
||||||
node = (*ast)->item;
|
node = (*ast)->item;
|
||||||
|
node->cache = node->type;
|
||||||
node->type = token->type;
|
node->type = token->type;
|
||||||
redir.n = ft_atoi(token->data);
|
redir.n = ft_atoi(token->data);
|
||||||
ft_lsteadd(&node->data.cmd.redir, ft_lstnew(&redir, sizeof(redir)));
|
ft_lsteadd(&node->data.cmd.redir, ft_lstnew(&redir, sizeof(redir)));
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/02/17 16:39:05 by ariard #+# #+# */
|
/* Created: 2017/02/17 16:39:05 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/11 15:52:20 by ariard ### ########.fr */
|
/* Updated: 2017/03/11 16:45:29 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -125,7 +125,8 @@ int add_redir_type(t_btree **ast, t_list **lst)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
add_redir_type_number(ast, lst);
|
add_redir_type_number(ast, lst);
|
||||||
node->cache = node->type;
|
if (!node->cache)
|
||||||
|
node->cache = node->type;
|
||||||
node->type = REDIR;
|
node->type = REDIR;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/11 16:17:38 by ariard #+# #+# */
|
/* Created: 2017/03/11 16:17:38 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/11 16:18:35 by ariard ### ########.fr */
|
/* Updated: 2017/03/11 16:32:15 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ int ft_parse(t_btree **ast, t_list **token, t_parser *parser)
|
||||||
else
|
else
|
||||||
ft_lst_delif(token, (*token)->content, &ft_addrcmp, &token_free);
|
ft_lst_delif(token, (*token)->content, &ft_addrcmp, &token_free);
|
||||||
}
|
}
|
||||||
if (parser->state == SUCCESS)
|
// if (parser->state == SUCCESS)
|
||||||
DG("sucessful parsing");
|
// DG("sucessful parsing");
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,65 +0,0 @@
|
||||||
[7m[33m shell_init.c [1m[34m28 [0minteractive shell settings[0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[ls][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[ls][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
then pwd
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
then pwd
|
|
||||||
fi
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
then pwd
|
|
||||||
fi
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
then pwd
|
|
||||||
fi
|
|
||||||
|
|
||||||
][0m
|
|
||||||
[7m[33m token_print.c [1m[34m29 [0m13:[if ls
|
|
||||||
then pwd
|
|
||||||
Elif ls
|
|
||||||
Then pwd
|
|
||||||
Elif ls
|
|
||||||
then pwd
|
|
||||||
fi
|
|
||||||
|
|
||||||
][0m
|
|
||||||
Loading…
Reference in a new issue