merged
authorwenzelm
Thu, 08 Apr 2021 20:52:19 +0200
changeset 73548 c54a9395ad96
parent 73546 7cb3fefef79e (current diff)
parent 73547 a7aabdf889b7 (diff)
child 73549 a2c589d5e1e4
merged
--- a/src/HOL/SPARK/Tools/spark_vcs.ML	Thu Apr 08 12:38:18 2021 +0000
+++ b/src/HOL/SPARK/Tools/spark_vcs.ML	Thu Apr 08 20:52:19 2021 +0200
@@ -975,8 +975,7 @@
             Export.export thy (Path.binding (prv_path, Position.none))
               (proved'' |> map (fn (s, _) =>
                 XML.Text (snd (strip_number s) ^
-                  " -- proved by Isabelle/" ^ Isabelle_System.isabelle_id () ^
-                  Isabelle_System.isabelle_heading () ^ "\n")));
+                  " -- proved by " ^ Isabelle_System.identification () ^ "\n")));
         in {pfuns = pfuns, type_map = type_map, env = NONE} end))
   |> Sign.parent_path;
 
--- a/src/Pure/General/http.scala	Thu Apr 08 12:38:18 2021 +0000
+++ b/src/Pure/General/http.scala	Thu Apr 08 20:52:19 2021 +0200
@@ -279,8 +279,7 @@
   def welcome(root: String = "/"): Handler =
     Handler.get(root, arg =>
       if (arg.uri.toString == root) {
-        val id = Isabelle_System.isabelle_id()
-        Some(Response.text("Welcome to Isabelle/" + id + Isabelle_System.isabelle_heading()))
+        Some(Response.text("Welcome to " + Isabelle_System.identification()))
       }
       else None)
 
--- a/src/Pure/System/isabelle_system.ML	Thu Apr 08 12:38:18 2021 +0000
+++ b/src/Pure/System/isabelle_system.ML	Thu Apr 08 20:52:19 2021 +0200
@@ -25,6 +25,7 @@
   val isabelle_identifier: unit -> string option
   val isabelle_heading: unit -> string
   val isabelle_name: unit -> string
+  val identification: unit -> string
 end;
 
 structure Isabelle_System: ISABELLE_SYSTEM =
@@ -133,4 +134,6 @@
 
 fun isabelle_name () = getenv_strict "ISABELLE_NAME";
 
+fun identification () = "Isabelle/" ^ isabelle_id () ^ isabelle_heading ();
+
 end;
--- a/src/Pure/System/isabelle_system.scala	Thu Apr 08 12:38:18 2021 +0000
+++ b/src/Pure/System/isabelle_system.scala	Thu Apr 08 20:52:19 2021 +0200
@@ -220,6 +220,8 @@
 
   def isabelle_name(): String = getenv_strict("ISABELLE_NAME")
 
+  def identification(): String = "Isabelle/" + isabelle_id() + isabelle_heading()
+
 
   /** file-system operations **/