|
libmya 0.1.0
Library to parse Mya language.
|
A bitfield or bitfield's field declaration. More...
#include <mir.h>

Data Fields | |
| dstring_t | name |
| Name of the bitfield. | |
| mir_bitfield_spec_type_t | type |
| Specify the type of this bitfield specification. | |
| dstring_t | identifier |
| Bitfield's value identifier. | |
| int64_t | value |
| Bitfield's literal value. | |
| struct mir_bitfield_spec * | spec |
| Bitfield's list of field specifications. | |
| unsigned int | spec_length |
Number of elements on the spec array. | |
| unsigned int | _spec_size |
Size of the allocated memory for spec array. | |
A bitfield or bitfield's field declaration.
Examples:
In the second example, the opcode = 0x11 and reg = arg1 are represented with this struct too, in the spec list of the Opcode{} specification.
| unsigned int mir_bitfield_spec::_spec_size |
| dstring_t mir_bitfield_spec::identifier |
| struct mir_bitfield_spec* mir_bitfield_spec::spec |
| unsigned int mir_bitfield_spec::spec_length |
| mir_bitfield_spec_type_t mir_bitfield_spec::type |