Basic constructor macro for init-declor-info structures.
(make-init-declor-info [:type <type>]
[:typedefp <typedefp>]
[:uid? <uid?>])
This is the usual way to construct init-declor-info structures. It simply conses together a structure with the specified fields.
This macro generates a new init-declor-info structure from scratch. See also change-init-declor-info, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-init-declor-info (&rest args) (std::make-aggregate 'init-declor-info args '((:type) (:typedefp) (:uid?)) 'make-init-declor-info nil))
Function:
(defun init-declor-info (type typedefp uid?) (declare (xargs :guard (and (typep type) (booleanp typedefp) (uid-optionp uid?)))) (declare (xargs :guard t)) (b* ((type (mbe :logic (type-fix type) :exec type)) (typedefp (mbe :logic (bool-fix typedefp) :exec typedefp)) (uid? (mbe :logic (uid-option-fix uid?) :exec uid?))) (list (cons 'type type) (cons 'typedefp typedefp) (cons 'uid? uid?))))