Re: [Qemu-devel] [PATCH 32/56] json: Have lexer call streamer directly

2018-08-10 Thread Eric Blake
On 08/08/2018 07:03 AM, Markus Armbruster wrote: json_lexer_init() takes the function to process a token as an argument. It's always json_message_process_token(). Makes the code harder to understand for no actual gain. Drop the indirection. Signed-off-by: Markus Armbruster --- Reviewed-by:

[Qemu-devel] [PATCH 32/56] json: Have lexer call streamer directly

2018-08-08 Thread Markus Armbruster
json_lexer_init() takes the function to process a token as an argument. It's always json_message_process_token(). Makes the code harder to understand for no actual gain. Drop the indirection. Signed-off-by: Markus Armbruster --- include/qapi/qmp/json-lexer.h| 13 +++-- include/qap