mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 14:02:05 -06:00
json-lexer: fix conflict with mingw32 ERROR definition
The name ERROR is too generic, it conflicts with mingw32 ERROR definition. Replace ERROR with IN_ERROR. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
1a00282a73
commit
33d05394a6
1 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum json_lexer_state {
|
enum json_lexer_state {
|
||||||
ERROR = 0,
|
IN_ERROR = 0,
|
||||||
IN_DQ_UCODE3,
|
IN_DQ_UCODE3,
|
||||||
IN_DQ_UCODE2,
|
IN_DQ_UCODE2,
|
||||||
IN_DQ_UCODE1,
|
IN_DQ_UCODE1,
|
||||||
|
@ -150,7 +150,7 @@ static const uint8_t json_lexer[][256] = {
|
||||||
/* Zero */
|
/* Zero */
|
||||||
[IN_ZERO] = {
|
[IN_ZERO] = {
|
||||||
TERMINAL(JSON_INTEGER),
|
TERMINAL(JSON_INTEGER),
|
||||||
['0' ... '9'] = ERROR,
|
['0' ... '9'] = IN_ERROR,
|
||||||
['.'] = IN_MANTISSA,
|
['.'] = IN_MANTISSA,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ static int json_lexer_feed_char(JSONLexer *lexer, char ch)
|
||||||
lexer->token = qstring_new();
|
lexer->token = qstring_new();
|
||||||
new_state = IN_START;
|
new_state = IN_START;
|
||||||
break;
|
break;
|
||||||
case ERROR:
|
case IN_ERROR:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue