From adc9ddc2807597290ab9e0e36951cb9cc360b3e6 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Mon, 16 Jun 2025 11:16:13 +0200 Subject: [PATCH] Change the available options to -dM and -dP. The former prints user macros, the latter predefined macros. Can be combined by using -dMP or -dPM. --- doc/cc65.sgml | 31 +++++++++++++++-------------- src/cc65/compile.c | 7 ++----- src/cc65/global.c | 5 ++--- src/cc65/global.h | 5 ++--- src/cc65/macrotab.c | 27 +++++++++++-------------- src/cc65/macrotab.h | 7 ++----- src/cc65/main.c | 48 +++++++++++++++++++++------------------------ 7 files changed, 57 insertions(+), 73 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index a78f1a00a..383a6dd6a 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -63,9 +63,8 @@ Short options: -V Print the compiler version number -W [-+]warning[,...] Control warnings ('-' disables, '+' enables) -d Debug mode - -dD Output user defined macros (needs -E) - -dM Output all macro definitions (needs -E) - -dN Output user defined macro names (needs -E) + -dM Output all user macros (needs -E) + -dP Output all predefined macros (needs -E) -g Add debug info to object file -h Help (this text) -j Default characters are signed @@ -202,24 +201,26 @@ Here is a description of all the command line options: Enables debug mode, for debugging the behavior of cc65. -