mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
handle include-shared in analyze-module
This commit is contained in:
parent
42aab7905c
commit
ef9daf22c8
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@
|
|||
(lp (append (map include-source (cdar ls)) (cdr ls)) res))
|
||||
((include-library-declarations)
|
||||
(lp (append (append-map file->sexp-list (map resolve-file (cdar ls))) (cdr ls)) res))
|
||||
((include-shared include-shared-optionally)
|
||||
(for-each
|
||||
(lambda (file)
|
||||
(let ((f (string-append file *shared-object-extension*)))
|
||||
(cond ((find-module-file f) => (lambda (path) (load path env))))))
|
||||
(cdar ls)))
|
||||
((begin body)
|
||||
(let lp2 ((ls2 (cdar ls)) (res res))
|
||||
(cond
|
||||
|
|
Loading…
Add table
Reference in a new issue