diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:28 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:28 -0800 |
commit | bd9733926076885e3417b74de76e4c9c7bc56254 (patch) | |
tree | 2c99dced547d48407ad44cb0e45e31bb4d02ce43 /alistab.scm | |
parent | fa3f23105ddcf07c5900de47f19af43d1db1b597 (diff) | |
download | slib-bd9733926076885e3417b74de76e4c9c7bc56254.tar.gz slib-bd9733926076885e3417b74de76e4c9c7bc56254.zip |
Import Upstream version 2c7upstream/2c7
Diffstat (limited to 'alistab.scm')
-rw-r--r-- | alistab.scm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/alistab.scm b/alistab.scm index f0e8d59..426a4e3 100644 --- a/alistab.scm +++ b/alistab.scm @@ -42,12 +42,13 @@ (list resources (list 'free-id 1)))) (define (open-base infile writable) - (cons (if (input-port? infile) #f infile) - ((lambda (fun) - (if (input-port? infile) - (fun infile) - (call-with-input-file infile fun))) - read))) + (and (or (input-port? infile) (file-exists? infile)) + (cons (if (input-port? infile) #f infile) + ((lambda (fun) + (if (input-port? infile) + (fun infile) + (call-with-input-file infile fun))) + read)))) (define (write-base lldb outfile) ((lambda (fun) @@ -306,7 +307,7 @@ (define (supported-key-type? type) (case type - ((atom integer symbol string) #t) + ((atom integer number symbol string) #t) (else #f))) ;;make-table open-table remover assoc* make-assoc* |