(uxnasm)Quiet label warnings with sublabels
This commit is contained in:
parent
a014cd8da9
commit
bf81d07113
|
@ -308,6 +308,7 @@ parse(char *w, FILE *f)
|
||||||
case '&': /* sublabel */
|
case '&': /* sublabel */
|
||||||
if(!makelabel(sublabel(subw, p.scope, w + 1)))
|
if(!makelabel(sublabel(subw, p.scope, w + 1)))
|
||||||
return error("Invalid sublabel", w);
|
return error("Invalid sublabel", w);
|
||||||
|
findlabel(p.scope)->refs++;
|
||||||
litlast = 0;
|
litlast = 0;
|
||||||
break;
|
break;
|
||||||
case '#': /* literals hex */
|
case '#': /* literals hex */
|
||||||
|
@ -343,8 +344,10 @@ parse(char *w, FILE *f)
|
||||||
while((c = w[++i]))
|
while((c = w[++i]))
|
||||||
if(!writebyte(c)) return 0;
|
if(!writebyte(c)) return 0;
|
||||||
break;
|
break;
|
||||||
case '[': if (slen(w) == 1) break; /* else FALLTHROUGH */
|
case '[':
|
||||||
case ']': if (slen(w) == 1) break; /* else FALLTHROUGH */
|
if(slen(w) == 1) break; /* else FALLTHROUGH */
|
||||||
|
case ']':
|
||||||
|
if(slen(w) == 1) break; /* else FALLTHROUGH */
|
||||||
default:
|
default:
|
||||||
/* opcode */
|
/* opcode */
|
||||||
if(findopcode(w) || scmp(w, "BRK", 4)) {
|
if(findopcode(w) || scmp(w, "BRK", 4)) {
|
||||||
|
|
Loading…
Reference in New Issue