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