]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/cic_disambiguation/disambiguateTypes.ml
Several instances of the same bug fixed at once: when processing a Fix,
[helm.git] / helm / software / components / cic_disambiguation / disambiguateTypes.ml
index 4a2e43a205dc88b25c6be961955246ca19dd5050..8263fd3152b8c2c05bb13e7ce25c64e36f53d8c1 100644 (file)
@@ -55,6 +55,16 @@ struct
 
   include Environment'
 
+  let find k env =
+   match k with
+      Symbol (sym,n) ->
+       (try find k env
+        with Not_found -> find (Symbol (sym,0)) env)
+    | Num n ->
+       (try find k env
+        with Not_found -> find (Num 0) env)
+    | _ -> find k env
+
   let cons k v env =
     try
       let current = find k env in
@@ -105,9 +115,10 @@ module type Callbacks =
       title:string -> msg:string -> id:string -> UriManager.uri list ->
       UriManager.uri list
     val interactive_interpretation_choice:
-      (string * string) list list -> int list
+      string -> int ->
+      (Token.flocation list * string * string) list list -> int list
     val input_or_locate_uri:
-      title:string -> ?id:string -> unit -> UriManager.uri
+      title:string -> ?id:string -> unit -> UriManager.uri option
   end
 
 let string_of_domain_item = function