Synopsis
(macro) void mda_SetUnionType(void *union_fld, int type)
Purpose
Set the union type of a union field.
Description
The union field type is set to the specified type. The field type must be one of the #defines generated by ddc. For example, an entity declared as:
.RS 3 .nf entity 1:0 Line { union font { char fnum; ptr fdptr; }; float start[3]; float end[3]; }; .sp and instanced as: .sp T_LINE *line_ent; .sp would have its font field set to a font number (fnum) by calling: .sp mda_SetUnionType (&line_ent->font, FONT_FNUM); line_ent->font.u.fnum = SOLID; .fi .RE
Input
union_fld
The union field whose type is to be set
type
Union type which the field is to be set to