commit: 5916e586589844d3cbb8f536080f4f91451756cb
parent 6046a73abd8b8628179659e2a4e83eb98e25f8c5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 26 Aug 2024 17:23:54 +0200
cmd/test.c: make format, newline between struct declr
Diffstat:
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/cmd/test.c b/cmd/test.c
@@ -108,21 +108,21 @@ enum token
#define TOKEN_TYPE(token) ((token) & 0xff00)
+// clang-format off
static const struct t_op
{
char op_text[2];
short op_num;
-} ops1
- [] =
- {
- // clang-format off
+} ops1[] =
+{
{"=", STREQ},
{"<", STRLT},
{">", STRGT},
{"!", UNOT},
{"(", LPAREN},
{")", RPAREN},
-}, opsm1[] = {
+},
+opsm1[] = {
{"r", FILRD},
{"w", FILWR},
{"x", FILEX},
@@ -146,10 +146,12 @@ static const struct t_op
{"S", FILSOCK},
{"a", BAND},
{"o", BOR},
-}, ops2[] = {
+},
+ops2[] = {
{"==", STREQ},
{"!=", STRNE},
-}, opsm2[] = {
+},
+opsm2[] = {
{"eq", INTEQ},
{"ne", INTNE},
{"ge", INTGE},
@@ -159,8 +161,8 @@ static const struct t_op
{"nt", FILNT},
{"ot", FILOT},
{"ef", FILEQ},
- // clang-format on
};
+// clang-format on
static int nargc;
static char **t_wp;