void token_list_add(t_token_list **list, t_token *token) { t_token_list *last; last = token_list_get_last(*list); if (!last) *list = token_list_new(token, NULL); else last->next = token_list_new(token, NULL); }
token_t *token_new(token_id_t id, gpointer data, clone_func_t data_clone_func, free_func_t data_free_func, to_string_func_t data_to_string_func) { return token_new_with_children(id, data, data_clone_func, data_free_func, data_to_string_func, token_list_new()); }