[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'. |
Date: |
Mon, 12 Apr 2021 05:55:41 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit 855f3948eca7bb56fdbbc3d47a6d485ccf012a3c
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Aug 13 18:54:22 2020 +0200
ice-9 ftw: Use 'absolute-file-name?' in 'nftw'.
* module/ice-9/ftw.scm (abs?): Remove.
(nftw): Use 'absolute-file-name?' instead.
---
module/ice-9/ftw.scm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/module/ice-9/ftw.scm b/module/ice-9/ftw.scm
index ac4dd60..dd6f490 100644
--- a/module/ice-9/ftw.scm
+++ b/module/ice-9/ftw.scm
@@ -231,9 +231,6 @@
(substring result 1 (string-length result)))
(loop (cdr nodes) (string-append result "/" (car nodes))))))
-(define (abs? filename)
- (char=? #\/ (string-ref filename 0)))
-
;; `visited?-proc' returns a test procedure VISITED? which when called as
;; (VISITED? stat-obj) returns #f the first time a distinct file is seen,
;; then #t on any subsequent sighting of it.
@@ -347,7 +344,7 @@
(lambda (s) #t)))
(base-sub (lambda (name base) (substring name 0 base)))
(maybe-cd (if (memq 'chdir control-flags)
- (if (abs? filename)
+ (if (absolute-file-name? filename)
(lambda (fullname base)
(or (= 0 base)
(chdir (base-sub fullname base))))
- [Guile-commits] branch wip-mingw created (now be9b668), Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'.,
Jan Nieuwenhuizen <=
- [Guile-commits] 10/15: DRAFT Support for x86_64-w64-mingw32., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 15/15: DEBUG guile.cmd: Some Wine help., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 05/15: Compile fix for x86_64-MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 06/15: Add 'set-mode' procedure for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 11/15: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 08/15: Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 12/15: Define 'SIGHUP' for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 01/15: Document write-line., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 03/15: Fix 'gethostname' prototype for x86_64-MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 04/15: Clear errno before CreateProcess for MinGW., Jan Nieuwenhuizen, 2021/04/12