pg: Add missing dummy stack frames for mcount for x86_64.
[dragonfly.git] / test / cocci / comma.cocci
blobe2c17dffaf80eb1c4bea478b6e369e49389e5311
1 //
2 //  convert comma to semicolon
3 //
4 // Target: Linux
5 // Copyright:  Copyright: 2014 - LIP6/INRIA
6 // License:  Licensed under GPLv2 or any later version.
7 // Author: Julia Lawall <Julia.Lawall@lip6.fr>
8 // URL: http://coccinelle.lip6.fr/ 
9 // URL: http://coccinellery.org/ 
11 @initialize:ocaml@
13 let tbl = Hashtbl.create(100)
15 let add_if_not_present file =
16 try let _ = Hashtbl.find tbl file in ()
17 with Not_found ->
18    Hashtbl.add tbl file ();
19    let it = new iteration() in
20    it#set_files [file];
21    it#register()
23 @script:ocaml@
25 Hashtbl.clear tbl
27 @r@
28 expression e1,e2,e;
29 position p1,p2;
30 type T;
31 identifier i;
35 T i = ...;
37  e;
39  e1,@p1 e2@p2;
41 @script:ocaml@
42 p1 << r.p1;
43 p2 << r.p2;
46 if (List.hd p1).line = (List.hd p2).line
47 then include_match false
48 else add_if_not_present ((List.hd p1).file)
51 expression e1,e2;
52 position r.p1;
55  e1
56 - ,@p1
57 + ;
58   e2;