This commit is contained in:
Jack Halford 2017-03-25 02:18:03 +01:00
parent 6547c721f5
commit ca58a322cf
4 changed files with 27 additions and 11 deletions

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */ /* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/14 22:59:57 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 "libft.h"
# include "builtin_read.h" # include "builtin_read.h"
# define BT_ENV_LI (1 << 0) # define BT_ENV_LI (1 << 0)
# define BT_ENV_LU (1 << 1) # define BT_ENV_LU (1 << 1)

View file

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_types.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */ /* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/07 13:49:04 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 <stdlib.h> # include <stdlib.h>
# include <time.h> # include <time.h>
typedef struct s_stos t_stos; # include "ft_types.h"
typedef struct s_stof t_stof;
typedef struct s_itof t_itof;
typedef long long t_flag;
typedef long long t_type;
# include "error.h" # include "error.h"
# include "color.h" # include "color.h"
# include "cliopts.h" # include "cliopts.h"

View file

@ -6,13 +6,13 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */ /* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/25 01:10:56 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" #include "libft.h"
int is_directory(const char *path) int is_directory(const char *path)
{ {
struct stat path_stat; struct stat path_stat;