From fa278858b7946917d80115c4eae85c14c33b1f11 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 16 Mar 2026 12:16:39 -0500 Subject: [PATCH] Color the keywords in macLib errors --- modules/libcom/src/macLib/macCore.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/libcom/src/macLib/macCore.c b/modules/libcom/src/macLib/macCore.c index c4d9068cb..5931807cd 100644 --- a/modules/libcom/src/macLib/macCore.c +++ b/modules/libcom/src/macLib/macCore.c @@ -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 ); } }