Hello,
On 08/11/2011 11:43 AM, Julia Lawall wrote:
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)
Are all the docs published in html as well? At one point I know that
quite a few of them - not just the papers - were pdf only.
HTML makes for easier browsing.
* 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.
Is this for matching identifiers by regexp inside a spatch so there's no
need to embed python or ocaml in the patch?
* 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.
nice :)
Jani
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)