Skip to content

Commit 33dfa62

Browse files
author
Edi Weitz
committed
For 0.6.4 release
git-svn-id: svn://bknr.net/svn/trunk/thirdparty/cl-fad@4624 4281704c-cde7-0310-8518-8e2dc76b1ff0
1 parent d88e2e4 commit 33dfa62

9 files changed

+41
-16
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.6.4
2+
2010-11-18
3+
Adapt to newer ClozureCL version (patch from Zach Beane, thanks to Chun Tian and Ralph Moritz as well)
4+
15
Version 0.6.3
26
2009-09-30
37
Removed dependency on :SB-EXECUTABLE (thanks to Attila Lendvai and Tobias Rittweiler)

cl-fad.asd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/cl-fad.asd,v 1.21 2009/09/30 14:23:09 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions
@@ -30,7 +30,7 @@
3030
#+:allegro (cl:require :osi)
3131

3232
(asdf:defsystem #:cl-fad
33-
:version "0.6.3"
33+
:version "0.6.4"
3434
:serial t
3535
:components ((:file "packages")
3636
#+:cormanlisp (:file "corman")

corman.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/corman.lisp,v 1.5 2009/09/30 14:23:09 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions

doc/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h2>CL-FAD - A portable pathname library for Common Lisp</h2>
7373

7474
CL-FAD together with this documentation can be downloaded from <a
7575
href="http://weitz.de/files/cl-fad.tar.gz">http://weitz.de/files/cl-fad.tar.gz</a>. The
76-
current version is 0.6.3.
76+
current version is 0.6.4.
7777
<p>
7878
CL-FAD comes with simple system definitions for <a
7979
href="http://www.cliki.net/mk-defsystem">MK:DEFSYSTEM</a> and <a

fad.lisp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
;;; $Header: /usr/local/cvsrep/cl-fad/fad.lisp,v 1.35 2009/09/30 14:23:10 edi Exp $
33

44
;;; Copyright (c) 2004, Peter Seibel. All rights reserved.
5-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
5+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
66

77
;;; Redistribution and use in source and binary forms, with or without
88
;;; modification, are permitted provided that the following conditions
@@ -272,7 +272,7 @@ DIRNAME does not exist."
272272
file (unix:get-unix-error-msg errno))))
273273
#+:sbcl (sb-posix:rmdir file)
274274
#+:clisp (ext:delete-dir file)
275-
#+:openmcl (ccl:delete-directory file)
275+
#+:openmcl (cl-fad-ccl:delete-directory file)
276276
#+:cormanlisp (win32:delete-directory file)
277277
#+:ecl (si:rmdir file)
278278
#+(or :abcl :digitool) (delete-file file))

load.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/load.lisp,v 1.9 2009/09/30 14:23:10 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions

openmcl.lisp

+28-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CCL; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/openmcl.lisp,v 1.6 2009/09/30 14:23:10 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions
@@ -27,22 +27,43 @@
2727
;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2828
;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

30-
(in-package :ccl)
30+
(in-package :cl-fad)
3131

3232
(eval-when (:compile-toplevel :load-toplevel :execute)
33-
(let ((%rmdir-symbol (find-symbol "%RMDIR" :ccl)))
34-
(unless (and %rmdir-symbol (fboundp %rmdir-symbol))
35-
(pushnew :no-%rmdir *features*))))
33+
(flet ((ccl-function-feature (symbol-name feature)
34+
(let ((symbol (find-symbol symbol-name :ccl)))
35+
(when (and symbol (fboundp symbol))
36+
(pushnew feature *features*)))))
37+
(ccl-function-feature "%RMDIR" :ccl-has-%rmdir)
38+
(ccl-function-feature "DELETE-DIRECTORY" :ccl-has-delete-directory)))
3639

37-
#+:no-%rmdir
40+
(defpackage :cl-fad-ccl
41+
(:use :cl)
42+
(:export delete-directory)
43+
(:import-from :ccl
44+
:%realpath
45+
:signal-file-error
46+
:native-translated-namestring
47+
:with-cstrs)
48+
#+ccl-has-%rmdir
49+
(:import-from :ccl :%rmdir)
50+
#+ccl-has-delete-directory
51+
(:import-from :ccl :delete-directory))
52+
53+
(in-package :cl-fad-ccl)
54+
55+
#-ccl-has-%rmdir
3856
(defun %rmdir (name)
3957
(with-cstrs ((n name))
4058
(#_rmdir n)))
4159

60+
;;; ClozureCL 1.6 introduced ccl:delete-directory with semantics that
61+
;;; are acceptably similar to this "legacy" definition.
62+
63+
#-ccl-has-delete-directory
4264
(defun delete-directory (path)
4365
(let* ((namestring (native-translated-namestring path)))
4466
(when (%realpath namestring)
4567
(let* ((err (%rmdir namestring)))
4668
(or (eql 0 err) (signal-file-error err path))))))
4769

48-
(export 'delete-directory)

packages.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/packages.lisp,v 1.12 2009/09/30 14:23:10 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions

test.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-FAD-TEST; Base: 10 -*-
22
;;; $Header: /usr/local/cvsrep/cl-fad/test.lisp,v 1.12 2009/09/30 14:23:10 edi Exp $
33

4-
;;; Copyright (c) 2004-2009, Dr. Edmund Weitz. All rights reserved.
4+
;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
55

66
;;; Redistribution and use in source and binary forms, with or without
77
;;; modification, are permitted provided that the following conditions

0 commit comments

Comments
 (0)