summaryrefslogtreecommitdiffstats
path: root/src/m_loop_next.c
diff options
context:
space:
mode:
authorSalad <water_appreciator@protonmail.com>2020-10-02 16:55:52 +0200
committerSalad <water_appreciator@protonmail.com>2020-10-02 16:55:52 +0200
commitb6b09fc1fa8e4f70f042cfe48f26b28d798498d3 (patch)
tree22ec864530fc4a0a9e642bdf35c42b2dacc93e95 /src/m_loop_next.c
parentlessgo (diff)
download42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.gz
42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.bz2
42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.xz
42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.zst
42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.zip
almost there : norme + miltiligne
Diffstat (limited to '')
-rw-r--r--src/m_loop_next.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/m_loop_next.c b/src/m_loop_next.c
index 9aa7129..d7d3377 100644
--- a/src/m_loop_next.c
+++ b/src/m_loop_next.c
@@ -16,15 +16,17 @@
#include "m_prompt.h"
#include "s_struct.h"
+#include "c_init.h"
static char
*m_counter_line_backslash(int32_t fd, uint8_t psx, char *line, t_msh *msh)
{
char *counter_line;
- if (fd == STDIN_FILENO)
- m_prompt_psx(psx, msh);
- get_next_line(fd, &counter_line);
+ /* if (fd == STDIN_FILENO) */
+ /* m_prompt_psx(psx, msh); */
+ /* get_next_line(fd, &counter_line); */
+ c_init_tcaps(fd, &counter_line, psx, msh);
if (counter_line[0] != 0)
{
line = ft_nrealloc(line,
@@ -45,7 +47,8 @@ static char
if (fd == STDIN_FILENO)
m_prompt_psx(psx, msh);
- get_next_line(fd, &counter_line);
+ /* get_next_line(fd, &counter_line); */
+ c_init_tcaps(fd, &counter_line, psx, msh);
if (counter_line[0] != 0)
{
line = ft_nrealloc(line,