From: Eric Blake <eblake@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] coccinelle: add g_assert_cmp* to macro file
Date: Wed, 18 May 2016 08:22:32 -0600 [thread overview]
Message-ID: <573C7AA8.5000205@redhat.com> (raw)
In-Reply-To: <1463563673-671-1-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
On 05/18/2016 03:27 AM, Paolo Bonzini wrote:
> This helps applying semantic patches to unit tests.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> scripts/cocci-macro-file.h | 6 ++++++
> 1 file changed, 6 insertions(+)
Reviewed-by: Eric Blake <eblake@redhat.com>
>
> diff --git a/scripts/cocci-macro-file.h b/scripts/cocci-macro-file.h
> index eceb4be..9f2e72e 100644
> --- a/scripts/cocci-macro-file.h
> +++ b/scripts/cocci-macro-file.h
> @@ -117,3 +117,9 @@ struct { \
> type *tqe_next; /* next element */ \
> type **tqe_prev; /* address of previous next element */ \
> }
> +
> +/* From glib */
> +#define g_assert_cmpint(a, op, b) g_assert(a op b)
> +#define g_assert_cmpuint(a, op, b) g_assert(a op b)
Odd indentation, compared to the other lines.
> +#define g_assert_cmphex(a, op, b) g_assert(a op b)
> +#define g_assert_cmpstr(a, op, b) g_assert(strcmp(a, b) op 0)
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Eric Blake <eblake@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] coccinelle: add g_assert_cmp* to macro file
Date: Wed, 18 May 2016 08:22:32 -0600 [thread overview]
Message-ID: <573C7AA8.5000205@redhat.com> (raw)
In-Reply-To: <1463563673-671-1-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
On 05/18/2016 03:27 AM, Paolo Bonzini wrote:
> This helps applying semantic patches to unit tests.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> scripts/cocci-macro-file.h | 6 ++++++
> 1 file changed, 6 insertions(+)
Reviewed-by: Eric Blake <eblake@redhat.com>
>
> diff --git a/scripts/cocci-macro-file.h b/scripts/cocci-macro-file.h
> index eceb4be..9f2e72e 100644
> --- a/scripts/cocci-macro-file.h
> +++ b/scripts/cocci-macro-file.h
> @@ -117,3 +117,9 @@ struct { \
> type *tqe_next; /* next element */ \
> type **tqe_prev; /* address of previous next element */ \
> }
> +
> +/* From glib */
> +#define g_assert_cmpint(a, op, b) g_assert(a op b)
> +#define g_assert_cmpuint(a, op, b) g_assert(a op b)
Odd indentation, compared to the other lines.
> +#define g_assert_cmphex(a, op, b) g_assert(a op b)
> +#define g_assert_cmpstr(a, op, b) g_assert(strcmp(a, b) op 0)
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-05-18 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 9:27 [Qemu-trivial] [PATCH] coccinelle: add g_assert_cmp* to macro file Paolo Bonzini
2016-05-18 9:27 ` [Qemu-devel] " Paolo Bonzini
2016-05-18 14:22 ` Eric Blake [this message]
2016-05-18 14:22 ` Eric Blake
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=573C7AA8.5000205@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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.