Release coccinelle-0.2.0rc1
[bpt/coccinelle.git] / python / no_pycocci.ml
1 open Ast_c
2 open Common
3 open Pycocci_aux
4 module StringMap = Map.Make (String)
5
6 exception Pycocciexception
7
8 let python_support = false
9
10 let check_return_value v = failwith "no python"
11 let check_int_return_value v = failwith "no python"
12
13 let initialised = ref false
14
15 let cocci_file_name = ref ""
16
17 (* dealing with python modules loaded *)
18 let get_module module_name = failwith "no python"
19
20 let is_module_loaded module_name = failwith "no python"
21
22 let load_module module_name = failwith "no python"
23 (* end python module handling part *)
24
25 (* initialisation routines *)
26 let pycocci_init () = initialised := true
27
28 (*let _ = pycocci_init ()*)
29 (* end initialisation routines *)
30
31 (* python interaction *)
32 let split_fqn fqn = failwith "no python"
33
34 let pycocci_get_class_type fqn = failwith "no python"
35
36 let pycocci_instantiate_class fqn args = failwith "no python"
37
38 (* end python interaction *)
39
40 let inc_match = ref false
41
42 let include_match v = failwith "no python"
43
44 let build_method (mname, camlfunc, args) pymodule classx classdict =
45 failwith "no python"
46
47 let build_class cname parent methods pymodule = failwith "no python"
48
49 let has_environment_binding env name = failwith "no python"
50
51 let get_cocci_file args = failwith "no python"
52
53 let build_classes env = failwith "no python"
54
55 let build_variable name value = failwith "no python"
56
57 let contains_binding e (_,(r,m)) = failwith "no python"
58
59 let construct_variables mv e = failwith "no python"
60
61 let set_coccifile cocci_file =
62 cocci_file_name := cocci_file;
63 ()
64
65
66 let pyrun_simplestring s =
67 failwith "no python"
68
69 let py_isinitialized () =
70 failwith "no python"
71
72 let py_finalize () =
73 failwith "no python"