Coccinelle release 1.0.0-rc3
[bpt/coccinelle.git] / parsing_cocci / index.ml
index b864abe..a6aea02 100644 (file)
@@ -23,7 +23,7 @@
 
 
 (* create an index for each constructor *)
-(* current max is 150 *)
+(* current max is 154 *)
 
 (* doesn't really work - requires that identical terms with no token
 subterms (eg dots) not appear on the same line *)
@@ -79,9 +79,10 @@ let case_line_dots d =
 let ident i =
   match Ast0.unwrap i with
       Ast0.Id(name) -> [10]
-    | Ast0.MetaId(name,_,_) -> [11]
+    | Ast0.MetaId(name,_,_,_) -> [11]
     | Ast0.MetaFunc(name,_,_) -> [12]
     | Ast0.MetaLocalFunc(name,_,_) -> [13]
+    | Ast0.DisjId(_,id_list,_,_) -> [152]
     | Ast0.OptIdent(id) -> [14]
     | Ast0.UniqueIdent(id) -> [15]
 
@@ -140,6 +141,7 @@ let declaration d =
   match Ast0.unwrap d with
     Ast0.MetaDecl(name,_) -> [148]
   | Ast0.MetaField(name,_) -> [149]
+  | Ast0.MetaFieldList(name,_,_) -> [152]
   | Ast0.Init(stg,ty,id,eq,exp,sem) -> [54]
   | Ast0.UnInit(stg,ty,id,sem) -> [55]
   | Ast0.MacroDecl(name,lp,args,rp,sem) -> [137]
@@ -153,6 +155,7 @@ let declaration d =
 let initialiser i =
   match Ast0.unwrap i with
     Ast0.MetaInit(nm,_) -> [106] (* added after *)
+  | Ast0.MetaInitList(nm,_,_) -> [153] (* added after *)
   | Ast0.InitExpr(exp) -> [102]
   | Ast0.InitList(lb,initlist,rb,ordered) -> [103]
   | Ast0.InitGccExt(designators,eq,ini) -> [104]
@@ -205,6 +208,7 @@ let statement s =
   | Ast0.Circles(d,whencode) -> [85]
   | Ast0.Stars(d,whencode) -> [86]
   | Ast0.Include(inc,name) -> [118]
+  | Ast0.Undef(def,id) -> [151]
   | Ast0.Define(def,id,params,body) -> [119]
   | Ast0.OptStm(re) -> [87]
   | Ast0.UniqueStm(re) -> [88]
@@ -218,10 +222,11 @@ let case_line c =
 
 let top_level t =
   match Ast0.unwrap t with
-    Ast0.DECL(stmt) -> [90]
+    Ast0.NONDECL(stmt) -> [90]
   | Ast0.FILEINFO(old_file,new_file) -> [92]
   | Ast0.CODE(stmt_dots) -> [94]
   | Ast0.ERRORWORDS(exps) -> [95]
   | Ast0.OTHER(_) -> [96]
+  | Ast0.TOPCODE(_) -> [154]
 
 (* 99-101 already used *)