ref: e33c2ad6a2b5b04903c1ebbce5bed8f547898451
parent: 615f1072d95d5d382012b2f0b2b55bc5ec61c436
author: ISSOtm <[email protected]>
date: Tue Aug 18 09:47:26 EDT 2020
Fix `INCLUDE` ignoring `-MG`
--- a/src/asm/fstack.c
+++ b/src/asm/fstack.c
@@ -204,7 +204,10 @@
if (!fstk_FindFile(path, &fullPath, &size)) {
free(fullPath);
- error("Unable to open included file '%s': %s\n", path, strerror(errno));
+ if (oGeneratedMissingIncludes)
+ oFailedOnMissingInclude = true;
+ else
+ error("Unable to open included file '%s': %s\n", path, strerror(errno));
return;
}
dbgPrint("Full path: \"%s\"\n", fullPath);
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -78,7 +78,7 @@
static int32_t Callback_NARG(void)
{
if (!macro_GetCurrentArgs()) {
- yyerror("_NARG does not make sense outside of a macro");
+ error("_NARG does not make sense outside of a macro\n");
return 0;
}
return macro_NbArgs();