From 65f29a6497104bac77a8767b67c1c2e9718bb83f Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Thu, 27 Apr 2017 20:44:30 +0200 Subject: [PATCH] Recognize, but ignore, the BSD m11 syntax .MCALL (macrolibname)macroname --- assemble.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assemble.c b/assemble.c index e1b1b9a..a73b45a 100644 --- a/assemble.c +++ b/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");