From 86458c2afc0d02aad6dc22267793b7538dc475d0 Mon Sep 17 00:00:00 2001 From: Andrea Asperti Date: Fri, 22 Dec 2006 10:53:52 +0000 Subject: [PATCH] Add_moo_content modified to avoid repetitions of index command during inclusion. --- components/grafite_engine/grafiteTypes.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2