On Thu, 25 Jul 2019, Markus Elfring wrote: > > @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? Huh? Rule 2 is important, to ensure that ths size is correct. Without rule 1, how can rule 2 be checked? julia
- Re: [Cocci] [Fwd: [PATCH 1/2] string: Add stracpy and strac... Julia Lawall
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stracpy_... Joe Perches
- RE: [Fwd: [PATCH 1/2] string: Add stracpy and stra... David Laight
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Joe Perches
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Julia Lawall
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Julia Lawall
- Re: [Cocci] [PATCH 1/2] string: Add stracpy and st... Markus Elfring
- Re: [Cocci] [PATCH 1/2] string: Add stracpy and st... Julia Lawall
- Re: [1/2] string: Add stracpy and stracpy_pad mech... Markus Elfring
- Re: [Cocci] [PATCH 1/2] string: Add stracpy and st... Markus Elfring
- Re: [PATCH 1/2] string: Add stracpy and stracpy_pa... Julia Lawall
- Re: [1/2] string: Add stracpy and stracpy_pad mech... Markus Elfring
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Joe Perches
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Julia Lawall
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Joe Perches
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Julia Lawall
- Re: [1/2] string: Add stracpy and stracpy_pad mech... Markus Elfring
- Re: [Fwd: [PATCH 1/2] string: Add stracpy and stra... Julia Lawall
- Re: [Cocci] [Fwd: [PATCH 1/2] string: Add stracpy ... Joe Perches
