Re: [Qemu-devel] [PATCH v10 04/30] qapi: Share test_init code in test-qmp-input*

2015-11-06 Thread Markus Armbruster
Eric Blake writes: > Rather than duplicate the body of two functions just to > decide between qobject_from_jsonv() and qobject_from_json(), > exploit the fact that qobject_from_jsonv() intentionally > takes 'va_list *' instead of the more common 'va_list', and > that qobject_from_json() just call

[Qemu-devel] [PATCH v10 04/30] qapi: Share test_init code in test-qmp-input*

2015-11-05 Thread Eric Blake
Rather than duplicate the body of two functions just to decide between qobject_from_jsonv() and qobject_from_json(), exploit the fact that qobject_from_jsonv() intentionally takes 'va_list *' instead of the more common 'va_list', and that qobject_from_json() just calls qobject_from_jsonv(,NULL). Fo