andor five
This commit is contained in:
commit
4a55e698ef
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/02/18 11:08:40 by gwojda #+# #+# */
|
/* Created: 2017/02/18 11:08:40 by gwojda #+# #+# */
|
||||||
/* Updated: 2017/03/21 17:40:20 by jhalford ### ########.fr */
|
/* Updated: 2017/03/29 15:23:21 by jhalford ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ static char *h_free_one(t_list **head, t_list *list, t_list *ref)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *ft_is_hash(char *cmd)
|
char *ft_is_hash(char *cmd)
|
||||||
{
|
{
|
||||||
t_list *list;
|
t_list *list;
|
||||||
t_list *ref;
|
t_list *ref;
|
||||||
|
|
|
||||||
|
|
@ -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/29 15:31:31 by ariard ### ########.fr */
|
/* Updated: 2017/03/29 15:32:27 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -25,7 +25,7 @@ static int end_instruction(t_list **stack)
|
||||||
t_sym *head;
|
t_sym *head;
|
||||||
|
|
||||||
head = (*stack)->content;
|
head = (*stack)->content;
|
||||||
if (*head == CMD_SUPERIOR || *head == PIPE_SEMI_SEQUENCE
|
if (*head == CMD_SUPERIOR || *head == PIPE_SEMI_SEQUENCE
|
||||||
|| *head == COMPLETE_COMMANDS || *head == END_COMMAND)
|
|| *head == COMPLETE_COMMANDS || *head == END_COMMAND)
|
||||||
return (1);
|
return (1);
|
||||||
return (0);
|
return (0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue