chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/syntax.tex: Delete (wrong) duplicate rule for <argument-declarator>.
[sod]
/
src
/
pset-impl.lisp
diff --git
a/src/pset-impl.lisp
b/src/pset-impl.lisp
index e498debc932a0a267cbbd7edfbe97469cad8c05a..14cb43b9a3f5dbe3dc5773fd30a36e7d6f36042d 100644
(file)
--- a/
src/pset-impl.lisp
+++ b/
src/pset-impl.lisp
@@
-7,7
+7,7
@@
;;;----- Licensing notice ---------------------------------------------------
;;;
;;;----- Licensing notice ---------------------------------------------------
;;;
-;;; This file is part of the Sensble Object Design, an object system for C.
+;;; This file is part of the Sens
i
ble Object Design, an object system for C.
;;;
;;; SOD is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;;
;;; SOD is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
@@
-65,6
+65,14
@@
(defmethod coerce-property-value
((value symbol) (type (eql :symbol)) (wanted (eql :id)))
(frob-identifier (symbol-name value)))
((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.
;;;--------------------------------------------------------------------------
;;; Property sets.