/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* d_enum.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #ifndef D_ENUM_H # define D_ENUM_H /* ** ret vals: ** --------- ** 0: cool ** 1: alloc err */ enum e_ret { M_RET_FINE, M_RET_ALLOC }; enum e_pipe_ends { E_WRITE_END, E_READ_END }; typedef enum e_quote_mode { Q_NONE, Q_SINGLE, Q_DOUBLE } t_quote_mode; enum e_builtins_id { B_ID_ECHO, B_ID_CD, B_ID_PWD, B_ID_EXPORT, B_ID_UNSET, B_ID_ENV, B_ID_EXIT, B_ID_TYPE, B_ID_SQB, B_ID_ALIAS, B_ID_H, B_BUILTINS_COUNT }; enum e_sqb_id { B_ID_SQB_B, B_ID_SQB_C, B_ID_SQB_D, B_ID_SQB_E, B_ID_SQB_F, B_ID_SQB_H, B_ID_SQB_N, B_ID_SQB_P, B_ID_SQB_R, B_ID_SQB_S, B_ID_SQB_W, B_ID_SQB_X, B_ID_SQB_Z, B_ID_SQB_L_MAJ, B_ID_SQB_S_MAJ, B_ID_SQB_NT, B_ID_SQB_OT, B_ID_SQB_EQUA, B_ID_SQB_DIFF, B_ID_SQB_EQ, B_ID_SQB_NE, B_ID_SQB_GT, B_ID_SQB_GE, B_ID_SQB_LT, B_ID_SQB_LE, B_ID_SQB_COUNT }; #endif