Recognize, but ignore, the BSD m11 syntax .MCALL (macrolibname)macroname

This commit is contained in:
Olaf Seibert 2017-04-27 20:44:30 +02:00
parent f07c9045f5
commit 65f29a6497

View File

@ -572,6 +572,18 @@ static int assemble(
if (EOL(*cp))
return 1;
/* (lib)macro syntax. Ignore (lib) for now. */
if (*cp == '(') {
char *close = strchr(cp + 1, ')');
if (close != NULL) {
char *libname = cp + 1;
(void)libname;
*close = '\0';
cp = close + 1;
}
}
label = get_symbol(cp, &cp, NULL);
if (!label) {
report(stack->top, "Illegal .MCALL format\n");