diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-03 16:50:41 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-03 16:50:41 +0200 |
commit | 116678cbba855c07711e9e2151ea272b20f71764 (patch) | |
tree | a8293a380f20a7d43db1224c7fbd2937c06cbfc7 | |
parent | New TODO entry, normed s_redir (diff) | |
download | 42-minishell-116678cbba855c07711e9e2151ea272b20f71764.tar.gz 42-minishell-116678cbba855c07711e9e2151ea272b20f71764.tar.bz2 42-minishell-116678cbba855c07711e9e2151ea272b20f71764.tar.xz 42-minishell-116678cbba855c07711e9e2151ea272b20f71764.tar.zst 42-minishell-116678cbba855c07711e9e2151ea272b20f71764.zip |
Normed s_lvars
Diffstat (limited to '')
-rw-r--r-- | src/s_lvars.c | 15 | ||||
-rw-r--r-- | src/s_lvars.h | 6 |
2 files changed, 8 insertions, 13 deletions
diff --git a/src/s_lvars.c b/src/s_lvars.c index e4b054e..4c91474 100644 --- a/src/s_lvars.c +++ b/src/s_lvars.c @@ -18,8 +18,7 @@ #include "s_struct.h" -void - lvars_rebind(t_lvars **lvars, const char name[], const char newval[]) +void lvars_rebind(t_lvars **lvars, const char name[], const char newval[]) { t_lvars *tmp; @@ -39,8 +38,7 @@ void } } -void - lvars_delone(t_lvars **lvars, const char name[]) +void lvars_delone(t_lvars **lvars, const char name[]) { t_lvars *tmp; t_lvars *prev; @@ -67,8 +65,7 @@ void ft_memdel((void*)&tmp); } -void - lvars_add_front(t_lvars **alvars, t_lvars *new) +void lvars_add_front(t_lvars **alvars, t_lvars *new) { if (alvars == NULL || new == NULL) { @@ -78,8 +75,7 @@ void *alvars = new; } -void - lvars_clear(t_lvars **lvars) +void lvars_clear(t_lvars **lvars) { t_lvars *tmp; t_lvars *renext; @@ -98,8 +94,7 @@ void *lvars = NULL; } -t_lvars - *lvars_new(const char name[], const char val[]) +t_lvars *lvars_new(const char name[], const char val[]) { t_lvars *link; diff --git a/src/s_lvars.h b/src/s_lvars.h index 163f6cc..21f9fce 100644 --- a/src/s_lvars.h +++ b/src/s_lvars.h @@ -10,10 +10,10 @@ /* */ /* ************************************************************************** */ -#ifndef S_LVARS_H -#define S_LVARS_H +#ifndef FT_S_LVARS_H +# define FT_S_LVARS_H -#include "s_struct.h" +# include "s_struct.h" void lvars_rebind(t_lvars **lvars, const char name[], const char newval[]); void lvars_delone(t_lvars **lvars, const char name[]); |