diff --git a/42sh/includes/builtin.h b/42sh/includes/builtin.h index fd7e5477..95e58934 100644 --- a/42sh/includes/builtin.h +++ b/42sh/includes/builtin.h @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/14 22:59:57 by jhalford #+# #+# */ -/* Updated: 2017/03/24 23:17:32 by jhalford ### ########.fr */ +/* Updated: 2017/03/25 01:55:42 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,7 +17,6 @@ # include "libft.h" # include "builtin_read.h" - # define BT_ENV_LI (1 << 0) # define BT_ENV_LU (1 << 1) diff --git a/42sh/libft/includes/ft_types.h b/42sh/libft/includes/ft_types.h new file mode 100644 index 00000000..a8f001cc --- /dev/null +++ b/42sh/libft/includes/ft_types.h @@ -0,0 +1,22 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_types.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: jhalford +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2017/03/25 01:56:58 by jhalford #+# #+# */ +/* Updated: 2017/03/25 02:02:06 by jhalford ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_TYPES_H +# define FT_TYPES_H + +typedef struct s_stos t_stos; +typedef struct s_stof t_stof; +typedef struct s_itof t_itof; +typedef long long int t_flag; +typedef long long int t_type; + +#endif diff --git a/42sh/libft/includes/libft.h b/42sh/libft/includes/libft.h index 8e43ec5a..dbecfc8c 100644 --- a/42sh/libft/includes/libft.h +++ b/42sh/libft/includes/libft.h @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */ -/* Updated: 2017/03/25 01:35:38 by jhalford ### ########.fr */ +/* Updated: 2017/03/25 01:56:46 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,12 +20,7 @@ # include # include -typedef struct s_stos t_stos; -typedef struct s_stof t_stof; -typedef struct s_itof t_itof; -typedef long long t_flag; -typedef long long t_type; - +# include "ft_types.h" # include "error.h" # include "color.h" # include "cliopts.h" diff --git a/42sh/libft/src/sys/open_access.c b/42sh/libft/src/sys/open_access.c index 90790a31..332672fa 100644 --- a/42sh/libft/src/sys/open_access.c +++ b/42sh/libft/src/sys/open_access.c @@ -6,13 +6,13 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/25 01:10:56 by jhalford #+# #+# */ -/* Updated: 2017/03/25 01:53:59 by jhalford ### ########.fr */ +/* Updated: 2017/03/25 02:02:20 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" -int is_directory(const char *path) +int is_directory(const char *path) { struct stat path_stat;