On Tue, 4 Feb 2020, Markus Elfring wrote: > > The strcmp output has to be compared to zero strcmp(src_name, > > "equalizer_input_level") == 0. > > Would you like to let the following script for the semantic patch language > perform any changes in your source files automatically? > > @replacement@ > constant c; > identifier text; > statement is, es; > @@ > <+... What is thhe point of the outer <+... ...+>? julia > if ( > + !std::strcmp( > text > + , > - == std::string( > c > ) > ) > is > else > es > ...+> > > > Regards, > Markus > _______________________________________________ > 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
- Re: [Cocci] Replacing usages ... Markus Elfring
- Re: [Cocci] Replacing usages ... Julia Lawall
- Re: [Cocci] Replacing usages ... Markus Elfring
- Re: [Cocci] Replacing a std::string check by s... Julia Lawall
- Re: [Cocci] Replacing a std::string check ... Markus Elfring
- Re: [Cocci] Searching for usage of “auto” with SmP... Markus Elfring
- Re: [Cocci] Searching for usage of “auto” with... Julia Lawall
- Re: [Cocci] Searching for usage of “auto” ... Markus Elfring
- Re: [Cocci] Replacing a std::string check by strcmp() w... wellington wallace
- Re: [Cocci] Replacing a std::string check by strcm... Markus Elfring
- Re: [Cocci] Replacing a std::string check by s... Julia Lawall
- Re: [Cocci] Replacing a std::string check ... Markus Elfring
- Re: [Cocci] Replacing a std::string ch... Julia Lawall
- Re: [Cocci] Replacing a std::stri... Markus Elfring
- Re: [Cocci] Usage concerns ar... Markus Elfring