diff options
author | K.Kosako <kkosako0@gmail.com> | 2023-05-01 23:52:51 +0900 |
---|---|---|
committer | K.Kosako <kkosako0@gmail.com> | 2023-05-01 23:52:51 +0900 |
commit | 41a3b802af2155eef6d648aa3608e39605110642 (patch) | |
tree | 29acb1bd426982e77e803e1d3520315adc4a3874 | |
parent | b35dd4e70436fa3a2cab59747e6c0bde5f6d5641 (diff) | |
download | oniguruma-41a3b802af2155eef6d648aa3608e39605110642.zip oniguruma-41a3b802af2155eef6d648aa3608e39605110642.tar.gz oniguruma-41a3b802af2155eef6d648aa3608e39605110642.tar.bz2 |
remove code scanning warnings: Irregular enum initialization
-rw-r--r-- | src/gb18030.c | 4 | ||||
-rw-r--r-- | src/regint.h | 6 | ||||
-rw-r--r-- | src/regparse.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gb18030.c b/src/gb18030.c index 1da19b4..3dcfca6 100644 --- a/src/gb18030.c +++ b/src/gb18030.c @@ -2,7 +2,7 @@ gb18030.c - Oniguruma (regular expression library) **********************************************************************/ /*- - * Copyright (c) 2005-2020 KUBO Takehiro <kubo AT jiubao DOT org> + * Copyright (c) 2005-2023 KUBO Takehiro <kubo AT jiubao DOT org> * K.Kosako * All rights reserved. * @@ -180,7 +180,7 @@ gb18030_is_code_ctype(OnigCodePoint code, unsigned int ctype) enum state { S_START = 0, - S_one_C2 = 1, + S_one_C2, S_one_C4, S_one_CM, diff --git a/src/regint.h b/src/regint.h index 19878fc..32018e3 100644 --- a/src/regint.h +++ b/src/regint.h @@ -4,7 +4,7 @@ regint.h - Oniguruma (regular expression library) **********************************************************************/ /*- - * Copyright (c) 2002-2022 K.Kosako + * Copyright (c) 2002-2023 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -470,8 +470,8 @@ typedef Bits* BitSetRef; /* operation code */ enum OpCode { OP_FINISH = 0, /* matching process terminator (no more alternative) */ - OP_END = 1, /* pattern code terminator (success end) */ - OP_STR_1 = 2, /* single byte, N = 1 */ + OP_END, /* pattern code terminator (success end) */ + OP_STR_1, /* single byte, N = 1 */ OP_STR_2, /* single byte, N = 2 */ OP_STR_3, /* single byte, N = 3 */ OP_STR_4, /* single byte, N = 4 */ diff --git a/src/regparse.c b/src/regparse.c index 374ff07..88a6ca3 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -4336,7 +4336,7 @@ quantifier_type_num(QuantNode* q) enum ReduceType { RQ_ASIS = 0, /* as is */ - RQ_DEL = 1, /* delete parent */ + RQ_DEL, /* delete parent */ RQ_A, /* to '*' */ RQ_P, /* to '+' */ RQ_AQ, /* to '*?' */ @@ -4473,7 +4473,7 @@ node_new_general_newline(Node** node, ParseEnv* env) enum TokenSyms { TK_EOT = 0, /* end of token */ - TK_CRUDE_BYTE = 1, + TK_CRUDE_BYTE, TK_CHAR, TK_STRING, TK_CODE_POINT, |