summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-16 13:26:04 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-16 13:26:04 -0500
commitfc1425f6388e112984cce1bf64910be2a656367a (patch)
treea896164f6f9ea43fd6d9aa1254b1c01d41d71181 /libstd
parentdc0ce7c68fd5e1a56a13960ba7121a38da0a55cb (diff)
downloadmc-fc1425f6388e112984cce1bf64910be2a656367a.tar.gz
Make htab.myr's 'Initsz' public
This works around a bug in the compiler, where we do not export as hidden symbols that are necessary for generics to work.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/htab.myr5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstd/htab.myr b/libstd/htab.myr
index 15bea60..44ef808 100644
--- a/libstd/htab.myr
+++ b/libstd/htab.myr
@@ -19,9 +19,10 @@ pkg std =
generic htput : (ht : htab(@k, @v)#, k : @k, v : @v -> void)
generic htget : (ht : htab(@k, @v)#, k : @k -> option(@v))
generic htkeys : (ht : htab(@k, @v)# -> @k[:])
-;;
-const Initsz = 32
+ /* FIXME: Automatically pull out internal declarations as hidden */
+ const Initsz = 32
+;;
generic hash = {ht, k
var h