All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Peter Crosthwaite <crosthwaite.peter@gmail.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v3 2/6] queue: Add macro for incremental traversal
Date: Tue, 27 Dec 2016 15:53:05 +0000	[thread overview]
Message-ID: <CAFEAcA9QHXR2obCYytP0RD9e=Tgzq_MaEhKK1nBfO0FveS+J6g@mail.gmail.com> (raw)
In-Reply-To: <148285304262.12721.17599380934779528989.stgit@fimbulvetr.bsc.es>

On 27 December 2016 at 15:37, Lluís Vilanova <vilanova@ac.upc.edu> wrote:
> Adds macro QTAILQ_FOREACH_CONTINUE to support incremental list
> traversal.
>
> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
> ---
>  include/qemu/queue.h |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/qemu/queue.h b/include/qemu/queue.h
> index 342073fb4d..0d709016f4 100644
> --- a/include/qemu/queue.h
> +++ b/include/qemu/queue.h
> @@ -415,6 +415,11 @@ struct {                                                                \
>                  (var);                                                  \
>                  (var) = ((var)->field.tqe_next))
>
> +#define QTAILQ_FOREACH_CONTINUE(var, field)                             \
> +        for ((var) = ((var)->field.tqe_next);                           \
> +                (var);                                                  \
> +                (var) = ((var)->field.tqe_next))
> +
>  #define QTAILQ_FOREACH_SAFE(var, head, field, next_var)                 \
>          for ((var) = ((head)->tqh_first);                               \
>                  (var) && ((next_var) = ((var)->field.tqe_next), 1);     \

Could we have some documentation for the new macro, please?

thanks
-- PMM

  reply	other threads:[~2016-12-27 15:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27 15:37 [Qemu-devel] [RFC PATCH v3 0/6] translate: [tcg] Generic translation framework Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 1/6] Pass generic CPUState to gen_intermediate_code() Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 2/6] queue: Add macro for incremental traversal Lluís Vilanova
2016-12-27 15:53   ` Peter Maydell [this message]
2016-12-27 19:07     ` Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 3/6] target: [tcg] Add generic translation framework Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 4/6] target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*) Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 5/6] target: [tcg, i386] Port to generic translation framework Lluís Vilanova
2016-12-27 15:37 ` [Qemu-devel] [PATCH v3 6/6] target: [tcg, arm] " Lluís Vilanova
2016-12-27 16:07 ` [Qemu-devel] [RFC PATCH v3 0/6] translate: [tcg] Generic " no-reply
2016-12-27 19:08   ` Lluís Vilanova
2016-12-27 16:10 ` no-reply
2016-12-27 19:09   ` Lluís Vilanova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFEAcA9QHXR2obCYytP0RD9e=Tgzq_MaEhKK1nBfO0FveS+J6g@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=crosthwaite.peter@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=vilanova@ac.upc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.