diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/s_struct.h | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to 'src/s_struct.h')
-rw-r--r-- | src/s_struct.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/s_struct.h b/src/s_struct.h index d948090..5d19dd4 100644 --- a/src/s_struct.h +++ b/src/s_struct.h @@ -13,7 +13,6 @@ #ifndef S_STRUCT_H # define S_STRUCT_H -# include <stdint.h> # include <stddef.h> # ifdef __linux__ # include <linux/limits.h> @@ -39,7 +38,7 @@ typedef struct s_lalias } t_lalias; /* -** redir(int8_t) index +** redir(char) index ** ------------------- ** -3: <<- ** -2: << @@ -54,9 +53,9 @@ typedef struct s_lredir { char path[PATH_MAX]; char *heredoc; - int32_t fd; - int32_t right_fd; - int8_t redir; + int fd; + int right_fd; + char redir; struct s_lredir *next; } t_lredir; @@ -75,7 +74,7 @@ struct s_lpipes }; /* -** nextif(uint8_t) index +** nextif(unsigned char) index ** --------------------- ** 0: ; ** 1: && @@ -85,7 +84,7 @@ struct s_lpipes typedef struct s_line_block { char *lblock; - uint8_t nextif; + unsigned char nextif; struct s_line_block *next; } t_line_block; @@ -96,7 +95,7 @@ typedef struct s_msh struct s_lpipes *pipes; struct s_lvars *vars; struct s_lalias *alias; - int32_t argc; + int argc; char **argv; char **envp; char *prev_hist; @@ -105,9 +104,9 @@ typedef struct s_msh char env_fork_tmp[128][4096]; char sqb_ref[B_ID_SQB_COUNT][4]; char *cwd; - int32_t fd; - uint8_t (*bu_ptr[B_BUILTINS_COUNT])(char **, struct s_msh*); - uint8_t ret; + int fd; + unsigned char (*bu_ptr[B_BUILTINS_COUNT])(char **, struct s_msh*); + unsigned char ret; } t_msh; #endif |