]> matita.cs.unibo.it Git - helm.git/commitdiff
Add_moo_content modified to avoid repetitions of index command during inclusion.
authorAndrea Asperti <andrea.asperti@unibo.it>
Fri, 22 Dec 2006 10:53:52 +0000 (10:53 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Fri, 22 Dec 2006 10:53:52 +0000 (10:53 +0000)
components/grafite_engine/grafiteTypes.ml

index 6e1c299e42dbf44dc332ca92b71018395cfec2df..80efca87aa05b6e968ffeee01c1ae3682aaf20bb 100644 (file)
@@ -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)