X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/e0808c472145fc81e52898bc9ac289e10c4f4f41..6ee1970906d33f0b1b2be20e2f8a4521a6ca514f:/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.