> 2. ..and how would I go about if instead of the type, I want to replace
>    a variable name? (my_type *ptr --> my_type *pointer).

Would you like to try another small SmPL script out like the following?


@name_replacement@
@@
 my_type *
-ptr
+pointer
 ;


How will your software development experiments evolve for the desired
application of the semantic patch language?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to