mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
s/IMMEDIATE/.imm/ for name of immediate defs. the latter is both shorter and
impossible to generate from qc
This commit is contained in:
parent
9fa7ecd14d
commit
a0ba8e534c
1 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ PR_ParseImmediate (def_t *def)
|
||||||
if (def) {
|
if (def) {
|
||||||
cn = def;
|
cn = def;
|
||||||
} else {
|
} else {
|
||||||
cn = PR_NewDef (pr_immediate_type, "IMMEDIATE", 0);
|
cn = PR_NewDef (pr_immediate_type, ".imm", 0);
|
||||||
cn->ofs = PR_NewLocation (pr_immediate_type);
|
cn->ofs = PR_NewLocation (pr_immediate_type);
|
||||||
pr_global_defs[cn->ofs] = cn;
|
pr_global_defs[cn->ofs] = cn;
|
||||||
}
|
}
|
||||||
|
@ -209,14 +209,14 @@ PR_ReuseConstant (expr_t *expr, def_t *def)
|
||||||
if (def) {
|
if (def) {
|
||||||
cn = def;
|
cn = def;
|
||||||
} else {
|
} else {
|
||||||
cn = PR_NewDef (type, "IMMEDIATE", 0);
|
cn = PR_NewDef (type, ".imm", 0);
|
||||||
cn->ofs = PR_NewLocation (type);
|
cn->ofs = PR_NewLocation (type);
|
||||||
pr_global_defs[cn->ofs] = cn;
|
pr_global_defs[cn->ofs] = cn;
|
||||||
if (type == &type_vector || type == &type_quaternion) {
|
if (type == &type_vector || type == &type_quaternion) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i< 3 + (type == &type_quaternion); i++)
|
for (i = 0; i< 3 + (type == &type_quaternion); i++)
|
||||||
PR_NewDef (&type_float, "IMMEDIATE", 0);
|
PR_NewDef (&type_float, ".imm", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cn->initialized = 1;
|
cn->initialized = 1;
|
||||||
|
|
Loading…
Reference in a new issue