Skip to content

Commit bb2fb41

Browse files
committed
this should work
1 parent bcef873 commit bb2fb41

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

src/portableML/mosml/MLSYSPortable.sml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,4 @@ fun syncref init =
4848
}
4949
end
5050

51-
fun export (_: string * 'a) = raise Fail "export not supported on mosml"
52-
5351
end (* struct *)

src/portableML/poly/MLSYSPortable.sml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,4 @@ fun syncref init =
7676
upd = fn f => Synchronized.change_result v f}
7777
end
7878

79-
fun export (file, x: 'a) = let
80-
val _ = PolyML.shareCommonData x
81-
val body = PolyML.exportSmall x
82-
val ostream = BinIO.openOut file
83-
val () = BinIO.output (ostream, body)
84-
val () = BinIO.closeOut ostream
85-
in () end
86-
8779
end

src/tracing/yes/Tracing.sml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ struct
33

44
open TheoryPP
55

6+
fun export (file, x: 'a) = let
7+
val _ = PolyML.shareCommonData x
8+
val body = PolyML.exportSmall x
9+
val ostream = BinIO.openOut file
10+
val () = BinIO.output (ostream, body)
11+
val () = BinIO.closeOut ostream
12+
in () end
13+
614
fun trace_theory name
715
({theory,parents,types,constants,axioms,definitions,theorems,mldeps,...}: struct_info_record) = let
816
val file = concat[".holobjs/",name,".tr"]
9-
val () = Portable.export(file, (theory,parents,types,constants,axioms,definitions,theorems,mldeps))
17+
val () = export(file, (theory,parents,types,constants,axioms,definitions,theorems,mldeps))
1018
val _ = Unix.execute ("/usr/bin/gzip", ["-f", file])
1119
in () end
1220

tools/sequences/kernel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ src/prekernel
2020
src/thm
2121
(stdknl)src/tracing/no
2222
(expk)src/tracing/no
23-
(trknl)src/tracing/yes
23+
[poly](trknl)src/tracing/yes
24+
[mosml](trknl)src/tracing/no
2425
(otknl)src/tracing/no
2526
src/postkernel
2627
# these three directories are required to even run hol.bare.unquote

0 commit comments

Comments
 (0)