~ubuntu-branches/ubuntu/maverick/coccinelle/maverick

« back to all changes in this revision

Viewing changes to parsing_cocci/check_meta.ml

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2009-09-08 13:06:20 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090908130620-s33aehu14xddef4u
Tags: 0.1.10.deb-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/control: build-depend on python2.6-dev,
    set XB-Python-Version to 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
      ident GLOBAL old_metas table minus nm;
335
335
      dots (expression ID old_metas table minus) args;
336
336
      statement old_metas table minus body
337
 
  | Ast0.Switch(switch,lp,exp,rp,lb,cases,rb) ->
 
337
  | Ast0.Switch(switch,lp,exp,rp,lb,decls,cases,rb) ->
338
338
      expression ID old_metas table minus exp;
 
339
      dots (statement old_metas table minus) decls;
339
340
      dots (case_line old_metas table minus) cases
340
341
  | Ast0.ReturnExpr(ret,exp,sem) -> expression ID old_metas table minus exp
341
342
  | Ast0.MetaStmt(name,_) ->     check_table table minus name
389
390
      dots (statement old_metas table minus) code
390
391
  | Ast0.Case(case,exp,colon,code) ->
391
392
      dots (statement old_metas table minus) code
 
393
  | Ast0.DisjCase(_,case_lines,_,_) ->
 
394
      List.iter (case_line old_metas table minus) case_lines
392
395
  | Ast0.OptCase(case) -> failwith "unexpected code"
393
396
 
394
397
(* --------------------------------------------------------------------- *)