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.

Re: [Cocci] Newline escape in preprocessor

2020-10-23 Thread Julia Lawall
On Thu, 22 Oct 2020, Mansour Moufid wrote: > Hi, > > I'd like to add a statement after another within a preprocessor > expression, but spatch adds the line without an escape (backslash). > > x.c: > > #define X(a) x(a); > > (I know the above is not technically correct but it's super