mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
Add program-free-variables' to
(system vm program)'.
* module/system/vm/program.scm (program-free-variables): New procedure. * module/language/objcode/spec.scm (program-free-variables): Remove.
This commit is contained in:
parent
e6bd58af8f
commit
f9a86f72a6
2 changed files with 12 additions and 7 deletions
|
@ -53,11 +53,6 @@
|
|||
(lp (acons (binding:index b) (list b) ret)
|
||||
(cdr locs))))))))
|
||||
|
||||
(define (program-free-variables program)
|
||||
(list->vector
|
||||
(map (lambda (i) (program-free-variable-ref program i))
|
||||
(iota (program-num-free-variables program)))))
|
||||
|
||||
(define (decompile-value x env opts)
|
||||
(cond
|
||||
((program? x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue