> 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;
@@
 <+...
 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

Reply via email to