diff options
Diffstat (limited to 'src/property/os.lisp')
-rw-r--r-- | src/property/os.lisp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/property/os.lisp b/src/property/os.lisp index f89534e..934dec8 100644 --- a/src/property/os.lisp +++ b/src/property/os.lisp @@ -83,7 +83,7 @@ ;;;; Property combinators -(define-function-property-combinator os-typecase* (host &rest cases) +(define-function-property-combinator os-etypecase* (host &rest cases) (flet ((choose-propapp () (or (loop with os = (class-of (if host (car (getf (hostattrs host) :os)) @@ -91,7 +91,7 @@ for (type propapp) on cases by #'cddr when (subtypep os type) return propapp) (inapplicable-property - "Host's OS ~S fell through OS:TYPECASE." + "Host's OS ~S fell through OS:ETYPECASE." (class-of (get-hostattrs-car :os)))))) (:retprop :type (collapse-types (loop for propapp in (cdr cases) by #'cddr collect (propapptype propapp))) @@ -108,11 +108,11 @@ (declare (ignore args)) (propappunapply (choose-propapp)))))) -(defmacro typecase (&body cases) - `(host-typecase nil ,@cases)) +(defmacro etypecase (&body cases) + `(host-etypecase nil ,@cases)) -(defmacro host-typecase (host &body cases) - `(os-typecase* +(defmacro host-etypecase (host &body cases) + `(os-etypecase* ,host ,@(loop for case in cases collect `',(intern (symbol-name (car case)) |