implement optional lookahead in json lexer
commitf7c052747e4b139df16e1d5b7851f4729acc2bb7
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 May 2010 07:39:52 +0000 (24 09:39 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 11 Jun 2010 18:25:14 +0000 (11 15:25 -0300)
treecbdef39614a22f702ace4b66be1d38661af69400
parent7f8fca7c8add770d6533c44d2d001c0442ed0371
implement optional lookahead in json lexer

Not requiring one extra character when lookahead is not necessary
ensures that clients behave properly even if they, for example,
send QMP requests without a trailing newline.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
json-lexer.c