[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7e489aa8-95ea-b3b0-9023-ba284212977f@web.de>
Date: Thu, 25 Jul 2019 15:45:46 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Julia Lawall <julia.lawall@...6.fr>, cocci@...teme.lip6.fr,
kernel-janitors@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
David Laight <David.Laight@...LAB.COM>,
Joe Perches <joe@...ches.com>
Subject: Re: [PATCH 1/2] string: Add stracpy and stracpy_pad mechanisms
> @r@
> identifier f,i1,i2;
> struct i1 e1;
> expression e2;
> position p;
> @@
> \(strscpy\|strlcpy\)(e1.f, e2, i2)@p
I have got the impression that the replacement can work also
without an inherited position variable at the end.
How do you think about to omit this SmPL rule then?
Can it be nicer to reduce duplicate SmPL code a bit?
Regards,
Markus
Powered by blists - more mailing lists