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
/
depend.cocci
1
// this illustrates various complex dependencies
2
@a@
3
position p;
4
@@
5
6
a@p();
7
8
@b@
9
position p;
10
@@
11
12
b@p();
13
14
@c@
15
position p;
16
@@
17
18
c@p();
19
20
@script:python depends on a@
21
@@
22
23
print "a is ok"
24
25
@script:python depends on !a@
26
@@
27
28
print "a is not ok"
29
30
@script:python depends on (a && b) || c@
31
@@
32
33
print "a and b or c"
34
35
@script:python depends on !(!a && !b) || c@
36
@@
37
38
print "a or b or c"