mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
remove some redundant data
This commit is contained in:
parent
ccfe82cda4
commit
09f19fd9c9
2 changed files with 2 additions and 16 deletions
|
@ -71,7 +71,6 @@ typedef struct expr_s {
|
||||||
extern etype_t qc_types[];
|
extern etype_t qc_types[];
|
||||||
extern struct type_s *types[];
|
extern struct type_s *types[];
|
||||||
extern expr_type expr_types[];
|
extern expr_type expr_types[];
|
||||||
extern const char *type_names[];
|
|
||||||
|
|
||||||
type_t *get_type (expr_t *e);
|
type_t *get_type (expr_t *e);
|
||||||
etype_t extract_type (expr_t *e);
|
etype_t extract_type (expr_t *e);
|
||||||
|
|
|
@ -89,19 +89,6 @@ expr_type expr_types[] = {
|
||||||
ex_integer, // ev_integer
|
ex_integer, // ev_integer
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *type_names[] = {
|
|
||||||
"void",
|
|
||||||
"string",
|
|
||||||
"float",
|
|
||||||
"vector",
|
|
||||||
"entity",
|
|
||||||
"field",
|
|
||||||
"function",
|
|
||||||
"pointer",
|
|
||||||
"quaternion",
|
|
||||||
"int",
|
|
||||||
};
|
|
||||||
|
|
||||||
type_t *
|
type_t *
|
||||||
get_type (expr_t *e)
|
get_type (expr_t *e)
|
||||||
{
|
{
|
||||||
|
@ -242,7 +229,7 @@ type_mismatch (expr_t *e1, expr_t *e2, int op)
|
||||||
t2 = extract_type (e2);
|
t2 = extract_type (e2);
|
||||||
|
|
||||||
return error (e1, "type mismatch: %s %s %s",
|
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
|
void
|
||||||
|
@ -446,7 +433,7 @@ print_expr (expr_t *e)
|
||||||
} else {
|
} else {
|
||||||
printf("<>");
|
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);
|
e->e.temp.users);
|
||||||
break;
|
break;
|
||||||
case ex_nil:
|
case ex_nil:
|
||||||
|
|
Loading…
Reference in a new issue