[CMD] Support dynamic trace (#7093)

Based on Hans Harder's patch.
Realize tracing cmd on console
output.
JIRA issue: CORE-6669
- Add FEATURE_DYNAMIC_TRACE
  feature.
- Add CmdTrace function.
- Re-define FIXME, ERR, WARN,
  and TRACE macros.
- Check CMDTRACE environment
  variable. If it was "ON", then enable
  dynamic trace.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-09 04:25:30 +09:00 committed by GitHub
parent 6c74e69d12
commit 3dcae2ce0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 106 additions and 4 deletions

View file

@ -18,26 +18,24 @@
/* Define to enable the alias command, and aliases.*/
#define FEATURE_ALIASES
/* Define to enable history */
#define FEATURE_HISTORY
/*Define to enable history wrap (4nt's style)*/
#define WRAP_HISTORY
/* Define one of these to enable filename completion */
//#define FEATURE_UNIX_FILENAME_COMPLETION
#define FEATURE_4NT_FILENAME_COMPLETION
/* Define to enable the directory stack */
#define FEATURE_DIRECTORY_STACK
/* Define to activate redirections and piping */
#define FEATURE_REDIRECTION
/* Define to enable dynamic switching of TRACE output in console */
#define FEATURE_DYNAMIC_TRACE
/* Define one of these to select the used locale. */
/* (date and time formats etc.) used in DATE, TIME, */