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/p_lcom_next.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/p_lcom_next.c (renamed from src/ft_p_lcom_next.c) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_p_lcom_next.c b/src/p_lcom_next.c index 8313b08..94ac9bf 100644 --- a/src/ft_p_lcom_next.c +++ b/src/p_lcom_next.c @@ -1,7 +1,7 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* ft_p_lcom_next.c :+: :+: :+: */ +/* p_lcom_next.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ @@ -14,11 +14,11 @@ #include <stdlib.h> #include <stdint.h> -#include "ft_s_struct.h" -#include "ft_u_vars.h" +#include "s_struct.h" +#include "u_vars.h" static int8_t - ft_subst_those_vars(int64_t i, + subst_those_vars(int64_t i, char **p_words, t_msh *msh) { @@ -34,7 +34,7 @@ static int8_t varlen += 1; if (!(s_varname = ft_substr(*p_words, (uint32_t)i, varlen - i))) return (-1); - varval = ft_subst_var_value(s_varname, msh); + varval = subst_var_value(s_varname, msh); *p_words = ft_strsubst(*p_words, s_varname, varval); ft_memdel((void*)&s_varname); ft_memdel((void*)&varval); @@ -42,7 +42,7 @@ static int8_t } char - **ft_subst_vars(char *words[], + **subst_vars(char *words[], t_msh *msh) { char **p_words; @@ -56,7 +56,7 @@ char { if (*(*p_words) + i - 1 != '\\') { - if (ft_subst_those_vars(i, p_words, msh) != 0) + if (subst_those_vars(i, p_words, msh) != 0) return (NULL); } } @@ -67,7 +67,7 @@ char char - **ft_subst_args(const char word[], + **subst_args(const char word[], int8_t redir) { char **words; |