Skip to content

Use bool for QBool

Eric Blake qemu-devel 1 version Applied

Status from this message: Applied to the qmp branch, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qobject: Use 'bool' for qboolblock/qapi.c block/quorum.c block/vvfat.c +13 more+39 -386 replies
2/2qobject: Use 'bool' inside qdicthmp.c hw/pci/pcie_aer.c include/qapi/qmp/qdict.h +3 more+28 -281 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndreas FärberAlberto GarciaLuiz Capitulino
SeriesA-b
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] Use bool for QBool

Passing around an 'int' for a QBool type is weird, when we already use a C99 compiler and have a sane 'bool' that does just fine.

I half-debated sending this through qemu-trivial, but think it better belongs through the QMP tree. There turned out to be few enough clients that I grouped it into two patches touching a number of files each; but I'm also okay with splitting into finer-grained patches that focus on fewer files at a time if that is desired.

Eric Blake (2):
qobject: Use 'bool' for qbool
qobject: Use 'bool' inside qdict

 block/qapi.c                    |  2 +-
 block/quorum.c                  |  4 ++--
 block/vvfat.c                   |  4 ++--
 hmp.c                           | 40 ++++++++++++++++++++--------------------
 hw/pci/pcie_aer.c               |  4 ++--
 include/qapi/qmp/qbool.h        |  8 ++++----
 include/qapi/qmp/qdict.h        |  4 ++--
 monitor.c                       | 12 ++++++------
 qapi/qmp-input-visitor.c        |  2 +-
 qapi/qmp-output-visitor.c       |  2 +-
 qobject/json-parser.c           |  6 +++---
 qobject/qbool.c                 |  8 ++++----
 qobject/qdict.c                 |  8 ++++----
 qobject/qjson.c                 |  2 +-
 qom/object.c                    |  4 ++--
 tests/check-qjson.c             | 11 ++++++-----
 tests/test-qmp-event.c          |  4 ++--
 tests/test-qmp-output-visitor.c |  6 +++---
 util/qemu-option.c              |  2 +-
 19 files changed, 67 insertions(+), 66 deletions(-)
Signature · 1 line
2.1.0