From 6899e0d0c83c470acf10f1d29ebb639593aefffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Venegas=20Castell=C3=B3?= Date: Thu, 29 Aug 2024 16:17:15 -0600 Subject: [PATCH] fix redefined warning. --- config/constants.tal | 2 -- config/macros.tal | 14 -------------- config/pre-options.tal | 32 ++++++++++++++++---------------- config/symbols.tal | 2 -- 4 files changed, 16 insertions(+), 34 deletions(-) diff --git a/config/constants.tal b/config/constants.tal index 4c05613..3f5cde6 100644 --- a/config/constants.tal +++ b/config/constants.tal @@ -1,5 +1,3 @@ ( @|config/constants ) -( Operator defined label constants ) -ENABLE @DEBUG diff --git a/config/macros.tal b/config/macros.tal index da6ec17..3dd3a45 100644 --- a/config/macros.tal +++ b/config/macros.tal @@ -7,18 +7,4 @@ %ENABLE { |00 } %DISABLE { |01 } -%PRINT-BANNER { @PRINT-BANNER } -%LOG-LEVEL { @LOG-LEVEL } -%INFO-STACKS { @INFO-STACKS } -%INFO-PROMPT { @INFO-PROMPT } -%INFO-ASSEMBLER-SUMMARY { @INFO-ASSEMBLER-SUMMARY } -%WARN-REDEFINITION { @WARN-REDEFINITION } -%WARN-ABORT { @WARN-ABORT } -%DEBUG-LENGTH { @DEBUG-LENGTH } -%DEBUG-HEAD-POINTER { @DEBUG-HEAD-POINTER } -%DEBUG-TAIL-POINTER { @DEBUG-TAIL-POINTER } -%DEBUG-INPUT { @DEBUG-INPUT } -%DEBUG-HEAP { @DEBUG-HEAP } -%DEBUG-SYMBOLS { @DEBUG-SYMBOLS } - %>> { 00 } diff --git a/config/pre-options.tal b/config/pre-options.tal index af00f78..e88383f 100644 --- a/config/pre-options.tal +++ b/config/pre-options.tal @@ -41,29 +41,29 @@ accepts from least to most verbose: `OFF`, `INFO`, `WARN` or `DEBUG`. VALUE OPTION ****************************************************************************** ) -ENABLE PRINT-BANNER ( print TalOS banner on startup ) -( ENABLE LOG-FILE ( log session to a file ) ) +ENABLE @PRINT-BANNER ( print TalOS banner on startup ) +( ENABLE @LOG-FILE ( log session to a file ) ) ( &|logger ) -DEBUG LOG-LEVEL ( valid values: OFF INFO WARN DEBUG ( most verbose ) ) +DEBUG @LOG-LEVEL ( valid values: OFF INFO WARN DEBUG ( most verbose ) ) -ENABLE INFO-STACKS ( print stacks after each evaluation ) -ENABLE INFO-PROMPT ( print the heap's `head` pointer inside the prompt ) -ENABLE INFO-ASSEMBLER-SUMMARY ( print the assembled definition summary ) +ENABLE @INFO-STACKS ( print stacks after each evaluation ) +ENABLE @INFO-PROMPT ( print the heap's `head` pointer inside the prompt ) +ENABLE @INFO-ASSEMBLER-SUMMARY ( print the assembled definition summary ) -ENABLE WARN-ABORT ( warn each time an evaluation is aborted ) -ENABLE WARN-REDEFINITION ( warn on each redefinition ) +ENABLE @WARN-ABORT ( warn each time an evaluation is aborted ) +ENABLE @WARN-REDEFINITION ( warn on each redefinition ) ( - ENABLE WARN-LOW-MEMORY ( warn when there are less than 512 free bytes ) - ENABLE WARN-LOW-MEMORY-ZEROPAGE ( warn if less than 25 free bytes ) + ENABLE @WARN-LOW-MEMORY ( warn when there are less than 512 free bytes ) + ENABLE @WARN-LOW-MEMORY-ZEROPAGE ( warn if less than 25 free bytes ) ) #ifdef DBG -DISABLE DEBUG-LENGTH ( print the assembled bytecode `length` ) -DISABLE DEBUG-HEAD-POINTER ( print the head pointer ) -DISABLE DEBUG-TAIL-POINTER ( print the tail pointer ) -ENABLE DEBUG-INPUT ( print the input buffer ) -DISABLE DEBUG-HEAP ( print the heap ) -DISABLE DEBUG-SYMBOLS ( print the symbols ) +DISABLE @DEBUG-LENGTH ( print the assembled bytecode `length` ) +DISABLE @DEBUG-HEAD-POINTER ( print the head pointer ) +DISABLE @DEBUG-TAIL-POINTER ( print the tail pointer ) +ENABLE @DEBUG-INPUT ( print the input buffer ) +DISABLE @DEBUG-HEAP ( print the heap ) +DISABLE @DEBUG-SYMBOLS ( print the symbols ) #endif diff --git a/config/symbols.tal b/config/symbols.tal index 07de0e9..bd819bd 100644 --- a/config/symbols.tal +++ b/config/symbols.tal @@ -4,5 +4,3 @@ ( Operator Defined Symbol Table =SYMBOL >> NAME \0 ) -=buff >> "buff \0 -=DEBUG >> "DEBUG \0