Release coccinelle-0.2.3rc1
[bpt/coccinelle.git] / python / no_pycocci.ml
CommitLineData
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
45open Ast_c
46open Common
47open Pycocci_aux
48module StringMap = Map.Make (String)
49
50exception Pycocciexception
51
7f004419
C
52let python_support = false
53
34e49164
C
54let check_return_value v = failwith "no python"
55let check_int_return_value v = failwith "no python"
56
57let initialised = ref false
58
59let cocci_file_name = ref ""
60
61(* dealing with python modules loaded *)
62let get_module module_name = failwith "no python"
63
64let is_module_loaded module_name = failwith "no python"
65
66let load_module module_name = failwith "no python"
67(* end python module handling part *)
68
69(* initialisation routines *)
70let pycocci_init () = initialised := true
71
72(*let _ = pycocci_init ()*)
73(* end initialisation routines *)
74
75(* python interaction *)
76let split_fqn fqn = failwith "no python"
77
78let pycocci_get_class_type fqn = failwith "no python"
79
80let pycocci_instantiate_class fqn args = failwith "no python"
81
82(* end python interaction *)
83
84let inc_match = ref false
85
86let include_match v = failwith "no python"
87
88let build_method (mname, camlfunc, args) pymodule classx classdict =
89 failwith "no python"
90
91let build_class cname parent methods pymodule = failwith "no python"
92
93let has_environment_binding env name = failwith "no python"
94
95let get_cocci_file args = failwith "no python"
96
97let build_classes env = failwith "no python"
98
99let build_variable name value = failwith "no python"
100
101let contains_binding e (_,(r,m)) = failwith "no python"
102
103let construct_variables mv e = failwith "no python"
104
105let set_coccifile cocci_file =
106 cocci_file_name := cocci_file;
107 ()
108
109
ae4735db 110let pyrun_simplestring s =
34e49164 111 failwith "no python"
ae4735db
C
112
113let py_isinitialized () =
34e49164 114 failwith "no python"
ae4735db 115
34e49164
C
116let py_finalize () =
117 failwith "no python"