qjson: replace QString in JSONLexer with GString
JSONLexer only needs a simple resizable buffer. json-streamer.c can allocate memory for each token instead of relying on reference counting of QStrings. Signed-off-by:Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1448300659-23559-2-git-send-email-pbonzini@redhat.com> [Straightforwardly rebased on my patches, checkpatch made happy] Signed-off-by:
Markus Armbruster <armbru@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com>
Showing
- include/qapi/qmp/json-lexer.h 4 additions, 4 deletionsinclude/qapi/qmp/json-lexer.h
- include/qapi/qmp/json-streamer.h 1 addition, 0 deletionsinclude/qapi/qmp/json-streamer.h
- qobject/json-lexer.c 8 additions, 14 deletionsqobject/json-lexer.c
- qobject/json-streamer.c 5 additions, 4 deletionsqobject/json-streamer.c
Loading
Please register or sign in to comment