X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/cab163b724806bf1d0dcf48795dba8ca1ffbd967..7ca1b1eff75521ed91b4efb4d69f90df6e1fa851:/src/c-types-parse.lisp diff --git a/src/c-types-parse.lisp b/src/c-types-parse.lisp index 58e3ced..4475c72 100644 --- a/src/c-types-parse.lisp +++ b/src/c-types-parse.lisp @@ -119,6 +119,10 @@ 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 () @@ -143,10 +147,6 @@ 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) () ())