X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/6bc944c3cebb89056d9ed0b53eff6260909291a9..12386a2694932857981a076536c6297f8eaa661f:/src/class-utilities.lisp diff --git a/src/class-utilities.lisp b/src/class-utilities.lisp index aa4ef17..573c677 100644 --- a/src/class-utilities.lisp +++ b/src/class-utilities.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible 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 @@ -160,7 +160,8 @@ (and (= (length message-args) (length method-args)) (every (lambda (message-arg method-arg) (if (eq message-arg :ellipsis) - (eq method-arg (c-type va-list)) + (c-type-equal-p (argument-type method-arg) + c-type-va-list) (c-type-equal-p (argument-type message-arg) (argument-type method-arg)))) message-args method-args))) @@ -188,6 +189,10 @@ (defun vtmsgs-struct-tag (class super) (format nil "~A__vtmsgs_~A" class (sod-class-nickname super))) +(export 'vtable-union-tag) +(defun vtable-union-tag (class chain-head) + (format nil "~A__vtu_~A" class (sod-class-nickname chain-head))) + (export 'vtable-struct-tag) (defun vtable-struct-tag (class chain-head) (format nil "~A__vt_~A" class (sod-class-nickname chain-head))) @@ -197,7 +202,7 @@ (format nil "~A__vtable_~A" class (sod-class-nickname chain-head))) (export 'message-macro-name) -(defun message-macro-name (class message) - (format nil "~A_~A" class (sod-message-name message))) +(defun message-macro-name (class entry) + (format nil "~A_~A" class (method-entry-slot-name entry))) ;;;----- That's all, folks --------------------------------------------------