diff options
| author | Baitinq <[email protected]> | 2025-06-11 00:10:59 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-06-11 00:11:01 +0200 |
| commit | 8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5 (patch) | |
| tree | 80e8e9319734e112558f1a9c31485b1c01bccb41 /src/bootstrap/tokenizer.src | |
| parent | Boostrap: fix aarch64 linking (diff) | |
| download | interpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.gz interpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.bz2 interpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.zip | |
stdlib: Remove println
varargs forwarding is platform specific with llvm, so we cannot easily have this function
Diffstat (limited to 'src/bootstrap/tokenizer.src')
| -rw-r--r-- | src/bootstrap/tokenizer.src | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap/tokenizer.src b/src/bootstrap/tokenizer.src index 70ec1bb..8d7f997 100644 --- a/src/bootstrap/tokenizer.src +++ b/src/bootstrap/tokenizer.src @@ -503,7 +503,7 @@ let tokenizer_next = (t: *tokenizer) => *token { return true; }); if strlen(string) == 0 { - println("NO IDENT!"); + printf("NO IDENT!\n"); return cast(*token, null); }; @@ -520,9 +520,9 @@ let tokenizer_init = (alloc: *arena, file: slice) => *tokenizer { (*t).buf = cast(*i8, file.data); (*t).buf_len = file.data_len; - println("File size: %d", (*t).buf_len); + printf("File size: %d\n", (*t).buf_len); - println("%s", (*t).buf); + printf("%s\n", (*t).buf); return t; }; @@ -536,13 +536,13 @@ let tokenizer_tokenize = (t: *tokenizer) => slice { if tk == cast(*token, null) { break; }; - println("Add token: %d", (*tk).type); + printf("Add token: %d\n", (*tk).type); (*(tokens + cast(*token, tokens_len))) = *tk; tokens_len = tokens_len + 1; }; - println("PRINT TOKENS: %d", tokens_len); + printf("PRINT TOKENS: %d\n", tokens_len); print_tokens(tokens, tokens_len); |