X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fpathname.lisp;h=61195bdf399b356d1bf0cfa651ac2c1b4d0621a7;hb=403bacffd903f8c5787a182f4133cffc69b55dc0;hp=4df7de6cffe96ae53fd03b58995d166af2c9d2ba;hpb=78a057624fecd10d0fb2ead4ef02ffc361b1ee22;p=sbcl.git diff --git a/src/code/pathname.lisp b/src/code/pathname.lisp index 4df7de6..61195bd 100644 --- a/src/code/pathname.lisp +++ b/src/code/pathname.lisp @@ -48,23 +48,22 @@ (print-unreadable-object (logical-host stream :type t) (prin1 (logical-host-name logical-host) stream))) -;;; What would it mean to dump a logical host and reload it into -;;; another Lisp image? It's not clear, so we don't support it. (defun make-logical-host-load-form-fun (logical-host) - (error "~@" - logical-host)) + (values `(find-logical-host ',(logical-host-name logical-host)) + nil)) ;;; A PATTERN is a list of entries and wildcards used for pattern ;;; matches of translations. -(sb!xc:defstruct (pattern (:constructor make-pattern (pieces))) +(def!struct (pattern (:constructor make-pattern (pieces))) (pieces nil :type list)) ;;;; PATHNAME structures ;;; the various magic tokens that are allowed to appear in pretty much ;;; all pathname components -(sb!xc:deftype pathname-component-tokens () - '(member nil :unspecific :wild)) +(eval-when (#-sb-xc :compile-toplevel :load-toplevel :execute) + (def!type pathname-component-tokens () + '(member nil :unspecific :wild))) (sb!xc:defstruct (pathname (:conc-name %pathname-) (:constructor %make-pathname (host