summaryrefslogtreecommitdiffstats
path: root/src/ft_s_struct.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
commit3349e8a37a9fdf78b82d6df1d310e39c78fcebb2 (patch)
tree88ec7499dbdd45293ae63b5b353c849e50c166e8 /src/ft_s_struct.h
parentCool funptr (diff)
download42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.gz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.bz2
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.xz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.zst
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.zip
Trying linked lists
Diffstat (limited to 'src/ft_s_struct.h')
-rw-r--r--src/ft_s_struct.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ft_s_struct.h b/src/ft_s_struct.h
index 8c02f9f..6f3cf21 100644
--- a/src/ft_s_struct.h
+++ b/src/ft_s_struct.h
@@ -16,12 +16,12 @@
#include <stdint.h>
#include "ft_d_define.h"
-typedef struct s_com
+typedef struct s_lcom
{
char *com;
char **args;
struct s_com *next;
-} t_com;
+} t_lcom;
typedef struct s_msh
{
@@ -30,7 +30,8 @@ typedef struct s_msh
int32_t ret;
char **bu_ref;
int32_t (*bu_ptr[FT_BUILTINS_COUNT])(struct s_msh*);
- struct s_com *lcom;
+ struct s_lcom *lcom_head;
+ struct s_lcom *lcom;
} t_msh;
#endif