diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/p_lblock_next.c | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to '')
-rw-r--r-- | src/p_lblock_next.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c index 9708a09..bc8b54b 100644 --- a/src/p_lblock_next.c +++ b/src/p_lblock_next.c @@ -12,7 +12,6 @@ #include <libft.h> #include <stdlib.h> -#include <stdint.h> #ifdef __linux__ # include <linux/limits.h> #else @@ -30,7 +29,7 @@ #include "u_vars.h" #include "u_vars_next.h" -static char **p_alloc_rewords(char *words[], int64_t j, t_msh *msh) +static char **p_alloc_rewords(char *words[], long j, t_msh *msh) { char **rewords; @@ -44,12 +43,12 @@ static char **p_alloc_rewords(char *words[], int64_t j, t_msh *msh) static char **p_add_to_variables_and_delete(char *words[], t_bool reg, - int64_t i, + long i, t_msh *msh) { char **rewords; - int64_t j; - int64_t k; + long j; + long k; j = -1; while (reg == TRUE && words[++j] != NULL && j < i) @@ -74,9 +73,9 @@ static char **p_add_to_variables_and_delete(char *words[], return (rewords); } -static void p_add_to_env_fork(int64_t i, char *words[], t_msh *msh) +static void p_add_to_env_fork(long i, char *words[], t_msh *msh) { - int64_t j; + long j; j = 0; while (j < i) @@ -87,7 +86,7 @@ static void p_add_to_env_fork(int64_t i, char *words[], t_msh *msh) msh->env_fork_tmp[j][0] = '\0'; } -static char *p_set_ptr(char *words[], int64_t i, t_bool *reg, t_bool *isvar) +static char *p_set_ptr(char *words[], long i, t_bool *reg, t_bool *isvar) { char *ptr; @@ -102,7 +101,7 @@ static char *p_set_ptr(char *words[], int64_t i, t_bool *reg, t_bool *isvar) char **p_check_args_equals(char *words[], t_msh *msh) { char *ptr; - int64_t i; + long i; t_bool reg; t_bool isvar; |