aboutsummaryrefslogtreecommitdiff
path: root/include/minishell.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-09 14:01:03 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-09 14:01:03 +0200
commit2a8056e885151fa155bf82a3d8cc97b0905ea577 (patch)
treecde4444d26f1a3f27a56cad029e923a35accdc2a /include/minishell.h
parent70c76a4e6d73551a1a78ed61e7cd8f7287137a99 (diff)
downloadminishell-2a8056e885151fa155bf82a3d8cc97b0905ea577.tar.gz
minishell-2a8056e885151fa155bf82a3d8cc97b0905ea577.tar.bz2
minishell-2a8056e885151fa155bf82a3d8cc97b0905ea577.zip
Norming header, Fixing mistakes detected by static analyser
Diffstat (limited to 'include/minishell.h')
-rw-r--r--include/minishell.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/minishell.h b/include/minishell.h
index cba92df..b878f41 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,13 +6,12 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */
-/* Updated: 2020/10/09 12:41:09 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 13:45:24 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
# define MINISHELL_H
-#include <stdio.h> // for debugging - dont remove
/*
** \file minishell.h
@@ -73,7 +72,9 @@ extern t_state g_state;
** path.c
*/
-int path_search(t_env env, char *exec_name, char exec_path[PATH_MAX + 1], bool print);
+int path_search(
+ t_env env, char *exec_name,
+ char exec_path[PATH_MAX + 1], bool print);
/*
** env.c
@@ -101,7 +102,7 @@ typedef int (*t_builtin_func)(char **argv, t_env env);
** \param func Associated function
*/
-typedef struct
+typedef struct s_builtin_entry
{
char *name;
t_builtin_func func;
@@ -123,7 +124,8 @@ int builtin_exit(char **argv, t_env env);
*/
char **preprocess(t_tok_lst **tokens, t_env env);
-int preprocess_filename(t_tok_lst **tokens, t_env env, char **filename);
+int preprocess_filename(
+ t_tok_lst **tokens, t_env env, char **filename);
/*
** signal.c