On Fri, 24 May 2019, Timur Tabi wrote:
> On Fri, May 24, 2019 at 2:13 PM Timur Tabi <ti...@kernel.org> wrote:
>
> > void myfunc(int x)
> > {
> > goto myfunc_exit;
> > }
> >
> > My problem is that cocci takes "func_exit" literally. I tried
> > func##_exit, but that didn't work. How do I make this work?
>
> I figured it out:
>
> @@
> identifier func;
> fresh identifier label = func ## "_exit";
Yes, that works too. Simpler than my suggestion.
julia
> @@
> func(...) {
> <+...
> + goto label;
> ...+>
> }
> _______________________________________________
> Cocci mailing list
> Cocci@systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci