summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
authorglenda@drat <glenda@drat>2016-05-26 06:37:47 -0700
committerglenda@drat <glenda@drat>2016-05-26 06:37:47 -0700
commitb1cd018c05d289e45529d5e15b928a1cae177223 (patch)
tree75a1dbb7e7e34699a30bc09ce27b083322aff70d /lib/date
parent26ef45c1f3e27bd57fcae049cd55aabf2738f1e8 (diff)
downloadmc-b1cd018c05d289e45529d5e15b928a1cae177223.tar.gz
Some 9front build fixes.
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/bld.sub1
-rw-r--r--lib/date/zoneinfo+plan9.myr25
2 files changed, 26 insertions, 0 deletions
diff --git a/lib/date/bld.sub b/lib/date/bld.sub
index 7f9a533..c9a160b 100644
--- a/lib/date/bld.sub
+++ b/lib/date/bld.sub
@@ -5,6 +5,7 @@ lib date =
parse.myr
types.myr
zoneinfo+posixy.myr
+ zoneinfo+plan9.myr
lib ../sys:sys
lib ../std:std
diff --git a/lib/date/zoneinfo+plan9.myr b/lib/date/zoneinfo+plan9.myr
new file mode 100644
index 0000000..f372607
--- /dev/null
+++ b/lib/date/zoneinfo+plan9.myr
@@ -0,0 +1,25 @@
+use std
+use sys
+
+use "types"
+
+pkg _zoneinfo =
+ type zifile
+ const findtzoff : (tz : byte[:], tm : std.time -> std.option(date.duration))
+ const load : (file : byte[:] -> zifile#)
+ const free : (f : zifile# -> void)
+;;
+
+type zifile = byte
+
+const findtzoff = {tz, tm
+ -> `std.Some 0
+}
+
+const load = {f
+ -> std.alloc()
+}
+
+const free = {p
+ -> std.free(p)
+}