]> git.proxmox.com Git - mirror_qemu.git/commit
qjson: replace QString in JSONLexer with GString
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Nov 2015 21:23:29 +0000 (22:23 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 26 Nov 2015 08:31:22 +0000 (09:31 +0100)
commitd2ca7c0b0d876cf0e219ae7a92252626b0913a28
treeb3b33462ad5376ef9cc4a4b90415365fddbe0c73
parent6b9606f68ec589def27bd2a9cea97ec63cffd581
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>
include/qapi/qmp/json-lexer.h
include/qapi/qmp/json-streamer.h
qobject/json-lexer.c
qobject/json-streamer.c