shithub: mc

Download patch

ref: fc1425f6388e112984cce1bf64910be2a656367a
parent: dc0ce7c68fd5e1a56a13960ba7121a38da0a55cb
author: Ori Bernstein <[email protected]>
date: Mon Dec 16 08:26:04 EST 2013

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.

--- a/libstd/htab.myr
+++ b/libstd/htab.myr
@@ -19,9 +19,10 @@
 	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