Skip to content
Snippets Groups Projects
Commit 52af4268 authored by wlott's avatar wlott
Browse files

Allow LISP:AND, LISP:OR, and LISP:NOT in features lists in addition to

:AND, :OR, and :NOT.  This makes featurep useful outside of #+ and #-.
parent 1f5ef871
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/misc.lisp,v 1.14 1992/02/14 23:45:17 wlott Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/misc.lisp,v 1.15 1992/03/03 12:12:40 wlott Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -71,9 +71,9 @@
handle arbitrary combinations of atoms using NOT, AND, OR."
(if (consp x)
(case (car x)
(:not (not (featurep (cadr x))))
(:and (every #'featurep (cdr x)))
(:or (some #'featurep (cdr x)))
((:not not) (not (featurep (cadr x))))
((:and and) (every #'featurep (cdr x)))
((:or or) (some #'featurep (cdr x)))
(t
(error "Unknown operator in feature expression: ~S." x)))
(not (null (memq x *features*)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment