mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
[qfcc] Change v6p's jumpb opname to jump
More ease of searching, since the operand types help greatly.
This commit is contained in:
parent
7971bcd91c
commit
8dc4a0ea80
2 changed files with 4 additions and 4 deletions
|
@ -957,7 +957,7 @@ VISIBLE const v6p_opcode_t pr_v6p_opcodes[] = {
|
|||
PROG_V6P_VERSION,
|
||||
"%Ga",
|
||||
},
|
||||
[OP_JUMPB_v6p] = {"jumpb", "jumpb",
|
||||
[OP_JUMPB_v6p] = {"jump", "jump",
|
||||
ev_void, ev_int, ev_invalid,
|
||||
PROG_V6P_VERSION,
|
||||
"%Ga[%Gb]",
|
||||
|
|
|
@ -625,7 +625,7 @@ statement_is_goto (statement_t *s)
|
|||
{
|
||||
if (!s)
|
||||
return 0;
|
||||
return !strcmp (s->opcode, "jump");
|
||||
return !strcmp (s->opcode, "jump") && !s->opb;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -633,7 +633,7 @@ statement_is_jumpb (statement_t *s)
|
|||
{
|
||||
if (!s)
|
||||
return 0;
|
||||
return !strcmp (s->opcode, "jumpb");
|
||||
return !strcmp (s->opcode, "jump") && s->opb;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1251,7 +1251,7 @@ statement_branch (sblock_t *sblock, expr_t *e)
|
|||
}
|
||||
if (e->e.branch.type == pr_branch_jump) {
|
||||
if (e->e.branch.index) {
|
||||
s = new_statement (st_flow, "jumpb", e);
|
||||
s = new_statement (st_flow, "jump", e);
|
||||
sblock = statement_subexpr (sblock, e->e.branch.target, &s->opa);
|
||||
sblock = statement_subexpr (sblock, e->e.branch.index, &s->opb);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue