From: Andrea Asperti Date: Fri, 22 Dec 2006 10:53:52 +0000 (+0000) Subject: Add_moo_content modified to avoid repetitions of index command during inclusion. X-Git-Tag: 0.4.95@7852~708 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=86458c2afc0d02aad6dc22267793b7538dc475d0;p=helm.git Add_moo_content modified to avoid repetitions of index command during inclusion. --- diff --git a/components/grafite_engine/grafiteTypes.ml b/components/grafite_engine/grafiteTypes.ml index 6e1c299e4..80efca87a 100644 --- a/components/grafite_engine/grafiteTypes.ml +++ b/components/grafite_engine/grafiteTypes.ml @@ -124,7 +124,8 @@ let add_moo_content cmds status = (fun cmd acc -> (* prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *) match cmd with - | GrafiteAst.Default _ -> + | GrafiteAst.Default _ + | GrafiteAst.Index _ -> if List.mem cmd content then acc else cmd :: acc | _ -> cmd :: acc)