permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / depend.cocci
CommitLineData
97111a47
C
1// this illustrates various complex dependencies
2@a@
3position p;
4@@
5
6a@p();
7
8@b@
9position p;
10@@
11
12b@p();
13
14@c@
15position p;
16@@
17
18c@p();
19
20@script:python depends on a@
21@@
22
23print "a is ok"
24
25@script:python depends on !a@
26@@
27
28print "a is not ok"
29
30@script:python depends on (a && b) || c@
31@@
32
33print "a and b or c"
34
35@script:python depends on !(!a && !b) || c@
36@@
37
38print "a or b or c"