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


5.2.3.2 Constructors and Destructors

type_t *type_create(...);
Creates a new object of type type_t and returns its address.
void type_destroy(type_t *object);
Permanently destroys an object of type type_t; all subsequent operations on that object are undefined.
type_t *type_copy(const type_t *object);
Creates an exact copy of an object of type type_t and returns its address.
void type_mirror(const type_t *source, type_t *target);
Given two valid objects of type type_t, makes target become an exact copy of source.
void type_initialize(type_t *address, ...);
Given the address of sizeof(type_t) bytes, initializes that memory location to contain a valid object of type type_t.
void type_finalize(type_t *object);
Given a valid object of type type_t, finalizes that object so that the subsequent freeing of sizeof(type_t) bytes at the given address will completely destroy the given object.


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