Re: [Cocci] Automatic replacement of function declarations

2017-08-28 Thread Kees Cook
On Mon, Aug 28, 2017 at 4:34 AM, Julia Lawall wrote: > > > On Sun, 27 Aug 2017, Kees Cook wrote: > >> Hi, >> >> So, I noticed that if I replace argument types in a function, >> coccinelle will normally replace them in any forward declarations too. >> However, this: >> >>

Re: [Cocci] Automatic replacement of function declarations

2017-08-28 Thread Julia Lawall
On Sun, 27 Aug 2017, Kees Cook wrote: > Hi, > > So, I noticed that if I replace argument types in a function, > coccinelle will normally replace them in any forward declarations too. > However, this: > > @change_callback > depends on patch@ > identifier _callback; > type _origtype; >

[Cocci] Automatic replacement of function declarations

2017-08-28 Thread Kees Cook
Hi, So, I noticed that if I replace argument types in a function, coccinelle will normally replace them in any forward declarations too. However, this: @change_callback depends on patch@ identifier _callback; type _origtype; identifier _origarg; type _handletype; identifier _handle; @@ void

Re: [Cocci] Automatic replacement of function declarations

2017-08-28 Thread Julia Lawall
On Sun, 27 Aug 2017, Kees Cook wrote: > Hi, > > So, I noticed that if I replace argument types in a function, > coccinelle will normally replace them in any forward declarations too. > However, this: > > @change_callback > depends on patch@ > identifier _callback; > type _origtype; >

Re: [Cocci] Automatic replacement of function declarations

2017-08-28 Thread Julia Lawall
On Sun, 27 Aug 2017, Kees Cook wrote: > Hi, > > So, I noticed that if I replace argument types in a function, > coccinelle will normally replace them in any forward declarations too. > However, this: > > @change_callback > depends on patch@ > identifier _callback; > type _origtype; >