yumapro
24.10-1
YumaPro SDK
|
Enumeration data type handling. More...
Functions | |
void | ncx_init_enum (ncx_enum_t *enu) |
Init the memory of a ncx_enum_t. More... | |
void | ncx_clean_enum (ncx_enum_t *enu) |
Scrub the memory of a ncx_enum_t but do not delete it. More... | |
int32 | ncx_compare_enums (const ncx_enum_t *enu1, const ncx_enum_t *enu2) |
Compare 2 enum values. More... | |
status_t | ncx_set_enum (const xmlChar *enum_name, const int32 enum_val, ncx_enum_t *retenu) |
Parse an enumerated integer string into an ncx_enum_t without matching it against any typdef. More... | |
Enumeration data type handling.
The VAL_ENUM_NAME macro is used in SIL code to test the ncx_enum_t struct within a val_value_t struct.
void ncx_clean_enum | ( | ncx_enum_t * | enu | ) |
Scrub the memory of a ncx_enum_t but do not delete it.
enu | ncx_enum_t struct to clean |
int32 ncx_compare_enums | ( | const ncx_enum_t * | enu1, |
const ncx_enum_t * | enu2 | ||
) |
Compare 2 enum values.
enu1 | first ncx_enum_t check |
enu2 | second ncx_enum_t check |
void ncx_init_enum | ( | ncx_enum_t * | enu | ) |
Init the memory of a ncx_enum_t.
enu | ncx_enum_t struct to init |
status_t ncx_set_enum | ( | const xmlChar * | enum_name, |
const int32 | enum_val, | ||
ncx_enum_t * | retenu | ||
) |
Parse an enumerated integer string into an ncx_enum_t without matching it against any typdef.
Mallocs a copy of the enum name, using the enu->dname field
enum_name | enum string value to set |
enum_val | enum value number to set |
retenu | pointer to return enum variable to fill in |