diff options
-rw-r--r-- | src/b_cd.h | 3 | ||||
-rw-r--r-- | src/b_echo.h | 3 | ||||
-rw-r--r-- | src/b_env.h | 3 | ||||
-rw-r--r-- | src/b_exit.h | 4 | ||||
-rw-r--r-- | src/b_export.h | 4 | ||||
-rw-r--r-- | src/b_pwd.h | 3 | ||||
-rw-r--r-- | src/b_type.h | 3 | ||||
-rw-r--r-- | src/b_unset.h | 3 | ||||
-rw-r--r-- | src/d_define.h | 6 | ||||
-rw-r--r-- | src/e_builtins.h | 4 | ||||
-rw-r--r-- | src/e_externs.h | 3 | ||||
-rw-r--r-- | src/e_externs_next.h | 4 | ||||
-rw-r--r-- | src/f_chdir.h | 4 | ||||
-rw-r--r-- | src/f_errno.h | 3 | ||||
-rw-r--r-- | src/f_fail.h | 6 | ||||
-rw-r--r-- | src/f_redir.h | 3 | ||||
-rw-r--r-- | src/m_argv.h | 4 | ||||
-rw-r--r-- | src/m_comm.h | 3 | ||||
-rw-r--r-- | src/m_prompt.h | 1 | ||||
-rw-r--r-- | src/m_redirs.h | 3 | ||||
-rw-r--r-- | src/p_lcom.h | 7 | ||||
-rw-r--r-- | src/p_lcom_next.h | 9 | ||||
-rw-r--r-- | src/p_line.h | 3 | ||||
-rw-r--r-- | src/s_init.h | 3 | ||||
-rw-r--r-- | src/s_lvars.h | 13 | ||||
-rw-r--r-- | src/u_vars.h | 6 |
26 files changed, 36 insertions, 75 deletions
@@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_cd(char *args[], - t_msh *msh); +uint8_t b_cd(char *args[], t_msh *msh); #endif diff --git a/src/b_echo.h b/src/b_echo.h index 3481480..ba4698e 100644 --- a/src/b_echo.h +++ b/src/b_echo.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_echo(char *args[], - t_msh *msh); +uint8_t b_echo(char *args[], t_msh *msh); #endif diff --git a/src/b_env.h b/src/b_env.h index bd338ae..6ad2800 100644 --- a/src/b_env.h +++ b/src/b_env.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_env(char *args[], - t_msh *msh); +uint8_t b_env(char *args[], t_msh *msh); #endif diff --git a/src/b_exit.h b/src/b_exit.h index d437e6a..1c6ec05 100644 --- a/src/b_exit.h +++ b/src/b_exit.h @@ -17,8 +17,6 @@ #include "s_struct.h" -uint8_t - b_exit(char *args[], - t_msh *msh); +uint8_t b_exit(char *args[], t_msh *msh); #endif diff --git a/src/b_export.h b/src/b_export.h index 037f9d8..be703c2 100644 --- a/src/b_export.h +++ b/src/b_export.h @@ -15,8 +15,6 @@ #include "s_struct.h" -uint8_t - b_export(char *args[], - t_msh *msh); +uint8_t b_export(char *args[], t_msh *msh); #endif diff --git a/src/b_pwd.h b/src/b_pwd.h index e165284..649ce8e 100644 --- a/src/b_pwd.h +++ b/src/b_pwd.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_pwd(char *args[], - t_msh *msh); +uint8_t b_pwd(char *args[], t_msh *msh); #endif diff --git a/src/b_type.h b/src/b_type.h index 5828e8d..474ba26 100644 --- a/src/b_type.h +++ b/src/b_type.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_type(char *args[], - t_msh *msh); +uint8_t b_type(char *args[], t_msh *msh); #endif diff --git a/src/b_unset.h b/src/b_unset.h index 24e17f7..fa89161 100644 --- a/src/b_unset.h +++ b/src/b_unset.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t b_unset(char *args[], - t_msh *msh); +uint8_t b_unset(char *args[], t_msh *msh); #endif diff --git a/src/d_define.h b/src/d_define.h index b2f2f08..f246a5b 100644 --- a/src/d_define.h +++ b/src/d_define.h @@ -19,9 +19,9 @@ ** ====== CLASSICS ====== */ -#define FT_PS_ONE "minishell ~> " -#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type" -#define FT_HISTFILE "minishell_history" +#define FT_PS_ONE "minishell ~> " +#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type" +#define FT_HISTFILE "minishell_history" /* ** ====== OPTIONS ====== diff --git a/src/e_builtins.h b/src/e_builtins.h index 1d0804d..25026cc 100644 --- a/src/e_builtins.h +++ b/src/e_builtins.h @@ -17,8 +17,6 @@ #include "s_struct.h" -void e_builtin(const t_lcom *ptr, - uint8_t bu_id, - t_msh *msh); +void e_builtin(const t_lcom *ptr, uint8_t bu_id, t_msh *msh); #endif diff --git a/src/e_externs.h b/src/e_externs.h index 9bbb907..878bb83 100644 --- a/src/e_externs.h +++ b/src/e_externs.h @@ -15,7 +15,6 @@ #include "s_struct.h" -void e_extern(t_lcom *ptr, - t_msh *msh); +void e_extern(t_lcom *ptr, t_msh *msh); #endif diff --git a/src/e_externs_next.h b/src/e_externs_next.h index da1cfdf..db03bac 100644 --- a/src/e_externs_next.h +++ b/src/e_externs_next.h @@ -16,8 +16,6 @@ #include "s_struct.h" char **get_env_path(t_msh *msh); -char *search_in_path(const char com[], - char *envpath[], - t_msh *msh); +char *search_in_path(const char com[], char *envpath[], t_msh *msh); #endif diff --git a/src/f_chdir.h b/src/f_chdir.h index 76cb737..c4136af 100644 --- a/src/f_chdir.h +++ b/src/f_chdir.h @@ -15,8 +15,6 @@ #include "s_struct.h" -void f_fail_chd(const char concern[], - const char pathp[], - t_msh *msh); +void f_fail_chd(const char concern[], const char pathp[], t_msh *msh); #endif diff --git a/src/f_errno.h b/src/f_errno.h index 75a6159..bf9e36b 100644 --- a/src/f_errno.h +++ b/src/f_errno.h @@ -15,7 +15,6 @@ #include "s_struct.h" -void f_dump_errno(const char concern[], - t_msh *msh); +void f_dump_errno(const char concern[], t_msh *msh); #endif diff --git a/src/f_fail.h b/src/f_fail.h index 4d7c8d4..9a4b37c 100644 --- a/src/f_fail.h +++ b/src/f_fail.h @@ -20,10 +20,8 @@ #include "f_redir.h" #include "s_struct.h" -void f_fail_no_options(const char concern[], - t_msh *msh); -void f_fail_too_many_args(const char concern[], - t_msh *msh); +void f_fail_no_options(const char concern[], t_msh *msh); +void f_fail_too_many_args(const char concern[], t_msh *msh); void f_fail_identifier(const char concern[], const char identifier[], t_msh *msh); diff --git a/src/f_redir.h b/src/f_redir.h index 25f53cf..450fce5 100644 --- a/src/f_redir.h +++ b/src/f_redir.h @@ -15,7 +15,6 @@ #include "s_struct.h" -void f_redir(const char path[], - t_msh *msh); +void f_redir(const char path[], t_msh *msh); #endif diff --git a/src/m_argv.h b/src/m_argv.h index cdda5d5..8d12d05 100644 --- a/src/m_argv.h +++ b/src/m_argv.h @@ -17,8 +17,6 @@ #include "s_struct.h" -uint8_t m_argv(int argc, - char *const argv[], - t_msh *msh); +uint8_t m_argv(int argc, char *const argv[], t_msh *msh); #endif diff --git a/src/m_comm.h b/src/m_comm.h index a64d01e..3933cfe 100644 --- a/src/m_comm.h +++ b/src/m_comm.h @@ -17,7 +17,6 @@ #include "s_struct.h" -uint8_t m_comm(const char line[], - t_msh *msh); +uint8_t m_comm(const char line[], t_msh *msh); #endif diff --git a/src/m_prompt.h b/src/m_prompt.h index f929298..3697fae 100644 --- a/src/m_prompt.h +++ b/src/m_prompt.h @@ -17,4 +17,5 @@ void m_prompt(t_msh *msh); void m_cont_prompt(void); + #endif diff --git a/src/m_redirs.h b/src/m_redirs.h index 295ea4d..6d1b96a 100644 --- a/src/m_redirs.h +++ b/src/m_redirs.h @@ -15,7 +15,6 @@ #include "s_struct.h" -void dup_redirs(const t_lcom *ptr, - t_msh *msh); +void dup_redirs(const t_lcom *ptr, t_msh *msh); #endif diff --git a/src/p_lcom.h b/src/p_lcom.h index 4e37399..393d7e5 100644 --- a/src/p_lcom.h +++ b/src/p_lcom.h @@ -17,10 +17,7 @@ #include "s_struct.h" -int8_t get_redir(const char word[], - t_lcom **link); -int8_t p_lcom(const char line[], - const uint64_t count, - t_msh *msh); +int8_t get_redir(const char word[], t_lcom **link); +int8_t p_lcom(const char line[], const uint64_t count, t_msh *msh); #endif diff --git a/src/p_lcom_next.h b/src/p_lcom_next.h index cd1ef0d..2d0ae98 100644 --- a/src/p_lcom_next.h +++ b/src/p_lcom_next.h @@ -17,11 +17,8 @@ #include "s_struct.h" -char **p_subst_vars(char *words[], - t_msh *msh); -char **p_subst_args(const char word[], - int8_t redir); -char **p_check_args_equals(char *words[], - t_msh *msh); +char **p_subst_vars(char *words[], t_msh *msh); +char **p_subst_args(const char word[], int8_t redir); +char **p_check_args_equals(char *words[], t_msh *msh); #endif diff --git a/src/p_line.h b/src/p_line.h index 7e8a321..b3a35c5 100644 --- a/src/p_line.h +++ b/src/p_line.h @@ -15,7 +15,6 @@ #include "s_struct.h" -void p_line(char *line, - t_msh *msh); +void p_line(char *line, t_msh *msh); #endif diff --git a/src/s_init.h b/src/s_init.h index 8ffe954..3539086 100644 --- a/src/s_init.h +++ b/src/s_init.h @@ -17,7 +17,6 @@ #include "s_struct.h" -t_msh *init_msh(char *const argv[], - char *const envp[]); +t_msh *init_msh(char *const argv[], char *const envp[]); #endif diff --git a/src/s_lvars.h b/src/s_lvars.h index 6bc0a99..163f6cc 100644 --- a/src/s_lvars.h +++ b/src/s_lvars.h @@ -15,15 +15,10 @@ #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[]); -void lvars_add_front(t_lvars **alvars, - t_lvars *new); +void lvars_rebind(t_lvars **lvars, const char name[], const char newval[]); +void lvars_delone(t_lvars **lvars, const char name[]); +void lvars_add_front(t_lvars **alvars, t_lvars *new); void lvars_clear(t_lvars **lvars); -t_lvars *lvars_new(const char name[], - const char val[]); +t_lvars *lvars_new(const char name[], const char val[]); #endif diff --git a/src/u_vars.h b/src/u_vars.h index ec6ecf5..8d96050 100644 --- a/src/u_vars.h +++ b/src/u_vars.h @@ -15,9 +15,7 @@ #include "s_struct.h" -char *get_cstm_vr(const char varname[], - t_msh *msh); -char *u_get_var_value(const char varname[], - t_msh *msh); +char *get_cstm_vr(const char varname[], t_msh *msh); +char *u_get_var_value(const char varname[], t_msh *msh); #endif |