Changes:

* The -sp option now allows you to write a semantic patch on the command 
line.  This is useful if you want to use spatch like grep, eg to find all 
uses of a particular field in a structure of a particular type.  For 
example:

spatch -sp "e:struct foo *:->field" -dir myprogram

More information is available in Section 12 of the manual 
(docs/manual/main_grammar.pdf)

* PCRE regular expressions are now available by default, if the 
appropriate library is found on the machine.  Regular expressions no 
longer match from the beginning of an identifier name.

* Small improvements in pretty printing and typedef management.

* When treating a directory, if a header file is transformed in the same 
way multiple times only one instance of the patch is generated.

* -sp_file is no longer obligatory.  One argument may end in .cocci and 
this is assumed to be the name of the file containing the semantic patch.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to