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/f_fail.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/f_fail.h (limited to 'src/f_fail.h') diff --git a/src/f_fail.h b/src/f_fail.h new file mode 100644 index 0000000..9699eee --- /dev/null +++ b/src/f_fail.h @@ -0,0 +1,30 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* f_fail.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef F_FAIL_H +#define F_FAIL_H + +#include "f_chdir.h" +#include "f_errno.h" +#include "f_redir.h" +#include "s_struct.h" + +void fail_no_options(const char concern[], + t_msh *msh); +void fail_too_many_args(const char concern[], + t_msh *msh); +void fail_identifier(const char concern[], + const char identifier[], + t_msh *msh); +void fail_alloc(t_msh *msh); + +#endif -- cgit v1.2.3 From c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Jul 2020 20:30:58 +0200 Subject: Double exit no more --- src/f_fail.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/f_fail.h') diff --git a/src/f_fail.h b/src/f_fail.h index 9699eee..868fe75 100644 --- a/src/f_fail.h +++ b/src/f_fail.h @@ -13,18 +13,19 @@ #ifndef F_FAIL_H #define F_FAIL_H +#include "f_com.h" #include "f_chdir.h" #include "f_errno.h" #include "f_redir.h" #include "s_struct.h" -void fail_no_options(const char concern[], +void f_fail_no_options(const char concern[], t_msh *msh); -void fail_too_many_args(const char concern[], +void f_fail_too_many_args(const char concern[], t_msh *msh); -void fail_identifier(const char concern[], +void f_fail_identifier(const char concern[], const char identifier[], t_msh *msh); -void fail_alloc(t_msh *msh); +void f_fail_alloc(t_msh *msh); #endif -- cgit v1.2.3 From 8680737a802539f3c21a295ad45eb9be72c73f5f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 1 Aug 2020 21:25:09 +0200 Subject: More UNIX friendly libft --- src/f_fail.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/f_fail.h') diff --git a/src/f_fail.h b/src/f_fail.h index 868fe75..4d7c8d4 100644 --- a/src/f_fail.h +++ b/src/f_fail.h @@ -14,6 +14,7 @@ #define F_FAIL_H #include "f_com.h" +#include "f_alloc.h" #include "f_chdir.h" #include "f_errno.h" #include "f_redir.h" @@ -26,6 +27,5 @@ void f_fail_too_many_args(const char concern[], void f_fail_identifier(const char concern[], const char identifier[], t_msh *msh); -void f_fail_alloc(t_msh *msh); #endif -- cgit v1.2.3 From 2ed2a9d739b6dd3be489792ef510b1f2085ab4ce Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 3 Aug 2020 16:56:17 +0200 Subject: Cleaner headers --- src/f_fail.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/f_fail.h') diff --git a/src/f_fail.h b/src/f_fail.h index 4d7c8d4..9a4b37c 100644 --- a/src/f_fail.h +++ b/src/f_fail.h @@ -20,10 +20,8 @@ #include "f_redir.h" #include "s_struct.h" -void f_fail_no_options(const char concern[], - t_msh *msh); -void f_fail_too_many_args(const char concern[], - t_msh *msh); +void f_fail_no_options(const char concern[], t_msh *msh); +void f_fail_too_many_args(const char concern[], t_msh *msh); void f_fail_identifier(const char concern[], const char identifier[], t_msh *msh); -- cgit v1.2.3 From 48acb01ff5a2cf22adebfc25213c2597911b2fd4 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Aug 2020 13:55:12 +0200 Subject: Unset is fine --- src/f_fail.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/f_fail.h') diff --git a/src/f_fail.h b/src/f_fail.h index 9a4b37c..0d3c19b 100644 --- a/src/f_fail.h +++ b/src/f_fail.h @@ -22,8 +22,6 @@ void f_fail_no_options(const char concern[], t_msh *msh); void f_fail_too_many_args(const char concern[], t_msh *msh); -void f_fail_identifier(const char concern[], - const char identifier[], - t_msh *msh); +void f_fail_identifier(const char concern[], const char identifier[]); #endif -- cgit v1.2.3