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