summaryrefslogtreecommitdiffstats
path: root/src/b_sqb.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:46:03 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:46:03 +0200
commit5eb753276ff9052d3ef93fd2b931a9bfb482590c (patch)
treee0dcc220be90eff1224b9ee1ee706253cb63ef2f /src/b_sqb.c
parentNames update (diff)
download42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.gz
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.bz2
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.xz
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.zst
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.zip
Renamed quite some stuff
Diffstat (limited to 'src/b_sqb.c')
-rw-r--r--src/b_sqb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/b_sqb.c b/src/b_sqb.c
index 2ecf0cd..4ffb001 100644
--- a/src/b_sqb.c
+++ b/src/b_sqb.c
@@ -27,14 +27,14 @@ static uint8_t b_get_sqb_id(char *argv[], t_msh *msh)
uint8_t i;
i = 0;
- while (i < FT_ID_SQB_COUNT)
+ while (i < B_ID_SQB_COUNT)
{
- if (i < FT_ID_SQB_NT &&
+ if (i < B_ID_SQB_NT &&
ft_strncmp(argv[0],
msh->sqb_ref[i],
ft_strlen(msh->sqb_ref[i]) + 1) == 0)
return (i);
- if (i >= FT_ID_SQB_NT &&
+ if (i >= B_ID_SQB_NT &&
ft_strncmp(argv[1],
msh->sqb_ref[i],
ft_strlen(msh->sqb_ref[i]) + 1) == 0)
@@ -50,7 +50,7 @@ static uint8_t b_eval_sqb(char *argv[], t_msh *msh)
uint8_t ret;
id = b_get_sqb_id(argv, msh);
- if (id == FT_ID_SQB_COUNT)
+ if (id == B_ID_SQB_COUNT)
{
ft_dprintf(STDERR_FILENO, "[: %s: unexpected operator\n", argv[0]);
return (2);
@@ -58,14 +58,14 @@ static uint8_t b_eval_sqb(char *argv[], t_msh *msh)
if (b_sqb_err_check(id, argv) != 0)
return (2);
ret = 0;
- if (id < FT_ID_SQB_NT && id != FT_ID_SQB_Z && id != FT_ID_SQB_N)
+ if (id < B_ID_SQB_NT && id != B_ID_SQB_Z && id != B_ID_SQB_N)
ret = b_sqb_file_tests(id, argv);
- else if (id == FT_ID_SQB_NT || id == FT_ID_SQB_OT)
+ else if (id == B_ID_SQB_NT || id == B_ID_SQB_OT)
ret = b_sqb_double_file_tests(id, argv);
- else if (id == FT_ID_SQB_N || id == FT_ID_SQB_Z ||
- id == FT_ID_SQB_EQUA || id == FT_ID_SQB_DIFF)
+ else if (id == B_ID_SQB_N || id == B_ID_SQB_Z ||
+ id == B_ID_SQB_EQUA || id == B_ID_SQB_DIFF)
ret = b_sqb_str(id, argv);
- else if (id >= FT_ID_SQB_EQ)
+ else if (id >= B_ID_SQB_EQ)
ret = b_sqb_nbr(id, argv);
return (ret);
}