- synching scheme/psyntax.*.ss from the psyntax distribution.
This commit is contained in:
@@ -20,12 +20,35 @@
|
||||
make-struct-type read-annotated
|
||||
annotation? annotation-expression annotation-source
|
||||
annotation-stripped
|
||||
read-library-source-file)
|
||||
read-library-source-file
|
||||
library-version-mismatch-warning
|
||||
file-locator-resolution-error)
|
||||
(import
|
||||
(only (ikarus.compiler) eval-core)
|
||||
(only (ikarus.reader.annotated) read-library-source-file)
|
||||
(ikarus))
|
||||
|
||||
(define (library-version-mismatch-warning name depname filename)
|
||||
(fprintf (current-error-port)
|
||||
"WARNING: library ~s has an inconsistent dependency \
|
||||
on library ~s; file ~s will be recompiled from \
|
||||
source.\n"
|
||||
name depname filename))
|
||||
|
||||
(define (file-locator-resolution-error libname failed-list)
|
||||
(define-condition-type &library-resolution &condition
|
||||
make-library-resolution-condition
|
||||
library-resolution-condition?
|
||||
(library condition-library)
|
||||
(files condition-files))
|
||||
(raise
|
||||
(condition
|
||||
(make-error)
|
||||
(make-who-condition 'expander)
|
||||
(make-message-condition
|
||||
"cannot locate library in library-path")
|
||||
(make-library-resolution-condition
|
||||
libname failed-list))))
|
||||
|
||||
(define-syntax define-record
|
||||
(syntax-rules ()
|
||||
|
||||
Reference in New Issue
Block a user