mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
prepare functions and pr_globals for relocatability
This commit is contained in:
parent
935f1e8c5e
commit
32215b1296
2 changed files with 1 additions and 3 deletions
|
@ -142,8 +142,6 @@ WriteData (int crc)
|
|||
if (def->scope)
|
||||
continue;
|
||||
if (def->type->type == ev_func) {
|
||||
// df = &functions[numfunctions];
|
||||
// numfunctions++;
|
||||
} else if (def->type->type == ev_field) {
|
||||
dd = &fields[numfielddefs];
|
||||
numfielddefs++;
|
||||
|
|
|
@ -323,7 +323,7 @@ build_switch (expr_t *sw, case_node_t *tree, int op, expr_t *sw_val,
|
|||
dstatement_t *st;
|
||||
statref_t *ref;
|
||||
|
||||
st = (dstatement_t *) &pr_globals[G_INT (def->ofs) + i];
|
||||
st = (dstatement_t *) (G_INT (def->ofs) + i);
|
||||
ref = PR_NewStatref (st, 3);
|
||||
ref->next = tree->labels[i]->e.label.refs;
|
||||
tree->labels[i]->e.label.refs = ref;
|
||||
|
|
Loading…
Reference in a new issue