Re: [Cocci] Adjusting replacement lists with SmPL?

2020-10-24 Thread Mansour Moufid
On Fri, Oct 23, 2020 at 11:00 AM Markus Elfring wrote: > > > I'd like to add a statement after another within a preprocessor expression, > > How do you think about to refer to a “#define directive”? I mean, not specifically in the #define, but anywhere. (I don't try to patch preprocessor

Re: [Cocci] Adjusting replacement lists with SmPL?

2020-10-23 Thread Julia Lawall
On Fri, 23 Oct 2020, Markus Elfring wrote: > > I'd like to add a statement after another within a preprocessor expression, > > > > How do you think about to refer to a “#define directive”? > > > > > > > but spatch adds the line without an escape (backslash). > > > > I imagine that we stumble on

Re: [Cocci] Adjusting replacement lists with SmPL?

2020-10-23 Thread Markus Elfring
I'd like to add a statement after another within a preprocessor expression, How do you think about to refer to a “#define directive”? but spatch adds the line without an escape (backslash). I imagine that we stumble on another target conflict here.