rgbasm: let rgblink try to import undefined symbols

Manual imports are inconvenient and don't provide any functionality.
This commit is contained in:
yenatch
2014-01-06 20:04:55 -05:00
parent fd4b5c8925
commit 0ffa4ce9ef

View File

@@ -364,12 +364,12 @@ sym_GetValue(char *s)
} }
return (getvaluefield(psym)); return (getvaluefield(psym));
} else { } else {
if ((nPass == 1) || (psym->nType & SYMF_IMPORT)) { if (nPass == 2) {
/* Assume undefined symbols are imported from somewhere else */
psym->nType |= SYMF_IMPORT;
}
/* 0x80 seems like a good default value... */ /* 0x80 seems like a good default value... */
return (0x80); return (0x80);
} else {
yyerror("'%s' not defined", s);
}
} }
} else { } else {
if (nPass == 1) { if (nPass == 1) {