mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* operator.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/02/26 12:49:46 by khais #+# #+# */
|
|
/* Updated: 2025/02/26 13:54:08 by khais ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef OPERATOR_H
|
|
# define OPERATOR_H
|
|
|
|
/*
|
|
** An operator used by a cmdlist
|
|
*/
|
|
typedef enum e_operator
|
|
{
|
|
/*
|
|
** Not a valid operator
|
|
*/
|
|
OP_INVALID,
|
|
/*
|
|
** &&
|
|
*/
|
|
OP_AND,
|
|
/*
|
|
** ||
|
|
*/
|
|
OP_OR,
|
|
/*
|
|
** End of operator list
|
|
*/
|
|
OP_END,
|
|
} t_operator;
|
|
|
|
t_operator match_op(char *op);
|
|
|
|
#endif // OPERATOR_H
|