mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-13 15:27:18 +00:00
Recognize, but ignore, the BSD m11 syntax .MCALL (macrolibname)macroname
This commit is contained in:
parent
f07c9045f5
commit
65f29a6497
12
assemble.c
12
assemble.c
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user