src/pset-{proto,impl}.lisp: Move `decode-property' methods to `impl'.
[sod] / src / pset-impl.lisp
index f938ad3..8e1743f 100644 (file)
 (defmethod file-location ((prop property))
   (file-location (p-location prop)))
 
+;;; Input conversions.
+
+(defmethod decode-property ((raw symbol)) (values :symbol raw))
+(defmethod decode-property ((raw integer)) (values :int raw))
+(defmethod decode-property ((raw string)) (values :string raw))
+(defmethod decode-property ((raw character)) (values :char raw))
+(defmethod decode-property ((raw function)) (values :func raw))
+(defmethod decode-property ((raw c-type)) (values :type raw))
+
 ;;; Keywords.
 
 (defmethod coerce-property-value