Having them just after the definition of `declspecs' doesn't seem to
make a great deal of sense.
map)
"Maps symbolic labels and textual names to `declspec' instances.")
map)
"Maps symbolic labels and textual names to `declspec' instances.")
+(defmethod ds-label ((ty c-type)) :c-type)
+(defmethod ds-name ((ty c-type)) (princ-to-string ty))
+(defmethod ds-kind ((ty c-type)) 'type)
+
;; A collection of declaration specifiers, and how to merge them together.
(defclass declspecs ()
;; A collection of declaration specifiers, and how to merge them together.
(defclass declspecs ()
collection isn't good, I must roll back to the previous version. So I
don't get to take advantage of a mutable structure.)"))
collection isn't good, I must roll back to the previous version. So I
don't get to take advantage of a mutable structure.)"))
-(defmethod ds-label ((ty c-type)) :c-type)
-(defmethod ds-name ((ty c-type)) (princ-to-string ty))
-(defmethod ds-kind ((ty c-type)) 'type)
-
(defparameter *good-declspecs*
'(((:int) (:signed :unsigned) (:short :long :long-long) ())
((:char) (:signed :unsigned) () ())
(defparameter *good-declspecs*
'(((:int) (:signed :unsigned) (:short :long :long-long) ())
((:char) (:signed :unsigned) () ())