mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
Fixing module? predicate for export-all modules.
This commit is contained in:
parent
7dc3a63c21
commit
671b037270
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@
|
|||
(lp (cons x res))))))))
|
||||
|
||||
(define (module? x)
|
||||
(and (vector? x) (>= (vector-length x) 4) (list? (vector-ref x 0))))
|
||||
(and (vector? x)
|
||||
(>= (vector-length x) 4)
|
||||
(or (list? (vector-ref x 0)) (not (vector-ref x 0)))))
|
||||
|
||||
(define (module-ast mod) (vector-ref mod 3))
|
||||
(define (module-ast-set! mod x) (vector-set! mod 3 x))
|
||||
|
|
Loading…
Add table
Reference in a new issue