summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 21:04:29 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 21:04:29 +0100
commitf543cdc19dae32a70e7efae35f499008bacb2f6b (patch)
tree59ddbdfe412ba4d0f69d9b798cd9e70836d95919 /src/c_init.c
parentRemoved TODO.org (diff)
parentqweqweqweqwe (diff)
download42-minishell-f543cdc19dae32a70e7efae35f499008bacb2f6b.tar.gz
42-minishell-f543cdc19dae32a70e7efae35f499008bacb2f6b.tar.bz2
42-minishell-f543cdc19dae32a70e7efae35f499008bacb2f6b.tar.xz
42-minishell-f543cdc19dae32a70e7efae35f499008bacb2f6b.tar.zst
42-minishell-f543cdc19dae32a70e7efae35f499008bacb2f6b.zip
Merge branch 'master' of jozanleclerc.xyz:42-minishell
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/c_init.c b/src/c_init.c
index c5c2dea..4420c13 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -23,6 +23,7 @@
#include "c_utils_next.h"
#include "c_input.h"
#include "c_utils.h"
+#include "c_utils_next.h"
#include "d_define.h"
#include "m_prompt.h"
#include "s_struct.h"
@@ -76,22 +77,6 @@ static short
return (0);
}
-static void
- c_set_ptr_norme(char key, t_bool *sw, char **p, char **context)
-{
- if ((key == -1 && *p - *context != 0) || key == 1)
- {
- *p += (key == -1) ? (2 * key) : (0);
- while (*sw == FALSE && ((key == -1 && *p - *context != 0) || key == 1)
- && **p != C_LF && **p != C_NUL)
- *p += key;
- if (*sw == TRUE)
- *sw = FALSE;
- if (*p - *context != 0 && **p != C_NUL)
- *p += 1;
- }
-}
-
char
*c_set_ptr(t_bool reset, char key, t_msh *msh)
{