aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-14 12:19:47 +0100
committergingerBill <bill@gingerbill.org>2024-07-14 12:19:47 +0100
commit8642d719f0ece3625d535d47b41ff4d35072f47f (patch)
treeaec3708e44e3fe7085dea40b112aa4db08497f31 /core/encoding
parent891cf54b5c56bd31bcfdac14f0b72d489999bffc (diff)
Imply `#no_capture` to all variadic parameters
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/xml/tokenizer.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/xml/tokenizer.odin b/core/encoding/xml/tokenizer.odin
index 8a26f1bce..a2bbaf28e 100644
--- a/core/encoding/xml/tokenizer.odin
+++ b/core/encoding/xml/tokenizer.odin
@@ -17,7 +17,7 @@ import "core:fmt"
import "core:unicode"
import "core:unicode/utf8"
-Error_Handler :: #type proc(pos: Pos, fmt: string, #no_capture args: ..any)
+Error_Handler :: #type proc(pos: Pos, fmt: string, args: ..any)
Token :: struct {
kind: Token_Kind,
@@ -112,13 +112,13 @@ offset_to_pos :: proc(t: ^Tokenizer, offset: int) -> Pos {
}
}
-default_error_handler :: proc(pos: Pos, msg: string, #no_capture args: ..any) {
+default_error_handler :: proc(pos: Pos, msg: string, args: ..any) {
fmt.eprintf("%s(%d:%d) ", pos.file, pos.line, pos.column)
fmt.eprintf(msg, ..args)
fmt.eprintf("\n")
}
-error :: proc(t: ^Tokenizer, offset: int, msg: string, #no_capture args: ..any) {
+error :: proc(t: ^Tokenizer, offset: int, msg: string, args: ..any) {
pos := offset_to_pos(t, offset)
if t.err != nil {
t.err(pos, msg, ..args)