Release coccinelle-0.1.8
[bpt/coccinelle.git] / flag_cocci.ml
1 (*
2 * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
3 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller
4 * This file is part of Coccinelle.
5 *
6 * Coccinelle is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, according to version 2 of the License.
9 *
10 * Coccinelle is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * The authors reserve the right to distribute this or future versions of
19 * Coccinelle under other licenses.
20 *)
21
22
23 (* the inputs *)
24 let show_c = ref false
25 let show_cocci = ref false
26
27 (* the output *)
28 let show_diff = ref true
29
30 (* the derived inputs *)
31 let show_flow = ref false
32 let show_before_fixed_flow = ref false
33
34 let show_ctl_tex = ref false
35 let show_ctl_text = ref false
36
37 let inline_let_ctl = ref false
38 let show_mcodekind_in_ctl = ref false
39
40 (* the "underived" outputs *)
41 let show_binding_in_out = ref false
42 let show_dependencies = ref false
43
44 let verbose_cocci = ref true
45
46 let windows = ref false
47
48 let popl = ref false
49
50 let ifdef_to_if = ref true(*false*)
51
52 type include_options =
53 I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES | I_ALL_INCLUDES
54 let include_options = ref I_UNSPECIFIED
55
56 let include_path = ref (None : string option)
57 (* if true then when have a #include "../../xx.h", we look also for xx.h in
58 * current directory. This is because of how works extract_c_and_res
59 *)
60
61 let relax_include_path = ref false
62
63 let timeout = ref (None : int option)
64
65 let worth_trying_opt = ref true