From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b32Mw-0006xv-1M for qemu-devel@nongnu.org; Wed, 18 May 2016 10:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b32Mr-0001JG-S2 for qemu-devel@nongnu.org; Wed, 18 May 2016 10:22:36 -0400 References: <1463563673-671-1-git-send-email-pbonzini@redhat.com> From: Eric Blake Message-ID: <573C7AA8.5000205@redhat.com> Date: Wed, 18 May 2016 08:22:32 -0600 MIME-Version: 1.0 In-Reply-To: <1463563673-671-1-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8KL8fSauunT2DxtfI48R6HQ4E49CwVj17" Subject: Re: [Qemu-devel] [PATCH] coccinelle: add g_assert_cmp* to macro file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8KL8fSauunT2DxtfI48R6HQ4E49CwVj17 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/18/2016 03:27 AM, Paolo Bonzini wrote: > This helps applying semantic patches to unit tests. >=20 > Signed-off-by: Paolo Bonzini > --- > scripts/cocci-macro-file.h | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: Eric Blake >=20 > 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) >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --8KL8fSauunT2DxtfI48R6HQ4E49CwVj17 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXPHqoAAoJEKeha0olJ0NqD/cH/3aClrHFWVLxJxESWTu1vBoJ tDI+AB/ykq4zRGIG1irI2Dqy6IYm1l9h3pci+HiNwvP/8R7kKhRh5qU9MSgRKLGO Toaz5MnX3z8XlAvXl2LNAlys3Q9XPdtDmRY/+WTYn+v2fd0VNaR/TUnGsWocdXmT KCaIqV9fZ3pMWT8e0zvqkWw3+N5xTiyz4UakkbOsxA3UrANDjvv1ye7F/RYhjgmM RtBO7gjSbiv4HWU/5LN/LHJe246/9OirFkSyRFicRf5HPq15Mla9dr9QFRlB4b4i R9PK4df6A/2rd9OJVfLKkg9aR3KkcFivZfPVame4UVlkn012JZ0t3RjTSzxX+NA= =KJvF -----END PGP SIGNATURE----- --8KL8fSauunT2DxtfI48R6HQ4E49CwVj17--