2 * Copyright 2005-2009, 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.
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.
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.
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/>.
18 * The authors reserve the right to distribute this or future versions of
19 * Coccinelle under other licenses.
26 module StringMap
= Map.Make
(String
)
28 exception Pycocciexception
30 let python_support = false
32 let check_return_value v
= failwith
"no python"
33 let check_int_return_value v
= failwith
"no python"
35 let initialised = ref false
37 let cocci_file_name = ref ""
39 (* dealing with python modules loaded *)
40 let get_module module_name
= failwith
"no python"
42 let is_module_loaded module_name
= failwith
"no python"
44 let load_module module_name
= failwith
"no python"
45 (* end python module handling part *)
47 (* initialisation routines *)
48 let pycocci_init () = initialised := true
50 (*let _ = pycocci_init ()*)
51 (* end initialisation routines *)
53 (* python interaction *)
54 let split_fqn fqn
= failwith
"no python"
56 let pycocci_get_class_type fqn
= failwith
"no python"
58 let pycocci_instantiate_class fqn args
= failwith
"no python"
60 (* end python interaction *)
62 let inc_match = ref false
64 let include_match v
= failwith
"no python"
66 let build_method (mname
, camlfunc
, args
) pymodule classx classdict
=
69 let build_class cname parent methods pymodule
= failwith
"no python"
71 let has_environment_binding env name
= failwith
"no python"
73 let get_cocci_file args
= failwith
"no python"
75 let build_classes env
= failwith
"no python"
77 let build_variable name
value = failwith
"no python"
79 let contains_binding e
(_,(r
,m
)) = failwith
"no python"
81 let construct_variables mv e
= failwith
"no python"
83 let set_coccifile cocci_file
=
84 cocci_file_name := cocci_file
;
88 let pyrun_simplestring s
=
91 let py_isinitialized () =