This commit is contained in:
Jack Halford 2017-03-11 18:33:17 +01:00
commit cc2d3e4d5a
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/17 16:39:05 by ariard #+# #+# */
/* Updated: 2017/03/11 16:45:29 by ariard ### ########.fr */
/* Updated: 2017/03/11 17:28:03 by ariard ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/15 18:57:44 by ariard #+# #+# */
/* Updated: 2017/03/11 16:23:21 by ariard ### ########.fr */
/* Updated: 2017/03/11 18:28:50 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
@ -29,6 +29,7 @@ int gen_node(t_btree **ast)
ft_bzero((void *)&((t_astnode *)(*ast)->item)->data, sizeof(t_astdata));
((t_astnode *)(*ast)->item)->nest = 0;
((t_astnode *)(*ast)->item)->full = 0;
((t_astnode *)(*ast)->item)->cache = 0;
((t_astnode *)(*ast)->item)->type = TK_NEWLINE;
((t_astnode *)(*ast)->item)->pattern = 0;
}