qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-5.1 3/5] qobject: Eliminate qlist_iter(), use QLIST_FOREA


From: Eric Blake
Subject: Re: [PATCH for-5.1 3/5] qobject: Eliminate qlist_iter(), use QLIST_FOREACH_ENTRY() instead
Date: Wed, 15 Apr 2020 07:31:40 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 4/15/20 3:30 AM, Markus Armbruster wrote:
qlist_iter() has just three uses outside tests/.  Replace by
QLIST_FOREACH_ENTRY() for more concise code and less type punning.

Signed-off-by: Markus Armbruster <address@hidden>
---
  include/qapi/qmp/qlist.h |  2 --
  qobject/qjson.c          | 31 ++++++++++------------------
  qobject/qlist.c          | 44 +++++++++++-----------------------------
  tests/check-qlist.c      | 37 +++++++++++++--------------------
  4 files changed, 37 insertions(+), 77 deletions(-)


Reviewed-by: Eric Blake <address@hidden>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]