chickadee » crunch » define-struct

(define-struct STRUCT (SLOTSPEC TYPE) ...)syntax
(define-union UNION (SLOTSPEC TYPE) ...)syntax

Define C structure and union types. A struct or union definition will be emitted in the generated C code and the type will be internally registered in the compiler to be used later with define-compound-accessors, if desired.

SLOTSPEC should be a symbol naming the slot or a list of the form (SLOTNAME COUNT) to specify that the slot is an array of COUNT items.