diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-11-10 18:57:55 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-11-10 18:57:55 +0100 |
commit | 1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1 (patch) | |
tree | 6fef04f0e31fee7f83ed59dd41c1db21d661aa41 | |
parent | hellyeah brother, norm not checked because fuck lazare, new file and msh->sig (diff) | |
download | 42-minishell-1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1.tar.gz 42-minishell-1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1.tar.bz2 42-minishell-1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1.tar.xz 42-minishell-1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1.tar.zst 42-minishell-1bcc642f56e82dfaecd1a5c105aef6b25f0ae1e1.zip |
nrom fixeeeeeeeeeeeeeeeeeeeeeeedd
-rw-r--r-- | src/c_ctrls.c | 4 | ||||
-rw-r--r-- | src/c_input.h | 1 | ||||
-rw-r--r-- | src/c_keys.h | 12 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/c_ctrls.c b/src/c_ctrls.c index dae91a2..f841705 100644 --- a/src/c_ctrls.c +++ b/src/c_ctrls.c @@ -47,7 +47,7 @@ char *c_ctrl_c(char **line, char *buf, t_msh *msh) return (ft_strdup("\0")); } -void c_signal_int(int signo) +void c_signal_int(int signo) { static t_msh *msh; @@ -60,7 +60,7 @@ void c_signal_int(int signo) ioctl(1, TIOCSTI, "\002"); } -void c_signal_ign(int signo) +void c_signal_ign(int signo) { t_msh *msh; diff --git a/src/c_input.h b/src/c_input.h index e2dc0da..f2ccba8 100644 --- a/src/c_input.h +++ b/src/c_input.h @@ -19,5 +19,4 @@ unsigned int c_get_line_num(char *line, unsigned int cpos, unsigned int plen, short c_init_line(char psx, t_caps *tcaps); unsigned short c_get_win_size(struct winsize *ws); - #endif diff --git a/src/c_keys.h b/src/c_keys.h index 6b48431..4569051 100644 --- a/src/c_keys.h +++ b/src/c_keys.h @@ -13,11 +13,11 @@ #ifndef C_KEYS_H # define C_KEYS_H -short c_key_right(unsigned int len, unsigned int plen, t_caps *tcaps); -short c_key_left(unsigned int plen, t_caps *tcaps); -short c_home_key(unsigned int plen, t_caps *tcaps); -short c_end_key(unsigned short size, unsigned int plen, t_caps *tcaps); -short c_ctrl_l(char *line, t_caps *tcaps, t_msh *msh); -char *c_ctrl_c(char **line, char *buf, t_msh *msh); +short c_key_right(unsigned int len, unsigned int plen, t_caps *tcaps); +short c_key_left(unsigned int plen, t_caps *tcaps); +short c_home_key(unsigned int plen, t_caps *tcaps); +short c_end_key(unsigned short size, unsigned int plen, t_caps *tcaps); +short c_ctrl_l(char *line, t_caps *tcaps, t_msh *msh); +char *c_ctrl_c(char **line, char *buf, t_msh *msh); #endif |