summaryrefslogtreecommitdiffstats
path: root/src/b_sqb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_sqb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/b_sqb.c b/src/b_sqb.c
index 90e9b58..438f692 100644
--- a/src/b_sqb.c
+++ b/src/b_sqb.c
@@ -14,6 +14,7 @@
#include <stdint.h>
#include <unistd.h>
+#include "b_sqb_file.h"
#include "d_define.h"
#include "s_struct.h"
#include "u_utils.h"
@@ -49,13 +50,12 @@ static uint8_t
}
static uint8_t
- b_eval_sqb(uint64_t argc,
- char *argv[],
+ b_eval_sqb(char *argv[],
t_msh *msh)
{
uint8_t id;
+ uint8_t ret;
- (void)argc;
id = b_get_sqb_id(argv, msh);
if (id == FT_ID_SQB_COUNT)
{
@@ -63,9 +63,10 @@ static uint8_t
return (2);
}
/* TODO: check errors */
+ ret = 0;
if (id < FT_ID_SQB_NT && id != FT_ID_SQB_Z && id != FT_ID_SQB_N)
- ft_printf("%s\n", msh->sqb_ref[id]);
- return (0);
+ ret = b_sqb_file_tests(id, argv);
+ return (ret);
}
uint8_t