From 487a66394061f2d14a2fa421302966b5442d643f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Jul 2020 18:55:07 +0200 Subject: I couldn't see shit --- src/d_enum.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/d_enum.h (limited to 'src/d_enum.h') diff --git a/src/d_enum.h b/src/d_enum.h new file mode 100644 index 0000000..427e0a0 --- /dev/null +++ b/src/d_enum.h @@ -0,0 +1,41 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* 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 +*/ + +typedef enum +{ + FALSE, + TRUE +} t_bool; + +enum +{ + FT_RET_FINE, + FT_RET_ALLOC +}; + +enum +{ + FT_WRITE_END, + FT_READ_END +}; + +#endif -- cgit v1.2.3 From 6dc6bf6f46b736299826bfdd63192bdee16ba875 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Jul 2020 18:08:50 +0200 Subject: Less retarded stuff --- src/d_enum.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/d_enum.h') diff --git a/src/d_enum.h b/src/d_enum.h index 427e0a0..ec35ca3 100644 --- a/src/d_enum.h +++ b/src/d_enum.h @@ -38,4 +38,17 @@ enum FT_READ_END }; +enum +{ + FT_ID_ECHO, + FT_ID_CD, + FT_ID_PWD, + FT_ID_EXPORT, + FT_ID_UNSET, + FT_ID_ENV, + FT_ID_EXIT, + FT_ID_TYPE, + FT_BUILTINS_COUNT +}; + #endif -- cgit v1.2.3 From bfaf4c53a8406ea0bfbd8699807b567a5322a03f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 3 Aug 2020 19:00:47 +0200 Subject: Export is working --- src/d_enum.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/d_enum.h') diff --git a/src/d_enum.h b/src/d_enum.h index ec35ca3..921195f 100644 --- a/src/d_enum.h +++ b/src/d_enum.h @@ -20,12 +20,6 @@ ** 1: alloc err */ -typedef enum -{ - FALSE, - TRUE -} t_bool; - enum { FT_RET_FINE, -- cgit v1.2.3