diff options
author | Thomas Bushnell, BSG <tb@debian.org> | 2007-12-28 16:25:32 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:39 -0800 |
commit | d8ae23691ed6392b7f320f5fa7d4dd78ae52c10e (patch) | |
tree | b20b8bc02e854c4c86d39ee22a0638a8b06e01af /scheme48.init | |
parent | edd1ebef3ad774e7cbcc2f5918d555bfb0b44091 (diff) | |
parent | 64f037d91e0c9296dcaef9a0ff3eb33b19a2ed34 (diff) | |
download | slib-d8ae23691ed6392b7f320f5fa7d4dd78ae52c10e.tar.gz slib-d8ae23691ed6392b7f320f5fa7d4dd78ae52c10e.zip |
Import Debian changes 3a5-1debian/3a5-1
slib (3a5-1) unstable; urgency=low
* New upstream release.
* slib.texi (Library Catalogs): Repeat change from 3a3-3.
* Makefile: Repeat $(htmldir)slib_toc.html changes from 3a2-1.
* guile.init: (library-vicinity): Repeat change from 3a4-2.
* debian/rules (binary-indep): Don't hide .init files in a separate
subdirectory, thus conforming better to the usual slib practice. Put a
symlink in place to ease transitions. (Closes: #407370).
Diffstat (limited to 'scheme48.init')
-rw-r--r-- | scheme48.init | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scheme48.init b/scheme48.init index c7e91af..202c7bb 100644 --- a/scheme48.init +++ b/scheme48.init @@ -13,6 +13,7 @@ s48-getenv s48-current-time s48-time-seconds (s48-access-mode :syntax) s48-accessible? + s48-unlink s48-system s48-current-error-port s48-force-output @@ -34,7 +35,7 @@ (lookup-environment-variable s48-getenv))) (modify posix-files (prefix s48-) - (expose access-mode accessible?)) + (expose access-mode accessible? unlink)) (modify c-system-function (rename (system s48-system))) (modify i/o (rename (current-error-port s48-current-error-port) @@ -247,6 +248,9 @@ )) +;;@ (FILE-POSITION <port> . <k>) +(define (file-position . args) #f) + ;;; (OUTPUT-PORT-WIDTH <port>) (define (output-port-width . arg) 79) @@ -269,7 +273,14 @@ ;;; (DELETE-FILE <string>) (define (delete-file file-name) - (system (string-append "rm " file-name))) + (call-with-current-continuation + (lambda (k) + (s48-with-handler + (lambda (condition decline) + (k #f)) + (lambda () + (s48-unlink file-name) + #t))))) ;;; FORCE-OUTPUT flushes any pending output on optional arg output port ;;; use this definition if your system doesn't have such a procedure. @@ -504,7 +515,7 @@ ,collect ,batch off -,dump slib.image "(slib 3a4)" +,dump slib.image "(slib 3a5)" ;;; Put Scheme48-specific code into catalog (call-with-output-file (in-vicinity (implementation-vicinity) "implcat") |