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