summaryrefslogtreecommitdiffstats
path: root/src/s_lcom.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/s_lcom.c (renamed from src/ft_s_lcom.c)28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ft_s_lcom.c b/src/s_lcom.c
index d56ba7f..31b14d6 100644
--- a/src/ft_s_lcom.c
+++ b/src/s_lcom.c
@@ -1,7 +1,7 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* ft_s_lcom.c :+: :+: :+: */
+/* s_lcom.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
@@ -14,12 +14,12 @@
#include <stdlib.h>
#include <stdint.h>
-#include "ft_p_lcom.h"
-#include "ft_p_lcom_next.h"
-#include "ft_s_struct.h"
+#include "p_lcom.h"
+#include "p_lcom_next.h"
+#include "s_struct.h"
static int8_t
- ft_fill_lcom(char *words[],
+ fill_lcom(char *words[],
t_lcom **lcom)
{
/* TODO: norme */
@@ -61,7 +61,7 @@ static int8_t
}
t_lcom
- *ft_lcom_last(t_lcom *lcom)
+ *lcom_last(t_lcom *lcom)
{
while (lcom->next != NULL)
lcom = lcom->next;
@@ -69,7 +69,7 @@ t_lcom
}
void
- ft_lcom_add_back(t_lcom **alcom,
+ lcom_add_back(t_lcom **alcom,
t_lcom *new)
{
t_lcom *tmp;
@@ -78,13 +78,13 @@ void
*alcom = new;
else
{
- tmp = ft_lcom_last(*alcom);
+ tmp = lcom_last(*alcom);
tmp->next = new;
}
}
void
- ft_lcom_clear(t_lcom **lcom)
+ lcom_clear(t_lcom **lcom)
{
t_lcom *tmp;
t_lcom *renext;
@@ -107,7 +107,7 @@ void
}
t_lcom
- *ft_lcom_new(const char word[],
+ *lcom_new(const char word[],
t_msh *msh)
{
/* TODO: norme */
@@ -128,13 +128,13 @@ t_lcom
return (link);
}
link->pipes = NULL;
- if (ft_get_redir(word, &link) != 0)
+ if (get_redir(word, &link) != 0)
return (NULL);
- if (!(words = ft_subst_args(word, link->redir)))
+ if (!(words = subst_args(word, link->redir)))
return (NULL);
- if (!(words = ft_subst_vars(words, msh)))
+ if (!(words = subst_vars(words, msh)))
return (NULL);
- if (ft_fill_lcom(words, &link) < 0)
+ if (fill_lcom(words, &link) < 0)
{
ft_delwords(words);
return (NULL);