mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-26 04:01:44 +00:00
Add .ENABL LCM. Its default setting was incorrect.
This commit is contained in:
10
assemble.c
10
assemble.c
@@ -719,6 +719,8 @@ static int assemble(
|
||||
enabl_gbl = 1;
|
||||
} else if (strcmp(label, "LC") == 0) {
|
||||
enabl_lc = 1;
|
||||
} else if (strcmp(label, "LCM") == 0) {
|
||||
enabl_lcm = 1;
|
||||
}
|
||||
free(label);
|
||||
cp = skipdelim(cp);
|
||||
@@ -738,6 +740,8 @@ static int assemble(
|
||||
enabl_gbl = 0;
|
||||
} else if (strcmp(label, "LC") == 0) {
|
||||
enabl_lc = 0;
|
||||
} else if (strcmp(label, "LCM") == 0) {
|
||||
enabl_lcm = 0;
|
||||
}
|
||||
free(label);
|
||||
cp = skipdelim(cp);
|
||||
@@ -828,6 +832,12 @@ static int assemble(
|
||||
thing2 = getstring(cp, &cp);
|
||||
else
|
||||
thing2 = memcheck(strdup(""));
|
||||
|
||||
if (!enabl_lcm) {
|
||||
upcase(thing1);
|
||||
upcase(thing2);
|
||||
}
|
||||
|
||||
ok = (strcmp(thing1, thing2) == 0);
|
||||
if (label[0] == 'D') {
|
||||
ok = !ok;
|
||||
|
||||
Reference in New Issue
Block a user