chiark / gitweb /
src/final.lisp: Add function for interactively testing type parsing.
[sod] / src / class-make-impl.lisp
index f7231ef1e830db41dc3a214688f29948fed89c4f..dba6965e8b475a051f3a2fc7fd1f3fb029a95900 100644 (file)
@@ -124,7 +124,7 @@ (defmethod make-sod-initializer-using-slot
                 :slot slot
                 :value-kind value-kind
                 :value-form value-form
-                :location location
+                :location (file-location location)
                 :pset pset))
 
 (defmethod shared-initialize :after
@@ -190,7 +190,7 @@ (defmethod make-sod-method-using-message
                 :class class
                 :type type
                 :body body
-                :location location
+                :location (file-location location)
                 :pset pset))
 
 (defmethod sod-message-method-class
@@ -208,7 +208,8 @@ (defmethod shared-initialize :after
                (every (lambda (arg)
                         (or (eq arg :ellipsis)
                             (argument-name arg)
-                            (eq (argument-type arg) (c-type void))))
+                            (c-type-equal-p (argument-type arg)
+                                            c-type-void)))
                       (c-function-arguments type)))
       (error "Abstract declarators not permitted in method definitions")))