(make-autoload-interface): Use a proper hashtable as
authorMarius Vollmer <mvo@zagadka.de>
Fri, 12 Sep 2003 15:16:42 +0000 (15:16 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Fri, 12 Sep 2003 15:16:42 +0000 (15:16 +0000)
the obarray, not an empty vector.
(make-module): Always construct a hashtable for the obarray, even
for empty ones.

ice-9/boot-9.scm

index afdaec1..e3620e0 100644 (file)
            (error
             "Lazy-binder expected to be a procedure or #f." binder))
 
-       (let ((module (module-constructor (and (not (zero? size))
-                                              (make-hash-table size))
+       (let ((module (module-constructor (make-hash-table size)
                                          uses binder #f #f #f #f #f #f
                                          '()
                                          (make-weak-value-hash-table 31)
                    ;; Replace autoload-interface with interface
                    (set-car! (memq a (module-uses module)) i)
                    (module-local-variable i sym))))))
-    (module-constructor '#() '() b #f #f name 'autoload #f #f
+    (module-constructor (make-hash-table 0) '() b #f #f name 'autoload #f #f
                        '() (make-weak-value-hash-table 31) 0)))
 
 ;;; {Compiled module}