Received: from eggs.gnu.org ([2001:4830:134:3::10]:46611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlCKl-0007A9-8R for qemu-devel@nongnu.org; Fri, 25 Aug 2017 06:59:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlCKg-0004iW-Dl for qemu-devel@nongnu.org; Fri, 25 Aug 2017 06:59:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43494) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlCKg-0004hx-8G for qemu-devel@nongnu.org; Fri, 25 Aug 2017 06:59:22 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D583C285B5 for ; Fri, 25 Aug 2017 10:59:19 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 25 Aug 2017 12:58:59 +0200 Message-Id: <20170825105913.4060-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 00/14] Generate a literal qobject for introspection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Hi, This series is based on patches 2-5 from "[PATCH v2 00/54] qapi: add #if pre-processor conditions to generated code". Generating a literal qobject will allow to easily introduce #if conditionals from the original series. v2: - use QLIST_FOREACH_ENTRY for list comparison - update qdict comparison to check for the size instead of doing a qdict copy - commit message update - add r-b tags Marc-Andr=C3=A9 Lureau (14): qdict: add qdict_put_null() helper qlit: move qlit from check-qjson to qobject/ qlit: use QLit prefix consistently qlit: remove compound literals qlit: rename compare_litqobj_to_qobj() to qlit_equal_qobject() qlit: make qlit_equal_qobject return a bool qlit: make qlit_equal_qobject() take const arguments qlit: add QLIT_QNULL and QLIT_BOOL qlit: Replace open-coded qnum_get_int() by call tests: add qlit tests qlit: improve QLit dict vs qdict comparison qlit: improve QLit list vs qlist comparison qlit: add qobject_form_qlit() qapi: generate a literal qobject for introspection scripts/qapi-introspect.py | 87 ++++++++++++--------- include/qapi/qmp/qdict.h | 4 +- include/qapi/qmp/qlit.h | 56 ++++++++++++++ monitor.c | 2 +- qobject/qlit.c | 121 ++++++++++++++++++++++++++++++ target/i386/cpu.c | 4 +- tests/check-qjson.c | 150 +++++++------------------------= ------ tests/check-qlit.c | 100 +++++++++++++++++++++++++ tests/test-qobject-input-visitor.c | 11 ++- docs/devel/qapi-code-gen.txt | 29 ++++--- qobject/Makefile.objs | 2 +- tests/Makefile.include | 5 +- 12 files changed, 393 insertions(+), 178 deletions(-) create mode 100644 include/qapi/qmp/qlit.h create mode 100644 qobject/qlit.c create mode 100644 tests/check-qlit.c --=20 2.14.1.146.gd35faa819