HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release 1.0.0-rc4
[bpt/coccinelle.git]
/
tests
/
multidecl.cocci
1
// test with -cocci_vs_c_3 -use_ref
2
3
@ rule1 @
4
identifier driver;
5
identifier attach, detach;
6
@@
7
8
struct pcmcia_driver driver = {
9
.remove = detach,
10
};
11
12
@@
13
identifier link;
14
identifier rule1.detach;
15
@@
16
17
detach(struct pcmcia_device *link)
18
{
19
...
20
if (link->state & DEV_CONFIG) {
21
...
22
}
23
...
24
}