X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpathname.lisp;h=efed3812c2116c024d3e764d3291b33e472e8701;hb=a160917364f85b38dc0826a5e3dcef87e3c4c62c;hp=6d3052d015265865db1fec91e5d5b298d012d55e;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/pathname.lisp b/src/code/pathname.lisp index 6d3052d..efed381 100644 --- a/src/code/pathname.lisp +++ b/src/code/pathname.lisp @@ -18,11 +18,14 @@ ;;; translation the inverse (unparse) functions. (def!struct (host (:constructor nil)) (parse (missing-arg) :type function) + (parse-native (missing-arg) :type function) (unparse (missing-arg) :type function) + (unparse-native (missing-arg) :type function) (unparse-host (missing-arg) :type function) (unparse-directory (missing-arg) :type function) (unparse-file (missing-arg) :type function) (unparse-enough (missing-arg) :type function) + (unparse-directory-separator (missing-arg) :type simple-string) (customary-case (missing-arg) :type (member :upper :lower))) (def!method print-object ((host host) stream) @@ -32,15 +35,24 @@ (:make-load-form-fun make-logical-host-load-form-fun) (:include host (parse #'parse-logical-namestring) + (parse-native + (lambda (&rest x) + (error "called PARSE-NATIVE-NAMESTRING using a ~ + logical host: ~S" (first x)))) (unparse #'unparse-logical-namestring) + (unparse-native + (lambda (&rest x) + (error "called NATIVE-NAMESTRING using a ~ + logical host: ~S" (first x)))) (unparse-host (lambda (x) (logical-host-name (%pathname-host x)))) (unparse-directory #'unparse-logical-directory) (unparse-file #'unparse-logical-file) (unparse-enough #'unparse-enough-namestring) + (unparse-directory-separator ";") (customary-case :upper))) - (name "" :type simple-base-string) + (name "" :type simple-string) (translations nil :type list) (canon-transls nil :type list))