* Undo whitespace damage from Window commits.
(let ((trueishname (sb!unix:unix-resolve-links namestring)))
(when trueishname
(let* ((*ignore-wildcards* t)
- (name (simplify-namestring
- trueishname
+ (name (simplify-namestring
+ trueishname
(pathname-host defaulted-pathname))))
(if (eq (sb!unix:unix-file-kind name) :directory)
;; FIXME: this might work, but it's ugly.
(let* ((end (%check-vector-sequence-bounds namestr start end)))
(multiple-value-bind (new-host device directory file type version)
(cond
- (host
+ (host
(funcall (host-parse-native host) namestr start end))
((pathname-host defaults)
(funcall (host-parse-native (pathname-host defaults))
(if (null link)
(return pathname)
(let ((new-pathname
- (simplify-namestring
+ (simplify-namestring
(if (relative-unix-pathname? link)
(let* ((dir-len (1+ (position #\/
pathname
for piece = (subseq namestring start end)
collect (if (and (string= piece "..") rest)
:up
- piece)))
+ piece)))
(name-and-type
(let* ((end (first (last components)))
(dot (position #\. end :from-end t)))
(unless directory (go :done))
:subdir
(let ((piece (pop directory)))
- (typecase piece
+ (typecase piece
((member :up) (write-string ".." s))
(string (write-string piece s))
(t (error "ungood piece in NATIVE-NAMESTRING: ~S" piece)))
(t
(setf dots nil)
(setf (schar dst dst-len) char)
- (incf dst-len)))))
+ (incf dst-len)))))
;; ...finish off
(when (and last-slash (not (zerop last-slash)))
(case dots
/* No _r versions on Windows, but the API documentation also
* doesn't warn them about being non-reentrant... So here's
* hoping they actually are -- once Windows grows threads
- * this better be checked, though.
+ * this better be checked, though.
*
* The Windows versions also don't support times before the
* epoch, so we kludge it. */
- if (when < 0)
- when = -when;
+ if (when < 0)
+ when = -when;
ltm = *localtime(&when);
gtm = *gmtime(&when);
#else
;;; LET* + VALUES declaration: while the declaration is a non-standard
;;; and possibly a non-conforming extension, as long as we do support
;;; it, we might as well get it right.
-;;;
+;;;
;;; Bug reported by Kaersten Poeck on sbcl-devel 20061023.
(compile nil '(lambda () (let* () (declare (values list)))))
(assert (equal "C:\\FOO" (native-namestring "C:\\FOO")))
(assert (equal "C:\\FOO" (native-namestring "C:/FOO")))
(assert (equal "C:\\FOO\\BAR" (native-namestring "C:\\FOO\\BAR")))
- ;; FIXME: Other platforms don't do this: either fix Windows
+ ;; FIXME: Other platforms don't do this: either fix Windows
;; so that it works even with the same logic others use, or
;; make this official. (Currently just a kludge.)
(assert (equal "C:\\FOO\\BAR" (native-namestring "C:\\FOO\\BAR\\"))))
;;; given only safe characters in the namestring, NATIVE-PATHNAME will
;;; never error, and NATIVE-NAMESTRING on the result will return the
;;; original namestring.
-(with-test (:name :random-native-namestrings)
+(with-test (:name :random-native-namestrings)
(let ((safe-chars
(coerce
(cons #\Newline
-;;; This is the master value for LISP-IMPLEMENTATION-VERSION. It's
+';;; This is the master value for LISP-IMPLEMENTATION-VERSION. It's
;;; separated into its own file here so that it's easy for
;;; text-munging make-ish or cvs-ish scripts to find and tweak it. For
;;; the convenience of such scripts, only a simple subset of Lisp
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.18.10"
+"0.9.18.11"