chickadee » crunch » define-struct-type

(define-struct-type NAME (CTOR ARGUMENT ...) PREDICATE FIELD ...)syntax

A combination of struct- and accessor definition, defining a struct of the given name, a constructor procedure and a number of fields of the form (FIELDNAME TYPE GETTER [SETTER]), similar to define-record-type. The PREDICATE is ignored, unless this syntax is expanded in normal CHICKEN code, in which the field types are ignored and the form expands, mutatis mutandis, into an equivalent define-record-type expression.

The constructor returns a pointer which must be explicitly freed (using free).