summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 16:48:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 16:48:38 +0200
commit94299e52b8f650c4e26a20ad0811a23b3d3cf553 (patch)
treecbe25562a3c6f53d38a773d32b30738e33a6d7e9 /src
parentTODO update (diff)
download42-minishell-94299e52b8f650c4e26a20ad0811a23b3d3cf553.tar.gz
42-minishell-94299e52b8f650c4e26a20ad0811a23b3d3cf553.tar.bz2
42-minishell-94299e52b8f650c4e26a20ad0811a23b3d3cf553.tar.xz
42-minishell-94299e52b8f650c4e26a20ad0811a23b3d3cf553.tar.zst
42-minishell-94299e52b8f650c4e26a20ad0811a23b3d3cf553.zip
Test
Diffstat (limited to '')
-rw-r--r--src/b_alias.c18
-rw-r--r--src/b_alias.h8
2 files changed, 12 insertions, 14 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index 5ddc46f..c97a2c9 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -22,8 +22,10 @@
#include "u_alias.h"
#include "u_utils.h"
-static uint8_t
- b_print_arg_next(char *ptr, const char arg[], t_bool invalid, t_msh *msh)
+static uint8_t b_print_arg_next(char *ptr,
+ const char arg[],
+ t_bool invalid,
+ t_msh *msh)
{
char val[ARG_MAX];
@@ -51,8 +53,7 @@ static uint8_t
return (0);
}
-static uint8_t
- b_print_arg(const char arg[], t_msh *msh)
+static uint8_t b_print_arg(const char arg[], t_msh *msh)
{
char *ptr;
t_bool invalid;
@@ -68,8 +69,7 @@ static uint8_t
return (b_print_arg_next(ptr, arg, invalid, msh));
}
-static void
- b_register_arg(const char arg[], t_msh *msh)
+static void b_register_arg(const char arg[], t_msh *msh)
{
char *ptr;
char name[255];
@@ -89,8 +89,7 @@ static void
}
}
-uint8_t
- b_alias(char *args[], t_msh *msh)
+uint8_t b_alias(char *args[], t_msh *msh)
{
const uint64_t argc = u_builtins_get_argc((const char**)args);
int32_t i;
@@ -118,8 +117,7 @@ uint8_t
return (ret);
}
-void
- b_alias_mute(char *args[], t_msh *msh)
+void b_alias_mute(char *args[], t_msh *msh)
{
const uint64_t argc = u_builtins_get_argc((const char**)args);
int32_t i;
diff --git a/src/b_alias.h b/src/b_alias.h
index 83b1878..ae3dfb8 100644
--- a/src/b_alias.h
+++ b/src/b_alias.h
@@ -10,12 +10,12 @@
/* */
/* ************************************************************************** */
-#ifndef B_ALIAS_H
-#define B_ALIAS_H
+#ifndef FT_B_ALIAS_H
+# define FT_B_ALIAS_H
-#include <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
uint8_t b_alias(char *args[], t_msh *msh);
void b_alias_mute(char *args[], t_msh *msh);