Go to the first, previous, next, last section, table of contents.


5.2.3.3 Predicates, Selectors, and Mutators

boolean_t type_is_predicate(const type_t *object);
Returns TRUE if and only if the Boolean predicate holds for a given object of type type_t.
value type_attribute(const type_t *object);
Returns value of given attribute for given object of type type_t, or the address of that value.
void type_set_attribute(type_t *object, ...);
Change an object of type type_t so that the desired attribute now holds for that object.
unsigned type_bytes(const type_t *object);
Returns the number of bytes that would be reclaimed by calling type_destroy(object), as measured by memory_total_bytes().
void *type_workspace_p(const type_t *object);
Returns address of caller workspace in object of type type_t, which caller is allowed to modify.


Go to the first, previous, next, last section, table of contents.