Color the keywords in macLib errors

This commit is contained in:
Andrew Johnson authored and Dirk Zimoch committed 2026-11-03 16:17:46 +01:00
1 parent ec3e950642
commit fa278858b7
1 file changed
+5 -3
+5 -3
View File
@@ -1082,7 +1082,8 @@ static void refer ( MAC_HANDLE *handle, MAC_ENTRY *entry, int level,
entry->error = TRUE;
errval = ",recursive)";
if ( (handle->flags & FLAG_SUPPRESS_WARNINGS) == 0 ) {
errlogPrintf( "macLib: %s %s is recursive (expanding %s %s)\n",
errlogPrintf( "macLib: %s %s is " ANSI_MAGENTA("recursive")
" (expanding %s %s)\n",
entry->type, entry->name,
refentry->type, refentry->name );
}
@@ -1096,8 +1097,9 @@ static void refer ( MAC_HANDLE *handle, MAC_ENTRY *entry, int level,
entry->error = TRUE;
errval = ",undefined)";
if ( (handle->flags & FLAG_SUPPRESS_WARNINGS) == 0 ) {
errlogPrintf( "macLib: macro %s is " ANSI_MAGENTA("undefined") " (expanding %s %s)\n",
refname, entry->type, entry->name );
errlogPrintf( "macLib: macro %s is " ANSI_MAGENTA("undefined")
" (expanding %s %s)\n",
refname, entry->type, entry->name );
}
}