From mboxrd@z Thu Jan 1 00:00:00 1970 From: waldemar.rymarkiewicz@gmail.com (Waldemar Rymarkiewicz) Date: Thu, 15 Sep 2016 09:44:22 +0200 Subject: [Cocci] Match #define in cocci In-Reply-To: References: Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On 15 September 2016 at 08:41, Waldemar Rymarkiewicz wrote: >> OK, thanks I will look into it. At least in the last case, that is not >> the intended behavior. >> > > One more, I use 1.0.2 version as I had a problem with 1.0.5 > compilation previously. > I will try bump to 1.0. 5 anyway and check the behavior. > Now I use spatch version 1.0.5-00089-g0849d71 compiled with OCaml version 4.02.3 Flags passed to the configure script: [none] Python scripting support: yes Syntax of regular expresssions: PCRE and still cannot mach @@ @@ -#define pr_fmt(fmt) KBUILD_MODNAME fmt minus: parse error: File "patches/1021-pr_fmt_undef.cocci", line 3, column 1, charpos = 7 around = '#define pr_fmt(', whole content = -#define pr_fmt(fmt) KBUILD_MODNAME fmt /Waldek