summaryrefslogtreecommitdiff
path: root/src/core/symbol.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-28 13:07:34 +0200
committerPaul Buetow <paul@buetow.org>2026-02-28 13:07:34 +0200
commit61190b56be38a0a39fc37307a9fbfce759b505c3 (patch)
tree9c0c71c70d78aa94cf85c95130573cff330bdb6e /src/core/symbol.h
parent43614694706ac61b2cebef486b7fa9368c78fe6a (diff)
Remove dead token/symbol types and fix SYM_INLINEFUNCTION latent error
- Remove IS_A_FUNCTION/IS_NOT_A_FUNCTION macros from symbol.h: referenced non-existent SYM_INLINEFUNCTION enum value (latent compile error) and were never used anywhere in the codebase - Remove TT_BOOL from TokenType enum: marked "temporarily disabled" but unused for years; YAGNI - Remove TT_NOTEQ from TokenType enum: duplicate of TT_NEQ ("!="), never referenced - Remove IS_NON_TERMINAL/IS_NOT_NON_TERMINAL macros: referenced START_NON_TERMINALS/END_NON_TERMINALS sentinels that don't exist in the enum — would cause compile errors if ever used - Remove token_new_couble declaration (typo) and token_new_double implementation: function had no callers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/core/symbol.h')
-rw-r--r--src/core/symbol.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/symbol.h b/src/core/symbol.h
index e5a331c..fdaac85 100644
--- a/src/core/symbol.h
+++ b/src/core/symbol.h
@@ -44,8 +44,6 @@
#define symbol_get_val(s) s->p_val
#define symbol_get_sym(s) s->sym
#define symbol_ref_up(s) ++s->i_refs
-#define IS_A_FUNCTION(s) (s == SYM_INLINEFUNCTION || s == SYM_FUNCTION)
-#define IS_NOT_A_FUNCTION(s) !IS_A_FUNCTION(s)
typedef enum {
SYM_BUILDIN,