diff --git a/include/result.h b/include/result.h index a4beda8..5cce857 100644 --- a/include/result.h +++ b/include/result.h @@ -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; diff --git a/src/util.c b/src/util.c index 4aa6a56..9a665d0 100644 --- a/src/util.c +++ b/src/util.c @@ -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; } }