aboutsummaryrefslogtreecommitdiffstats
path: root/src/tok.c
diff options
context:
space:
mode:
authorkatherine <shmibs@airen-no-jikken.icu>2019-05-27 16:29:08 -0700
committerkatherine <shmibs@airen-no-jikken.icu>2019-05-27 16:29:08 -0700
commit31423d1ce9d902b988c9b38f996718c7095d4315 (patch)
treed247172e33dc04f194456ba2498287185b5528fb /src/tok.c
parent79985ce2ecc8630a2c1ca48a8eef61e3a69c3fdd (diff)
downloadconfconf-31423d1ce9d902b988c9b38f996718c7095d4315.tar.gz
implement hash parsing generation
Diffstat (limited to 'src/tok.c')
-rw-r--r--src/tok.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tok.c b/src/tok.c
index 04d1eb8..177507a 100644
--- a/src/tok.c
+++ b/src/tok.c
@@ -70,11 +70,9 @@ static void sub_match_op(void)
enum tok_type_e type;
char name[(32 < TOK_MAX_LEN ? 32 : TOK_MAX_LEN)];
} ops[] = {
- { true, TOK_OP_STRUCT, ".struct" },
- { true, TOK_OP_UNION, ".union" },
- { true, TOK_OP_HKEY_SIZE, ".hash-key-size" },
- { true, TOK_OP_HKEY_NAME, ".hash-key-name" },
- { true, TOK_OP_FUN_SUF, ".function-suffix" },
+ { true, TOK_OP_SUFFIX, ".suffix" },
+ { true, TOK_OP_STRUCT, ".struct" },
+ { true, TOK_OP_UNION, ".union" },
};
unsigned i, j;
bool again;
@@ -97,7 +95,7 @@ static void sub_match_op(void)
val[vlen] = c;
vlen++;
- for (j = 0; j < 5; j++) {
+ for (j = 0; j < 3; j++) {
if (!ops[j].possible)
continue;