diff options
author | katherine <shmibs@airen-no-jikken.icu> | 2019-05-27 16:29:08 -0700 |
---|---|---|
committer | katherine <shmibs@airen-no-jikken.icu> | 2019-05-27 16:29:08 -0700 |
commit | 31423d1ce9d902b988c9b38f996718c7095d4315 (patch) | |
tree | d247172e33dc04f194456ba2498287185b5528fb /src/tok.c | |
parent | 79985ce2ecc8630a2c1ca48a8eef61e3a69c3fdd (diff) | |
download | confconf-31423d1ce9d902b988c9b38f996718c7095d4315.tar.gz |
implement hash parsing generation
Diffstat (limited to 'src/tok.c')
-rw-r--r-- | src/tok.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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; |