From 64f037d91e0c9296dcaef9a0ff3eb33b19a2ed34 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:38 -0800 Subject: Import Upstream version 3a5 --- scheme48.init | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'scheme48.init') 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 . ) +(define (file-position . args) #f) + ;;; (OUTPUT-PORT-WIDTH ) (define (output-port-width . arg) 79) @@ -269,7 +273,14 @@ ;;; (DELETE-FILE ) (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") -- cgit v1.2.3