summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/b_sqb.c2
-rw-r--r--src/d_define.h6
-rw-r--r--src/s_init.c1
3 files changed, 6 insertions, 3 deletions
diff --git a/src/b_sqb.c b/src/b_sqb.c
index 8dcea35..d78e345 100644
--- a/src/b_sqb.c
+++ b/src/b_sqb.c
@@ -63,6 +63,8 @@ static uint8_t
return (2);
}
/* TODO: check errors */
+ if (id < )
+ ft_printf("%s\n", msh->sqb_ref[id]);
return (0);
}
diff --git a/src/d_define.h b/src/d_define.h
index 18a60b4..b0840f7 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -77,10 +77,11 @@
#define FT_SQB_D "-d"
#define FT_SQB_E "-e"
#define FT_SQB_F "-f"
-#define FT_SQB_G "-g"
#define FT_SQB_H "-h"
#define FT_SQB_K "-k"
#define FT_SQB_N "-n"
+#define FT_SQB_P "-p"
+#define FT_SQB_R "-r"
#define FT_SQB_S "-s"
#define FT_SQB_U "-u"
#define FT_SQB_W "-w"
@@ -106,10 +107,11 @@ enum
FT_ID_SQB_D,
FT_ID_SQB_E,
FT_ID_SQB_F,
- FT_ID_SQB_G,
FT_ID_SQB_H,
FT_ID_SQB_K,
FT_ID_SQB_N,
+ FT_ID_SQB_P,
+ FT_ID_SQB_R,
FT_ID_SQB_S,
FT_ID_SQB_U,
FT_ID_SQB_W,
diff --git a/src/s_init.c b/src/s_init.c
index acef5d6..d42822c 100644
--- a/src/s_init.c
+++ b/src/s_init.c
@@ -34,7 +34,6 @@ static void
ft_memcpy(msh->sqb_ref[FT_ID_SQB_D], FT_SQB_D, ft_strlen(FT_SQB_D) + 1);
ft_memcpy(msh->sqb_ref[FT_ID_SQB_E], FT_SQB_E, ft_strlen(FT_SQB_E) + 1);
ft_memcpy(msh->sqb_ref[FT_ID_SQB_F], FT_SQB_F, ft_strlen(FT_SQB_F) + 1);
- ft_memcpy(msh->sqb_ref[FT_ID_SQB_G], FT_SQB_G, ft_strlen(FT_SQB_G) + 1);
ft_memcpy(msh->sqb_ref[FT_ID_SQB_H], FT_SQB_H, ft_strlen(FT_SQB_H) + 1);
ft_memcpy(msh->sqb_ref[FT_ID_SQB_K], FT_SQB_K, ft_strlen(FT_SQB_K) + 1);
ft_memcpy(msh->sqb_ref[FT_ID_SQB_N], FT_SQB_N, ft_strlen(FT_SQB_N) + 1);