This commit is contained in:
parent
61ff7f75fd
commit
b9d526b77b
2 changed files with 3 additions and 6 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: wescande <wescande@student.42.fr> +#+ +:+ +#+ */
|
/* By: wescande <wescande@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/24 15:03:02 by wescande #+# #+# */
|
/* Created: 2017/03/24 15:03:02 by wescande #+# #+# */
|
||||||
/* Updated: 2017/03/24 16:22:13 by gwojda ### ########.fr */
|
/* Updated: 2017/03/24 17:04:11 by gwojda ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -32,10 +32,7 @@ int builtin_func(const char *path,
|
||||||
return (SH_ERR("unexpected error"));
|
return (SH_ERR("unexpected error"));
|
||||||
name = token_to_argv(((t_astnode *)(*ast)->item)->data.cmd.token, 1);
|
name = token_to_argv(((t_astnode *)(*ast)->item)->data.cmd.token, 1);
|
||||||
if (name && name[0])
|
if (name && name[0])
|
||||||
{
|
|
||||||
DG();
|
|
||||||
ft_putendl(name[0]);
|
ft_putendl(name[0]);
|
||||||
}
|
|
||||||
ft_tabdel(&name);
|
ft_tabdel(&name);
|
||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/16 20:25:08 by ariard #+# #+# */
|
/* Created: 2017/03/16 20:25:08 by ariard #+# #+# */
|
||||||
/* Updated: 2017/03/16 20:43:06 by ariard ### ########.fr */
|
/* Updated: 2017/03/24 17:07:56 by gwojda ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -17,6 +17,6 @@ void lexer_destroy(t_lexer *lexer)
|
||||||
ft_strdel(&lexer->str);
|
ft_strdel(&lexer->str);
|
||||||
lexer->pos = 0;
|
lexer->pos = 0;
|
||||||
lexer->state = 0;
|
lexer->state = 0;
|
||||||
lexer->stack = NULL;
|
ft_lstdel(&lexer->stack, ft_lst_cfree);
|
||||||
lexer->heredoc_stack = NULL;
|
lexer->heredoc_stack = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue