From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvjWQ-0006MU-NF for qemu-devel@nongnu.org; Wed, 05 Apr 2017 07:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvjWP-0007hq-V0 for qemu-devel@nongnu.org; Wed, 05 Apr 2017 07:54:46 -0400 References: <20170118161653.19296-1-eblake@redhat.com> <20170118161653.19296-3-eblake@redhat.com> <87lgu7flkc.fsf@dusky.pond.sub.org> <9e16eb02-dc8b-b25f-0aba-d4a9ff3b5a02@redhat.com> <274218e6-5539-9eef-56bc-c2de4d11a593@redhat.com> <20170405081835.GB30620@redhat.com> <20170405082443.GD30620@redhat.com> <20170405090151.GK30620@redhat.com> From: Paolo Bonzini Message-ID: <1af948cb-4fbd-8ae4-8690-8a3f9e439987@redhat.com> Date: Wed, 5 Apr 2017 13:54:24 +0200 MIME-Version: 1.0 In-Reply-To: <20170405090151.GK30620@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" , Julia Lawall Cc: Eric Blake , Markus Armbruster , Ronnie Sahlberg , Jeff Cody , qemu-devel@nongnu.org, Alexander Graf , Gerd Hoffmann , Stefano Stabellini , Alberto Garcia , "open list:Block layer core" , Michael Roth , Anthony Perard , Fam Zheng , Chrysostomos Nanakos , Stefan Weil , Peter Lieven , "Dr. David Alan Gilbert" , "open list:X86" , Stefan Hajnoczi , Richard Henderson , Kevin Wolf , Max Reitz On 05/04/2017 11:01, Richard W.M. Jones wrote: > On Wed, Apr 05, 2017 at 10:38:37AM +0200, Julia Lawall wrote: >> OK, there is nothing special about g_assert_cmpint, but Coccinelle expects >> expressions or types in function argument lists, so it gives a parse error >> on finding an ==. > > I should have checked the coccinelle mailing list before asking you, > because I see that Eric already asked this question and you answered > it. For reference, that is here: > > https://systeme.lip6.fr/pipermail/cocci/2017-April/004107.html > > Thanks again, Eric, are you using the scripts/cocci-macro-file.h? commit 6ad978e9f40d3edfd9f4a86b4a60e3523eff08fe Author: Paolo Bonzini Date: Wed May 18 11:11:55 2016 +0200 coccinelle: add g_assert_cmp* to macro file This helps applying semantic patches to unit tests. Signed-off-by: Paolo Bonzini Thanks, Paolo