X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast.c;h=3944ade866817870eaaafd48b5b5e4dd626f0a03;hb=6e169254d1b4dd25d46351c8c1867f5bb79dd069;hp=d421dcfa9500fa68204cbadda5ed6789ead751a4;hpb=f0585f5cabb882bac14e4253c465f7d105c33fd2;p=cparser diff --git a/ast.c b/ast.c index d421dcf..3944ade 100644 --- a/ast.c +++ b/ast.c @@ -1501,8 +1501,6 @@ print_compound: case ENTITY_LABEL: case ENTITY_ENUM_VALUE: panic("print_entity used on unexpected entity type"); - case ENTITY_INVALID: - break; } panic("Invalid entity type encountered"); } @@ -1756,15 +1754,8 @@ static expression_classification_t is_builtin_const_call(const expression_t *exp return EXPR_CLASS_VARIABLE; switch (ref->entity->function.btk) { - case bk_gnu_builtin_huge_val: - case bk_gnu_builtin_huge_valf: - case bk_gnu_builtin_huge_vall: - case bk_gnu_builtin_inf: - case bk_gnu_builtin_inff: - case bk_gnu_builtin_infl: - case bk_gnu_builtin_nan: - case bk_gnu_builtin_nanf: - case bk_gnu_builtin_nanl: + case BUILTIN_INF: + case BUILTIN_NAN: return EXPR_CLASS_CONSTANT; default: return EXPR_CLASS_VARIABLE;