Coccinelle release 1.0.0-rc1
[bpt/coccinelle.git] / tests / ifields.cocci
CommitLineData
8f657093
C
1@ object @
2typedef IFace;
3typedef IFaceVtbl;
4type Tobj;
5field list[nilla] F;
6@@
7 typedef struct tag_obj {
8 F
9- const IFaceVtbl *lpVtbl;
10+ IFace IFace_iface;
11 ...
12 } Tobj;
13
14
15@@
16identifier obj;
17identifier vtbl;
18initializer list[object.nilla] E;
19@@
20 static struct IFaceImpl obj = {
21 E,
22- &vtbl,
23+ { &vtbl, 4, },
24 ...,
25 };