diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 20:48:50 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 20:48:50 +0200 |
| commit | 8e40323db9715621d8ab45ff6d943c2eeba46ea0 (patch) | |
| tree | 010828d6a75dfaaf94535035dc50b6a2a55aa12e /include/minishell.h | |
| parent | 3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4 (diff) | |
| download | minishell-8e40323db9715621d8ab45ff6d943c2eeba46ea0.tar.gz minishell-8e40323db9715621d8ab45ff6d943c2eeba46ea0.tar.bz2 minishell-8e40323db9715621d8ab45ff6d943c2eeba46ea0.zip | |
Removing path hash table, replacing it by brute force searchpath
Diffstat (limited to 'include/minishell.h')
| -rw-r--r-- | include/minishell.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/minishell.h b/include/minishell.h index 95f299b..0dd0522 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/09/14 15:36:04 by charles ### ########.fr */ +/* Updated: 2020/09/14 19:50:06 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,7 +48,6 @@ # define BUILTIN_NOT_FOUND -2 -typedef t_ftht* t_path; typedef t_ftvec* t_env; extern int g_last_status; @@ -58,7 +57,7 @@ extern char *g_basename; ** path.c */ -t_path path_update(t_path path, char *path_var); +bool path_search(t_env env, char *exec_name, char exec_path[PATH_MAX + 1]); /* ** env.c |
