X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/e0808c472145fc81e52898bc9ac289e10c4f4f41..12386a2694932857981a076536c6297f8eaa661f:/src/pset-impl.lisp diff --git a/src/pset-impl.lisp b/src/pset-impl.lisp index e3e505f..14cb43b 100644 --- a/src/pset-impl.lisp +++ b/src/pset-impl.lisp @@ -65,6 +65,14 @@ ((value symbol) (type (eql :symbol)) (wanted (eql :id))) (frob-identifier (symbol-name value))) +;;; Types. + +(defmethod coerce-property-value + ((value string) (type (eql :id)) (wanted (eql :type))) + (or (gethash value *module-type-map*) + (gethash value *declspec-map*) + (error "Unknown type `~A'." value))) + ;;;-------------------------------------------------------------------------- ;;; Property sets.