~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to ansi-tests/pathnames-aux.lsp

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;-*- Mode:     Lisp -*-
 
2
;;;; Author:   Paul Dietz
 
3
;;;; Created:  Sat Dec  6 15:05:05 2003
 
4
;;;; Contains: Functions associated with pathname tests
 
5
 
 
6
(in-package :cl-test)
 
7
 
 
8
(defun could-be-pathname-designator (x)
 
9
  (or (stringp x)
 
10
      (pathnamep x)
 
11
      (typep x 'file-stream)
 
12
      (and (typep x 'synonym-stream)
 
13
           (could-be-pathname-designator
 
14
            (symbol-value
 
15
             (synonym-stream-symbol x))))))
 
16
 
 
17
(defun explode-pathname (pn)
 
18
  (list
 
19
   :host   (pathname-host pn)
 
20
   :device (pathname-device pn)
 
21
   :directory (pathname-directory pn)
 
22
   :name   (pathname-name pn)
 
23
   :type   (pathname-type pn)
 
24
   :version (pathname-version pn)))
 
25