~ubuntu-branches/ubuntu/trusty/coccinelle/trusty-proposed

« back to all changes in this revision

Viewing changes to parsing_cocci/pretty_print_cocci.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:
646
646
  | Ast.Iterator(header,body,(_,_,_,aft)) ->
647
647
      rule_elem arity header; statement arity body;
648
648
      mcode (function _ -> ()) ((),Ast.no_info,aft,Ast.NoMetaPos)
649
 
  | Ast.Switch(header,lb,cases,rb) ->
 
649
  | Ast.Switch(header,lb,decls,cases,rb) ->
650
650
      rule_elem arity header; rule_elem arity lb;
 
651
      dots force_newline (statement arity) decls;
651
652
      List.iter (function x -> case_line arity x; force_newline()) cases;
652
653
      rule_elem arity rb
653
654
  | Ast.Atomic(re) -> rule_elem arity re