]> git.proxmox.com Git - mirror_qemu.git/commit
json: Keep interpolation state in JSONParserContext
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Aug 2018 16:40:22 +0000 (18:40 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 24 Aug 2018 18:26:37 +0000 (20:26 +0200)
commitada74c3ba1b4f51e4462e186c251eaa974015bb8
tree563fca93cf6087ad396f36051d47aaa5d4036ba1
parent83273e84d9646bb902e1debfdcb68c8afd38614f
json: Keep interpolation state in JSONParserContext

The recursive descent parser passes along a pointer to
JSONParserContext.  It additionally passes a pointer to interpolation
state (a va_alist *) as needed to reach its consumer
parse_interpolation().

Stuffing the latter pointer into JSONParserContext saves us the
trouble of passing it along, so do that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-56-armbru@redhat.com>
qobject/json-parser.c