mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Current module support hack.
This commit is contained in:
parent
437a31f454
commit
fdcedea643
3 changed files with 18 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
|
||||
(define-module (language r5rs expand)
|
||||
:export (expand
|
||||
:export (expand void
|
||||
identifier? free-identifier=? bound-identifier=?
|
||||
generate-temporaries datum->syntax-object syntax-object->datum))
|
||||
|
||||
|
|
|
@ -122,9 +122,9 @@
|
|||
(let ((mod (make-vmod module)))
|
||||
(if toplevel
|
||||
(begin
|
||||
(push-code! `(load-module ,module))
|
||||
;; (push-code! `(load-module ,module))
|
||||
(push-code! `(load-symbol ,name))
|
||||
(push-code! `(link)))
|
||||
(push-code! `(link/current-module)))
|
||||
(let ((vlink (make-vlink mod name)))
|
||||
(push-code! `(object-ref ,(object-index vlink)))))
|
||||
(push-code! (list (symbol-append 'variable- op)))))
|
||||
|
@ -212,9 +212,9 @@
|
|||
(let dump! ((x (car obj+index)))
|
||||
(cond
|
||||
((vlink? x)
|
||||
(push-code! `(local-ref ,(object-index (vlink-module x))))
|
||||
;; (push-code! `(local-ref ,(object-index (vlink-module x))))
|
||||
(push-code! `(load-symbol ,(vlink-name x)))
|
||||
(push-code! `(link)))
|
||||
(push-code! `(link/current-module)))
|
||||
((vmod? x)
|
||||
(push-code! `(load-module ,(vmod-id x))))
|
||||
(else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue