X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/02198d7df7bacbd441a58a86bb0da123706c0daf..050b602e6c70ee9f950fc9a579377c118fcb7a61:/gffi/interface.lisp diff --git a/gffi/interface.lisp b/gffi/interface.lisp index 72aa21b..084ed47 100644 --- a/gffi/interface.lisp +++ b/gffi/interface.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: interface.lisp,v 1.8 2007-11-29 18:37:14 espen Exp $ +;; $Id: interface.lisp,v 1.10 2008-12-10 02:40:18 espen Exp $ (in-package "GFFI") @@ -216,7 +216,8 @@ when (out-arg-p style) collect (return-type out-type) when (return-arg-p style) - collect (return-type type))))))) + collect (return-type type)))) + ,lisp-name))) (defun ,lisp-name ,lambda-list ,doc (let ,aux-bindings @@ -444,6 +445,8 @@ (error "~A can not be expanded to ~A" form type)))))) (expand form))) +(defun type-equal-p (type1 type2) + (and (subtypep type1 type2) (subtypep type2 type1))) ;;;; Type methods