/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* token_init.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/10 15:30:25 by jhalford #+# #+# */ /* Updated: 2017/01/11 15:45:10 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "lexer.h" t_token *token_init(void) { t_token *token; token = (t_token *)malloc(sizeof(t_token)); token->type = 0; token->size = 10; token->data = ft_strnew(token->size); return (token); }