aboutsummaryrefslogtreecommitdiffstats
path: root/json-lexer.c
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-09 23:47:30 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:34 -0700
commit01a3f8da9e719ec696d4b5c9bbd94641bd3665eb (patch)
treebc4b030be97e6939936f3fe729b96fb4efa24caf /json-lexer.c
parentcb34fa2cb61a4a838b32126fd28eb3450fd9f8ec (diff)
downloadexternal_qemu-01a3f8da9e719ec696d4b5c9bbd94641bd3665eb.zip
external_qemu-01a3f8da9e719ec696d4b5c9bbd94641bd3665eb.tar.gz
external_qemu-01a3f8da9e719ec696d4b5c9bbd94641bd3665eb.tar.bz2
fix win32 build.
Diffstat (limited to 'json-lexer.c')
-rw-r--r--json-lexer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/json-lexer.c b/json-lexer.c
index c736f42..072ae56 100644
--- a/json-lexer.c
+++ b/json-lexer.c
@@ -28,7 +28,7 @@
*/
enum json_lexer_state {
- ERROR = 0,
+ JSON_ERROR = 0,
IN_DQ_UCODE3,
IN_DQ_UCODE2,
IN_DQ_UCODE1,
@@ -150,7 +150,7 @@ static const uint8_t json_lexer[][256] = {
/* Zero */
[IN_ZERO] = {
TERMINAL(JSON_INTEGER),
- ['0' ... '9'] = ERROR,
+ ['0' ... '9'] = JSON_ERROR,
['.'] = IN_MANTISSA,
},
@@ -302,7 +302,7 @@ static int json_lexer_feed_char(JSONLexer *lexer, char ch)
lexer->token = qstring_new();
new_state = IN_START;
break;
- case ERROR:
+ case JSON_ERROR:
return -EINVAL;
default:
break;