diff --git a/tools/qfcc/include/expr.h b/tools/qfcc/include/expr.h index 15574b7ec..60e982896 100644 --- a/tools/qfcc/include/expr.h +++ b/tools/qfcc/include/expr.h @@ -71,7 +71,6 @@ typedef struct expr_s { extern etype_t qc_types[]; extern struct type_s *types[]; extern expr_type expr_types[]; -extern const char *type_names[]; type_t *get_type (expr_t *e); etype_t extract_type (expr_t *e); diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 172007009..2dea199dc 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -89,19 +89,6 @@ expr_type expr_types[] = { ex_integer, // ev_integer }; -const char *type_names[] = { - "void", - "string", - "float", - "vector", - "entity", - "field", - "function", - "pointer", - "quaternion", - "int", -}; - type_t * get_type (expr_t *e) { @@ -242,7 +229,7 @@ type_mismatch (expr_t *e1, expr_t *e2, int op) t2 = extract_type (e2); return error (e1, "type mismatch: %s %s %s", - type_names[t1], get_op_string (op), type_names[t2]); + type_name[t1], get_op_string (op), type_name[t2]); } void @@ -446,7 +433,7 @@ print_expr (expr_t *e) } else { printf("<>"); } - printf (":%s:%d)@", type_names [e->e.temp.type->type], + printf (":%s:%d)@", type_name [e->e.temp.type->type], e->e.temp.users); break; case ex_nil: