* removes library-name/ver/id and added library-spec primitive
This commit is contained in:
parent
63d35807c1
commit
362d9f3b38
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -488,9 +488,7 @@
|
|||
[library-subst/env library-subst/env-label (core-prim . library-subst/env)]
|
||||
[find-library-by-name find-library-by-name-label (core-prim . find-library-by-name)]
|
||||
[imported-label->binding imported-label->binding-label (core-prim . imported-label->binding)]
|
||||
[xlibrary-id xlibrary-id-label (core-prim . xlibrary-id)]
|
||||
[xlibrary-name xlibrary-name-label (core-prim . xlibrary-name)]
|
||||
[xlibrary-version xlibrary-version-label (core-prim . xlibrary-version)]
|
||||
[library-spec library-spec-label (core-prim . library-spec)]
|
||||
))
|
||||
(define (lm:imported-label->binding lab)
|
||||
(let f ([ls *all-libraries*])
|
||||
|
@ -516,9 +514,11 @@
|
|||
(unless (library? x)
|
||||
(error 'library-subst/env "~s is not a library" x))
|
||||
(values (library-subst x) (library-env x))))
|
||||
(primitive-set! 'xlibrary-id library-id)
|
||||
(primitive-set! 'xlibrary-name library-name)
|
||||
(primitive-set! 'xlibrary-version library-ver)
|
||||
(primitive-set! 'library-spec
|
||||
(lambda (x)
|
||||
(unless (library? x)
|
||||
(error 'library-spec "~s is not a library" x))
|
||||
(list (library-id x) (library-name x) (library-ver x))))
|
||||
(primitive-set! 'find-library-by-name lm:find-library-by-name)
|
||||
(primitive-set! 'imported-label->binding lm:imported-label->binding)
|
||||
(primitive-set! 'install-library lm:install-library))
|
||||
|
|
Loading…
Reference in New Issue