mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-24 16:08:50 +00:00
Separate out the string parsing for .include/.library file names and macro arguments.
They behave observably different from generic string parsing and trying to account for them generically just gets in the way. .rept is treated the same as a macro.
This commit is contained in:
@@ -459,7 +459,7 @@ static int assemble(
|
||||
|
||||
case P_INCLUDE:
|
||||
{
|
||||
char *name = getstring(cp, &cp);
|
||||
char *name = getstring_fn(cp, &cp);
|
||||
STREAM *incl;
|
||||
|
||||
if (name == NULL) {
|
||||
@@ -525,7 +525,7 @@ static int assemble(
|
||||
case P_LIBRARY:
|
||||
if (pass == 0) {
|
||||
char hitfile[FILENAME_MAX];
|
||||
char *name = getstring(cp, &cp);
|
||||
char *name = getstring_fn(cp, &cp);
|
||||
|
||||
my_searchenv(name, "MCALL", hitfile, sizeof(hitfile));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user