Add additional result types and change some code to use appropriate types.

This commit is contained in:
Danila Fedorin 2018-05-22 13:03:14 -07:00
parent 680f65d2e6
commit 2a1d51ae78
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}
}