summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-11-02 15:23:19 +0100
committersalad <fmoenne-@student.le-101.fr>2020-11-02 15:23:19 +0100
commit541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab (patch)
tree6098829ac4007b672893e800ea56453071672973 /src/c_input.c
parentomw to sed-town (diff)
download42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.gz
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.bz2
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.xz
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.zst
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.zip
merge happenned
Diffstat (limited to 'src/c_input.c')
-rw-r--r--src/c_input.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/c_input.c b/src/c_input.c
index 8fb4b72..24e45e3 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -23,8 +23,8 @@
#include "m_prompt.h"
#include "m_loop.h"
-int16_t
- c_init_line(uint8_t psx, t_caps *tcaps)
+short
+ c_init_line(char psx, t_caps *tcaps)
{
char *term;
@@ -45,7 +45,7 @@ int16_t
return (-1);
}
-uint16_t
+unsigned short
c_get_win_size(struct winsize *ws)
{
if (!(ioctl(STDOUT_FILENO, TIOCGWINSZ, ws)))
@@ -57,12 +57,12 @@ uint16_t
return (1);
}
-uint32_t
- c_get_line_num(char *line, uint32_t cpos, uint32_t plen, t_caps *tcaps)
+unsigned int
+ c_get_line_num(char *line, unsigned int cpos, unsigned int plen, t_caps *tcaps)
{
- uint32_t it;
- uint32_t line_num;
- uint32_t len;
+ unsigned int it;
+ unsigned int line_num;
+ unsigned int len;
it = 0;
line_num = 0;
@@ -79,8 +79,8 @@ uint32_t
return (line_num);
}
-int16_t
- c_back_slash(char **line, uint32_t plen, t_caps *tcaps)
+short
+ c_back_slash(char **line, unsigned int plen, t_caps *tcaps)
{
if (tcaps->cpos >= 1)
{