Basic constructor macro for declor structures.
(make-declor [:pointers <pointers>] [:decl <decl>])
This is the usual way to construct declor structures. It simply conses together a structure with the specified fields.
This macro generates a new declor structure from scratch. See also change-declor, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-declor (&rest args) (std::make-aggregate 'declor args '((:pointers) (:decl)) 'make-declor nil))
Function:
(defun declor (pointers decl) (declare (xargs :guard (and (type-qual-list-listp pointers) (dirdeclorp decl)))) (declare (xargs :guard t)) (let ((__function__ 'declor)) (declare (ignorable __function__)) (b* ((pointers (mbe :logic (type-qual-list-list-fix pointers) :exec pointers)) (decl (mbe :logic (dirdeclor-fix decl) :exec decl))) (list (cons 'pointers pointers) (cons 'decl decl)))))