unicorn/qemu/qapi
Eric Blake 1bb4e4c787
qmp-input: Don't consume input when checking has_member
Commit e8316d7 mistakenly passed consume=true within
qmp_input_optional() when checking if an optional member was
present, but the mistake was silently ignored since the code
happily let us extract a member more than once. Fix
qmp_input_optional() to not consume anything, then tighten up
the input visitor to ensure that a member is consumed exactly
once (all generated code follows this pattern; and the new
assert will catch any hand-written code that tries to visit
the same key more than once).

Backports commit e5826a2fd727f0be54a81083f31fe02a275465cd from qemu
2018-02-23 15:12:58 -05:00
..
common.json qapi: Add alias for ErrorClass 2018-02-19 20:38:51 -05:00
Makefile.objs remove glib dependency by provide compatible replacements 2016-12-18 14:56:58 -08:00
qapi-dealloc-visitor.c qapi: Adjust layout of FooList types 2018-02-23 14:49:06 -05:00
qapi-visit-core.c qapi: Guarantee NULL obj on input visitor callback error 2018-02-23 14:53:23 -05:00
qmp-input-visitor.c qmp-input: Don't consume input when checking has_member 2018-02-23 15:12:58 -05:00
qmp-output-visitor.c qapi: Adjust layout of FooList types 2018-02-23 14:49:06 -05:00
string-input-visitor.c qapi: Guarantee NULL obj on input visitor callback error 2018-02-23 14:53:23 -05:00