HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.2.0
[bpt/coccinelle.git]
/
tests
/
typedef3.cocci
1
@ rule1 @
2
type T;
3
identifier link;
4
@@
5
6
T {
7
...
8
- dev_link_t link;
9
+ struct pcmcia_device *p_dev;
10
...
11
}
12
13
@ rule2 extends rule1 @
14
//T *s;
15
identifier fld;
16
identifier fn;
17
identifier s;
18
@@
19
20
fn(...,T *s,...) {
21
<...
22
- s->link.fld
23
+ s->p_dev->fld
24
...>
25
}