summaryrefslogtreecommitdiff
path: root/src/compiler/lexer.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-10 13:03:25 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-10 13:03:25 +0330
commit6d127edfa0162219c54b10e3496a3e9530f62792 (patch)
treec70579a2f218f8d233f0f2ef2a1867908a0594f7 /src/compiler/lexer.h
parent302cc65d3e59937742c18475d63e22c482176fa7 (diff)
fix double free of code
some clean up
Diffstat (limited to 'src/compiler/lexer.h')
-rw-r--r--src/compiler/lexer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/lexer.h b/src/compiler/lexer.h
index 6723cc9..656084e 100644
--- a/src/compiler/lexer.h
+++ b/src/compiler/lexer.h
@@ -59,9 +59,7 @@ typedef struct LexerNodeArray {
size_t size;
} LexerNodeArray;
-constexpr LexerNodeArray LEXER_NODE_ARRAY_ERROR = {
- .size = -1ULL,
-};
+extern const LexerNodeArray LEXER_NODE_ARRAY_ERROR;
extern bool lexerNodeArrayIsError(LexerNodeArray array);
extern void lexerNodeArrayPrint(LexerNodeArray array);