summaryrefslogtreecommitdiffstats
path: root/src/s_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_struct.h')
-rw-r--r--src/s_struct.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/s_struct.h b/src/s_struct.h
index 54d3af3..3f9e84f 100644
--- a/src/s_struct.h
+++ b/src/s_struct.h
@@ -28,19 +28,19 @@
typedef struct s_lvars
{
+ struct s_lvars *next;
char *name;
char *val;
- struct s_lvars *next;
} t_lvars;
typedef struct s_com
{
- char *bin;
char **argv;
- int8_t redir;
- int32_t rdrfd;
- char *rdrpath;
char **env_fork;
+ char *rdrpath;
+ char *bin;
+ int32_t rdrfd;
+ int8_t redir;
} t_com;
struct s_lpipes
@@ -59,25 +59,26 @@ struct s_lpipes
typedef struct s_line
{
- uint8_t nextif;
struct s_com *com;
struct s_lpipes *pipes;
struct s_line *next;
+ uint8_t nextif;
} t_line;
typedef struct s_msh
{
+ struct s_line *curr;
+ struct s_lvars *vars;
char **envp;
+ char **bu_ref;
char ps[4][1024];
- uint8_t ret;
char *shname;
- char **bu_ref;
char *cwd;
+ int32_t fd;
char env_fork_tmp[128][1024];
char sqb_ref[FT_ID_SQB_COUNT][4];
uint8_t (*bu_ptr[FT_BUILTINS_COUNT])(char **, struct s_msh*);
- struct s_line *curr;
- struct s_lvars *vars;
+ uint8_t ret;
} t_msh;
#endif