#| -*-Scheme-*-
-$Id: pathnm.scm,v 14.41 2004/11/26 04:47:24 cph Exp $
+$Id: pathnm.scm,v 14.42 2004/11/26 05:04:27 cph Exp $
Copyright 1987,1988,1989,1990,1991,1992 Massachusetts Institute of Technology
Copyright 1993,1994,1995,1996,2000,2001 Massachusetts Institute of Technology
\f
(define-structure (pathname
(type vector)
- (named ((ucode-primitive string->symbol)
- "#[(runtime pathname)pathname]"))
+ (named '|#[(runtime pathname)pathname]|)
(constructor %make-pathname)
(conc-name %pathname-)
(print-procedure
(type #f read-only #t)
(version #f read-only #t))
+(define (guarantee-pathname object caller)
+ (if (not (pathname? object))
+ (error:not-pathname object caller)))
+
+(define (error:not-pathname object caller)
+ (error:wrong-type-argument object "pathname" caller))
+
(define (->pathname object)
(pathname-arg object #f '->PATHNAME))
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.520 2004/11/26 04:47:35 cph Exp $
+$Id: runtime.pkg,v 14.521 2004/11/26 05:04:42 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
directory-pathname?
enough-namestring
enough-pathname
+ error:not-pathname
file-namestring
file-pathname
+ guarantee-pathname
host-namestring
host/type-name
host=?