i think i never speedran the norm like this before
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/27 17:19:27 by tomoron #+# #+# */
|
||||
/* Updated: 2024/04/02 17:16:06 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/04/18 20:49:00 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -19,22 +19,22 @@ t_token *parsing_syntax_error(t_token *res)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int is_input_type(t_cmd *cmd)
|
||||
int is_input_type(t_cmd *cmd)
|
||||
{
|
||||
return(cmd->cmd_type == HERE_DOC || cmd->cmd_type == RED_I);
|
||||
return (cmd->cmd_type == HERE_DOC || cmd->cmd_type == RED_I);
|
||||
}
|
||||
|
||||
int is_output_type(t_cmd *cmd)
|
||||
int is_output_type(t_cmd *cmd)
|
||||
{
|
||||
return(cmd->cmd_type == RED_O || cmd->cmd_type == RED_O_APP);
|
||||
return (cmd->cmd_type == RED_O || cmd->cmd_type == RED_O_APP);
|
||||
}
|
||||
|
||||
int is_cmd_type(t_cmd *cmd)
|
||||
int is_cmd_type(t_cmd *cmd)
|
||||
{
|
||||
return(cmd->cmd_type == CMD || cmd->cmd_type == PAREN);
|
||||
return (cmd->cmd_type == CMD || cmd->cmd_type == PAREN);
|
||||
}
|
||||
|
||||
int is_operand_type(t_cmd *cmd)
|
||||
int is_operand_type(t_cmd *cmd)
|
||||
{
|
||||
return(cmd->cmd_type == AND || cmd->cmd_type == OR);
|
||||
return (cmd->cmd_type == AND || cmd->cmd_type == OR);
|
||||
}
|
||||
|
Reference in New Issue
Block a user