From b1eb1bf6ab29805ff1c7d34944e39b3e712d746d Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:47:36 +0200 Subject: [PATCH] Colorize diagnostics. --- doc/ca65.sgml | 17 ++-- src/ca65/error.c | 81 +++++++++++----- src/ca65/main.c | 25 ++++- src/common/capability.h | 2 +- src/common/consprop.c | 208 ++++++++++++++++++++++++++++++++++++++++ src/common/consprop.h | 174 +++++++++++++++++++++++++++++++++ 6 files changed, 473 insertions(+), 34 deletions(-) create mode 100644 src/common/consprop.c create mode 100644 src/common/consprop.h diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 90d3aba32..f1154d4b2 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -106,6 +106,7 @@ Short options: Long options: --auto-import Mark unresolved symbols as import --bin-include-dir dir Set a search path for binary includes + --color [on|auto|off] Color diagnostics (default: auto) --cpu type Set cpu type --create-dep name Create a make dependency file --create-full-dep name Create a full make dependency file @@ -120,7 +121,7 @@ Long options: --list-bytes n Maximum number of bytes per listing line --memory-model model Set the memory model --pagelength n Set the page length for the listing - --relax-checks Disables some error checks + --relax-checks Relax some checks (see docs) --smart Enable smart mode --target sys Set the target system --verbose Increase verbosity @@ -146,6 +147,14 @@ Here is a description of all the command line options: name="search paths">. +