diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-10 17:28:06 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-10 17:28:06 +0200 |
commit | bea195a2e8d8e26af7511a65af4c8641cb4d1c4f (patch) | |
tree | b3c9deb46292896ec53fa2996152293d2e92f009 /src/p_lblock_next.c | |
parent | qwe (diff) | |
download | 42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.gz 42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.bz2 42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.xz 42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.tar.zst 42-minishell-bea195a2e8d8e26af7511a65af4c8641cb4d1c4f.zip |
Even better parse
Diffstat (limited to 'src/p_lblock_next.c')
-rw-r--r-- | src/p_lblock_next.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c index 5777a3c..56a789d 100644 --- a/src/p_lblock_next.c +++ b/src/p_lblock_next.c @@ -59,7 +59,8 @@ char { if (*ptr == '$' && u_is_not_escaped(word, ptr) == TRUE) { - if ((word = p_subst_this_var(&ptr, (ptr - word), word, msh)) == NULL) + if ((word = p_subst_this_var(&ptr, (ptr - word), word, msh)) + == NULL) { return (NULL); } @@ -70,8 +71,7 @@ char } char - **p_subst_home(char *words[], - t_msh *msh) + **p_subst_home(char *words[], t_msh *msh) { char path[PATH_MAX]; char **ptr; @@ -92,8 +92,7 @@ char } static void - p_register_word(char word[], - t_msh *msh) + p_register_word(char word[], t_msh *msh) { char name[255]; char val[255]; @@ -182,8 +181,7 @@ static void } char - **p_check_args_equals(char *words[], - t_msh *msh) + **p_check_args_equals(char *words[], t_msh *msh) { char *ptr; t_bool reg; |