diff --git a/inc/typedef.h b/inc/typedef.h index ee4eb4e..453e08b 100644 --- a/inc/typedef.h +++ b/inc/typedef.h @@ -13,20 +13,6 @@ #ifndef TYPEDEF_H # define TYPEDEF_H - -typedef struct s_enviroment -{ - char *name; - char *value; - struct s_enviroment *next; -} t_enviroment; - -typedef struct s_minishell -{ - t_enviroment *enviroment; - -} t_minishell; - typedef enum e_token_type { T_WORD, @@ -53,4 +39,18 @@ typedef struct s_lexer char current_char; } t_lexer; +typedef struct s_enviroment +{ + char *name; + char *value; + struct s_enviroment *next; +} t_enviroment; + +typedef struct s_minishell +{ + t_enviroment *enviroment; + t_lexer *lexer; + +} t_minishell; + #endif // TYPEDEF_H