X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaMisc.ml;h=1ea4e7e9228c52ffca09fcaa81b4a66e0b5be968;hb=29a3bd5d160f31873236c93a008a9e4fd31c305e;hp=ab077d9238d60d0dbb2ef14278fc160ada0277d9;hpb=0d681e06c6ced0be7f9dbce417684b082229745a;p=helm.git diff --git a/helm/matita/matitaMisc.ml b/helm/matita/matitaMisc.ml index ab077d923..1ea4e7e92 100644 --- a/helm/matita/matitaMisc.ml +++ b/helm/matita/matitaMisc.ml @@ -191,7 +191,7 @@ let get_proof_context status = | _ -> [] let get_proof_aliases status = status.aliases - + let qualify status name = get_string_option status "baseuri" ^ "/" ^ name let unopt = function None -> failwith "unopt: None" | Some v -> v @@ -207,4 +207,9 @@ let rec list_uniq = function | h1::h2::tl when h1 = h2 -> list_uniq (h2 :: tl) | h1::tl (* when h1 <> h2 *) -> h1 :: list_uniq tl -let end_ma_RE = Pcre.regexp "\\.ma$" +let debug_wrap name f = + prerr_endline (sprintf "debug_wrap: ==>> %s" name); + let res = f () in + prerr_endline (sprintf "debug_wrap: <<== %s" name); + res +