Changeset 5628
- Timestamp:
- Dec 18, 2006, 11:57:49 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-files.lisp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-files.lisp
r4757 r5628 204 204 (defun %pathname-version (pathname) 205 205 (if (logical-pathname-p pathname) 206 (%logical-pathname-version pathname)207 :newest))206 (%logical-pathname-version pathname) 207 (%physical-pathname-version pathname))) 208 208 209 209 … … 215 215 (defun pathname-version (thing) ; redefined later in this file 216 216 (declare (ignore thing)) 217 :unspecific)217 nil) 218 218 219 219 (defmethod print-object ((pathname pathname) stream) … … 339 339 (defun file-namestring (path) 340 340 "Return a string representation of the name used in the pathname." 341 (let* ((name (pathname-name path)) 341 (let* ((path (pathname path)) 342 (name (pathname-name path)) 342 343 (type (pathname-type path)) 343 (version ( pathname-version path)))344 (version (if (typep path 'logical-pathname) (pathname-version path)))) 344 345 (file-namestring-from-parts name type version))) 345 346 … … 408 409 (if (neq host :unspecific) 409 410 (%cons-logical-pathname dir name type host version) 410 (%cons-pathname dir name type )))411 (%cons-pathname dir name type version))) 411 412 412 413 (defun pathname (path) … … 452 453 (setq name (%std-name-component (%substr sstr start-pos end-pos)))) 453 454 (if (eq host :unspecific) 454 (%cons-pathname directory name type )455 (%cons-pathname directory name type version) 455 456 (%cons-logical-pathname directory name type host version))))) 456 457 … … 510 511 (setq path 511 512 (if (eq host :unspecific) 512 (%cons-pathname directory name type )513 (%cons-pathname directory name type version) 513 514 (%cons-logical-pathname 514 515 (or directory … … 751 752 (typecase path 752 753 (logical-pathname (%logical-pathname-version path)) 753 (pathname :unspecific)754 (pathname (%physical-pathname-version path)) 754 755 (string 755 756 (multiple-value-bind (sstr start end) (get-sstring path) 756 757 (multiple-value-bind (newstart host) (pathname-directory-end sstr start end) 757 758 (if (eq host :unspecific) 758 :unspecific759 nil 759 760 (pathname-version-sstr sstr newstart end))))) 760 761 (t (report-bad-arg path pathname-arg-type))))
Note:
See TracChangeset
for help on using the changeset viewer.
