Release coccinelle-0.2.0
[bpt/coccinelle.git] / python / no_pycocci.ml
CommitLineData
9f8e26f4
C
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, 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
34e49164
C
23open Ast_c
24open Common
25open Pycocci_aux
26module StringMap = Map.Make (String)
27
28exception Pycocciexception
29
7f004419
C
30let python_support = false
31
34e49164
C
32let check_return_value v = failwith "no python"
33let check_int_return_value v = failwith "no python"
34
35let initialised = ref false
36
37let cocci_file_name = ref ""
38
39(* dealing with python modules loaded *)
40let get_module module_name = failwith "no python"
41
42let is_module_loaded module_name = failwith "no python"
43
44let load_module module_name = failwith "no python"
45(* end python module handling part *)
46
47(* initialisation routines *)
48let pycocci_init () = initialised := true
49
50(*let _ = pycocci_init ()*)
51(* end initialisation routines *)
52
53(* python interaction *)
54let split_fqn fqn = failwith "no python"
55
56let pycocci_get_class_type fqn = failwith "no python"
57
58let pycocci_instantiate_class fqn args = failwith "no python"
59
60(* end python interaction *)
61
62let inc_match = ref false
63
64let include_match v = failwith "no python"
65
66let build_method (mname, camlfunc, args) pymodule classx classdict =
67 failwith "no python"
68
69let build_class cname parent methods pymodule = failwith "no python"
70
71let has_environment_binding env name = failwith "no python"
72
73let get_cocci_file args = failwith "no python"
74
75let build_classes env = failwith "no python"
76
77let build_variable name value = failwith "no python"
78
79let contains_binding e (_,(r,m)) = failwith "no python"
80
81let construct_variables mv e = failwith "no python"
82
83let set_coccifile cocci_file =
84 cocci_file_name := cocci_file;
85 ()
86
87
88let pyrun_simplestring s =
89 failwith "no python"
90
91let py_isinitialized () =
92 failwith "no python"
93
94let py_finalize () =
95 failwith "no python"