summaryrefslogtreecommitdiffstats
path: root/src/ft_s_struct.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 17:31:32 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 17:31:32 +0200
commitc85c10c0308c565ed0e1c6320a81551f1777b56d (patch)
tree8f4fbed31da06f4f0716cd37d1b4cfaa43f55685 /src/ft_s_struct.h
parentNice prompt (diff)
download42-minishell-c85c10c0308c565ed0e1c6320a81551f1777b56d.tar.gz
42-minishell-c85c10c0308c565ed0e1c6320a81551f1777b56d.tar.bz2
42-minishell-c85c10c0308c565ed0e1c6320a81551f1777b56d.tar.xz
42-minishell-c85c10c0308c565ed0e1c6320a81551f1777b56d.tar.zst
42-minishell-c85c10c0308c565ed0e1c6320a81551f1777b56d.zip
Cool funptr
Diffstat (limited to 'src/ft_s_struct.h')
-rw-r--r--src/ft_s_struct.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_s_struct.h b/src/ft_s_struct.h
index 8234449..8c02f9f 100644
--- a/src/ft_s_struct.h
+++ b/src/ft_s_struct.h
@@ -13,6 +13,9 @@
#ifndef FT_S_STRUCT_H
#define FT_S_STRUCT_H
+#include <stdint.h>
+#include "ft_d_define.h"
+
typedef struct s_com
{
char *com;
@@ -25,6 +28,8 @@ typedef struct s_msh
char *ps_one;
char **envp;
int32_t ret;
+ char **bu_ref;
+ int32_t (*bu_ptr[FT_BUILTINS_COUNT])(struct s_msh*);
struct s_com *lcom;
} t_msh;