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