Changed interface of function use_dir.
authorberghofe
Mon, 17 May 1999 16:59:49 +0200
changeset 6651 7aa5cc0ae044
parent 6650 808a3d9e2404
child 6652 401f14f25648
Changed interface of function use_dir.
src/Pure/Isar/session.ML
--- a/src/Pure/Isar/session.ML	Mon May 17 16:58:34 1999 +0200
+++ b/src/Pure/Isar/session.ML	Mon May 17 16:59:49 1999 +0200
@@ -8,7 +8,7 @@
 signature SESSION =
 sig
   val welcome: unit -> string
-  val use_dir: bool -> bool -> string -> string -> unit
+  val use_dir: bool -> bool -> string -> string -> string -> unit
   val finish: unit -> unit
 end;
 
@@ -58,9 +58,9 @@
 
 val root_file = ThyLoad.ml_path "ROOT";
 
-fun use_dir reset info parent name =
+fun use_dir reset info parent name rpath =
   (init reset parent name;
-    Present.init info (path ()) name;
+    Present.init info (path ()) name (if rpath = "" then None else Some (Url.unpack rpath));
     File.symbol_use root_file;
     finish ()) handle exn => (writeln (Toplevel.exn_message exn); exit 1);