diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-10 13:03:25 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-02-10 13:03:25 +0330 |
commit | 6d127edfa0162219c54b10e3496a3e9530f62792 (patch) | |
tree | c70579a2f218f8d233f0f2ef2a1867908a0594f7 /src/compiler/lexer.c | |
parent | 302cc65d3e59937742c18475d63e22c482176fa7 (diff) |
fix double free of code
some clean up
Diffstat (limited to 'src/compiler/lexer.c')
-rw-r--r-- | src/compiler/lexer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c index 70cd1fb..e69afef 100644 --- a/src/compiler/lexer.c +++ b/src/compiler/lexer.c @@ -4,6 +4,7 @@ #include "utils/memory.h" #include "utils/string.h" +#include <stdint.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> @@ -75,6 +76,10 @@ const LexerToken LEXER_KEYWORD_TOKENS[] = { const size_t LEXER_KEYWORD_SIZE = sizeof(LEXER_KEYWORD_TOKENS) / sizeof(*LEXER_KEYWORD_TOKENS); +const LexerNodeArray LEXER_NODE_ARRAY_ERROR = { + .size = SIZE_MAX, +}; + bool lexerNodeArrayIsError(LexerNodeArray array) { return LEXER_NODE_ARRAY_ERROR.size == array.size; } |