Add additional result types and change some code to use appropriate types.
This commit is contained in:
parent
680f65d2e6
commit
2a1d51ae78
|
@ -13,7 +13,9 @@ enum libab_result_e {
|
|||
LIBAB_UNKNOWN_TYPE,
|
||||
LIBAB_BAD_TYPE,
|
||||
LIBAB_EOF,
|
||||
LIBAB_UNEXPECTED
|
||||
LIBAB_UNEXPECTED,
|
||||
LIBAB_AMBIGOUS_TYPE,
|
||||
LIBAB_MISMATCHED_TYPE
|
||||
};
|
||||
|
||||
typedef enum libab_result_e libab_result;
|
||||
|
|
|
@ -65,7 +65,7 @@ libab_result libab_resolve_parsetype(libab_parsetype* to_resolve,
|
|||
to_resolve->data_u.base = basetype;
|
||||
to_resolve->variant |= LIBABACUS_TYPE_F_RESOLVED;
|
||||
} else {
|
||||
result = LIBAB_BAD_TYPE;
|
||||
result = LIBAB_UNKNOWN_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user