HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
permit multiline comments and strings in macros
[bpt/coccinelle.git]
/
demos
/
python_identifier.cocci
1
@r@
2
expression E;
3
identifier func;
4
@@
5
func(E);
6
7
@script:python s@
8
func << r.func;
9
prefix_func;
10
@@
11
12
prefix_func = "one_argument_function_%s" % func
13
14
@@
15
expression E;
16
identifier r.func,s.prefix_func;
17
@@
18
-func(E);
19
+prefix_func(E);