(uxnasm) Removed refinc to parent labels
This commit is contained in:
parent
20a11c0f4c
commit
f1fa4f6ea1
10
src/uxnasm.c
10
src/uxnasm.c
|
@ -220,7 +220,6 @@ makepad(char *w)
|
||||||
static int
|
static int
|
||||||
addref(char *label, char rune, Uint16 addr)
|
addref(char *label, char rune, Uint16 addr)
|
||||||
{
|
{
|
||||||
char parent[0x40];
|
|
||||||
Reference *r;
|
Reference *r;
|
||||||
if(p.refs_len >= 0x1000)
|
if(p.refs_len >= 0x1000)
|
||||||
return error_asm("References limit exceeded");
|
return error_asm("References limit exceeded");
|
||||||
|
@ -231,15 +230,8 @@ addref(char *label, char rune, Uint16 addr)
|
||||||
} else if(label[0] == '&' || label[0] == '/') {
|
} else if(label[0] == '&' || label[0] == '/') {
|
||||||
if(!makesublabel(r->name, label + 1))
|
if(!makesublabel(r->name, label + 1))
|
||||||
return error_asm("Invalid sublabel");
|
return error_asm("Invalid sublabel");
|
||||||
} else {
|
} else
|
||||||
int pos = cndx(label, '/');
|
|
||||||
if(pos > 0) {
|
|
||||||
Label *l;
|
|
||||||
if((l = findlabel(scpy(label, parent, pos))))
|
|
||||||
l->refs++;
|
|
||||||
}
|
|
||||||
scpy(label, r->name, 0x40);
|
scpy(label, r->name, 0x40);
|
||||||
}
|
|
||||||
r->rune = rune;
|
r->rune = rune;
|
||||||
r->addr = addr;
|
r->addr = addr;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue