X-Git-Url: http://git.hcoop.net/bpt/coccinelle.git/blobdiff_plain/9f8e26f459677a621822918b7539ae94214621ac..1b9ae60616d2f065ce16fe26385b684e13b40284:/globals/flag.ml diff --git a/globals/flag.ml b/globals/flag.ml index f6c51df..8d71255 100644 --- a/globals/flag.ml +++ b/globals/flag.ml @@ -1,4 +1,8 @@ (* + * Copyright 2012, INRIA + * Julia Lawall, Gilles Muller + * Copyright 2010-2011, INRIA, University of Copenhagen + * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix * This file is part of Coccinelle. @@ -20,6 +24,7 @@ *) +# 0 "./flag.ml" let sgrep_mode2 = ref false let show_misc = ref true @@ -30,11 +35,16 @@ let show_trying = ref false let track_iso_usage = ref false -type scanner = Glimpse | Google of string | NoScanner -let scanner = ref NoScanner +type scanner = IdUtils | Glimpse | Grep | Google of string | NoScanner +let scanner = ref Grep let pyoutput = ref "coccilib.output.Console" +let ocamlc = ref Commands.ocamlc_cmd +let ocamlopt = ref Commands.ocamlopt_cmd +let ocamldep = ref Commands.ocamldep_cmd +let ocamlfind = ref Commands.ocamlfind_cmd + (*"Some" value is the path with respect to which the patch should be created*) let patch = ref (None : string option) @@ -45,3 +55,16 @@ let currentfile = ref (None : string option) let current_element = ref "" let dir = ref "" + +let defined_virtual_rules = ref ([] : string list) +let defined_virtual_env = ref ([] : (string*string) list) + +let set_defined_virtual_rules s = + match Str.split (Str.regexp "=") s with + [name;vl] -> defined_virtual_env := (name,vl) :: !defined_virtual_env + | _ -> defined_virtual_rules := s :: !defined_virtual_rules + +let c_plus_plus = ref false + +(* was in main *) +let include_headers = ref false