Skip to content
Snippets Groups Projects
Commit 9aed2729 authored by ram's avatar ram
Browse files

Changed PARSE-NAMESTRING to use WITH-ARRAY-DATA.

parent dcbb20c2
No related branches found
No related tags found
No related merge requests found
...@@ -7,12 +7,10 @@ ...@@ -7,12 +7,10 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.8 1991/02/08 13:32:39 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.9 1991/04/25 13:25:48 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.8 1991/02/08 13:32:39 ram Exp $
;;;
;;; Ugly pathname functions for Spice Lisp. ;;; Ugly pathname functions for Spice Lisp.
;;; these functions are part of the standard Spice Lisp environment. ;;; these functions are part of the standard Spice Lisp environment.
;;; ;;;
...@@ -219,10 +217,11 @@ ...@@ -219,10 +217,11 @@
(pathname (pathname
(etypecase thing (etypecase thing
((or string symbol) ((or string symbol)
(let ((string (coerce (string thing) 'simple-string))) (with-array-data ((string (string thing))
(start start)
(end end))
(multiple-value-bind (device directories name type) (multiple-value-bind (device directories name type)
(do-filename-parse string start end) (do-filename-parse string start end)
(unless end (setf end (length string)))
(make-pathname :host host (make-pathname :host host
:device device :device device
:directory directories :directory directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment