diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 18:55:07 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-27 18:55:07 +0200 |
commit | 487a66394061f2d14a2fa421302966b5442d643f (patch) | |
tree | 34237d4e9cb85f94bcefd46f399d2224dff3f6b3 /src/s_lpipes.c | |
parent | Correct shell prompt (diff) | |
download | 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.gz 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.bz2 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.xz 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.zst 42-minishell-487a66394061f2d14a2fa421302966b5442d643f.zip |
I couldn't see shit
Diffstat (limited to '')
-rw-r--r-- | src/s_lpipes.c (renamed from src/ft_s_lpipes.c) | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ft_s_lpipes.c b/src/s_lpipes.c index 8bd34de..cb78df3 100644 --- a/src/ft_s_lpipes.c +++ b/src/s_lpipes.c @@ -1,7 +1,7 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* ft_s_lpipes.c :+: :+: :+: */ +/* s_lpipes.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ @@ -14,12 +14,12 @@ #include <stdlib.h> #include <stdint.h> -#include "ft_s_lcom.h" -#include "ft_s_lpipes.h" -#include "ft_s_struct.h" +#include "s_lcom.h" +#include "s_lpipes.h" +#include "s_struct.h" struct s_lpipes - *ft_lpipes_last(struct s_lpipes *lpipes) + *lpipes_last(struct s_lpipes *lpipes) { while (lpipes->next != NULL) lpipes = lpipes->next; @@ -27,7 +27,7 @@ struct s_lpipes } void - ft_lpipes_add_back(struct s_lpipes **alpipes, + lpipes_add_back(struct s_lpipes **alpipes, struct s_lpipes *new) { struct s_lpipes *tmp; @@ -36,13 +36,13 @@ void *alpipes = new; else { - tmp = ft_lpipes_last(*alpipes); + tmp = lpipes_last(*alpipes); tmp->next = new; } } void - ft_lpipes_clear(struct s_lpipes **lpipes) + lpipes_clear(struct s_lpipes **lpipes) { struct s_lpipes *tmp; struct s_lpipes *renext; @@ -53,7 +53,7 @@ void while (tmp) { renext = tmp->next; - ft_lcom_clear(&tmp->one); + lcom_clear(&tmp->one); ft_memdel((void*)&tmp); tmp = renext; } @@ -61,7 +61,7 @@ void } struct s_lpipes - *ft_lpipes_new(const char pipedword[], + *lpipes_new(const char pipedword[], t_msh *msh) { struct s_lpipes *link; @@ -69,7 +69,7 @@ struct s_lpipes if (!(link = (struct s_lpipes*)malloc(sizeof(struct s_lpipes)))) return (NULL); link->one = NULL; - if (!(link->one = ft_lcom_new(pipedword, msh))) + if (!(link->one = lcom_new(pipedword, msh))) { return (NULL); } @@ -78,7 +78,7 @@ struct s_lpipes } struct s_lpipes - *ft_split_pipes(const char word[], + *split_pipes(const char word[], t_lcom *lcom, t_msh *msh) { @@ -93,11 +93,11 @@ struct s_lpipes return (NULL); while (words[i]) { - if (!(lpipes = ft_lpipes_new(words[i], msh))) + if (!(lpipes = lpipes_new(words[i], msh))) { return (NULL); } - ft_lpipes_add_back(&lcom->pipes, lpipes); + lpipes_add_back(&lcom->pipes, lpipes); i++; } ft_delwords(words); |