sic

The sic programming language, compiler and tools (WIP)
Log | Files | Refs

commit 0fe78eb9ecf420bc052853455a74458bc4880403
parent 3a7fa74e5b62233bbf521d5bf0c90f09d9a0e69f
Author: citbl <citbl@citbl.org>
Date:   Sun, 10 May 2026 18:59:45 +1000

warnings

Diffstat:
Msrc/lexer.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/lexer.c b/src/lexer.c @@ -36,7 +36,6 @@ void print_tokens(Lexer *l) static void add_to_string(Token *t, char c) { String *str = &t->value.as_string; - char *new_value; if (str->len >= str->cap) { str->cap = str->cap == 0 ? 256 : str->cap * 2; @@ -58,11 +57,6 @@ static char peek(Lexer *l) return l->code[next]; } -static char consume(Lexer *l) -{ - return l->code[++l->state.pos]; -} - static void run_until_char(Lexer *l, char c) { do { @@ -123,4 +117,3 @@ Lexer *lexer_lex(Lexer *l) return l; } -