Changeset 436


Ignore:
Timestamp:
Jan 30, 2004, 3:49:46 PM (21 years ago)
Author:
Gary Byers
Message:

WILD-PATHNAME-P now earlier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/pathnames.lisp

    r121 r436  
    252252;Wildcards
    253253
    254 (defun wild-pathname-p (pathname &optional field-key)
    255   (flet ((wild-p (name) (or (eq name :wild)
    256                             (eq name :wild-inferiors)
    257                             (and (stringp name) (%path-mem "*" name)))))
    258     (case field-key
    259       ((nil)
    260        (or (some #'wild-p (pathname-directory pathname))
    261            (wild-p (pathname-name pathname))
    262            (wild-p (pathname-type pathname))
    263            (wild-p (pathname-version pathname))))
    264       (:host nil)
    265       (:device nil)
    266       (:directory (some #'wild-p (pathname-directory pathname)))
    267       (:name (wild-p (pathname-name pathname)))
    268       (:type (wild-p (pathname-type pathname)))
    269       (:version (wild-p (pathname-version pathname)))
    270       (t (wild-pathname-p pathname
    271                           (require-type field-key
    272                                         '(member nil :host :device
    273                                           :directory :name :type :version)))))))
     254
    274255
    275256 
Note: See TracChangeset for help on using the changeset viewer.