src/Pure/NJ.ML
author paulson
Fri, 31 Jan 1997 17:13:19 +0100
changeset 2572 8a47f85e7a03
parent 2241 cc5ee79ea416
permissions -rw-r--r--
ex_impE was incorrectly listed as Safe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title:      Pure/NJ
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Compatibility file for Standard ML of New Jersey.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    10
(*Determine if we are running under 0.93 or a newer version of SML/NJ
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    11
  This is based on the variable "version" defined in 0.93's System structure
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    12
  which is no longer present in 1.09.*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    14
local val version = ""; open System in
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    15
  val smlversion = if version <> "" then 93 else 109
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    16
end;
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    18
use (if smlversion = 93 then "NJ093.ML" else "NJ1xx.ML");
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
1480
85ecd3439e01 made Isabelle compatible with SML/NJ 1.09
clasohm
parents: 1289
diff changeset
    21
(** Other functions which are not specific to 0.93 or 1.xx*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
(*Dummy version of the Poly/ML function*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
fun commit() = ();