]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaSync.ml
Much simpler (and slightly more performant) implementation of the UriManager.
[helm.git] / helm / matita / matitaSync.ml
index 472ab3a923016800a06053c194c4ec5c1072820a..df29edc3b7421049ec63eb5a4616560fbfcb07fd 100644 (file)
@@ -32,12 +32,13 @@ open MatitaTypes
 let extract_alias types uri = 
   fst(List.fold_left (
     fun (acc,i) (name, _, _, cl) -> 
-      ((name, UriManager.string_of_uriref (uri,[i]))
+      (name, UriManager.string_of_uri (UriManager.uri_of_uriref uri i None))
       ::
       (fst(List.fold_left (
         fun (acc,j) (name,_) ->
-          (((name,UriManager.string_of_uriref (uri,[i;j])) :: acc) , j+1)
-        ) (acc,1) cl))),i+1
+          (((name,UriManager.string_of_uri (UriManager.uri_of_uriref uri i
+          (Some j))) :: acc) , j+1)
+        ) (acc,1) cl)),i+1
   ) ([],0) types)
 
 let env_of_list l env =