(do ((y x (safe-cddr y))
(started-p nil t)
(z x (cdr z)))
- ((or (not z) (not y)) nil)
+ ((not (and (consp z) (consp y))) nil)
(when (and started-p (eq y z))
(return t))))))
(t
(error "not legal as a function name: ~S" function-name))))
+(defun looks-like-name-of-special-var-p (x)
+ (and (symbolp x)
+ (let ((name (symbol-name x)))
+ (and (> (length name) 2) ; to exclude '* and '**
+ (char= #\* (aref name 0))
+ (char= #\* (aref name (1- (length name))))))))
+
;;; ANSI guarantees that some symbols are self-evaluating. This
;;; function is to be called just before a change which would affect
;;; that. (We don't absolutely have to call this function before such
(print-unreadable-object (structure ,stream :type t)
,@(nreverse reversed-prints))))))
\f
+;;;; etc.
+
+;;; Given a pathname, return a corresponding physical pathname.
+(defun physicalize-pathname (possibly-logical-pathname)
+ (if (typep possibly-logical-pathname 'logical-pathname)
+ (translate-logical-pathname possibly-logical-pathname)
+ possibly-logical-pathname))
+\f
#|
;;; REMOVEME when done testing byte cross-compiler
(defun byte-compiled-foo (x y)