diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
| commit | e4ce7f658741a7428597da4872435a1b0bae944c (patch) | |
| tree | 50f65abf6fa4468db7bc93a6ae61d623a2dd8566 /source/lexer.elna | |
| parent | 5d808dd4c4003968bbdf180e1e1193231db5d43b (diff) | |
| download | elna-e4ce7f658741a7428597da4872435a1b0bae944c.tar.gz | |
Rework generics for parameters to be plain types
Diffstat (limited to 'source/lexer.elna')
| -rw-r--r-- | source/lexer.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lexer.elna b/source/lexer.elna index bf1c449..370c24d 100644 --- a/source/lexer.elna +++ b/source/lexer.elna @@ -528,7 +528,7 @@ proc elna_lexer_token_create(kind: ElnaLexerKind; position: ^ElnaPosition) -> ^E var result: ^ElnaLexerToken begin - result := malloc(#size(ElnaLexerToken)); + result := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); result^.kind := kind; result^.position := position^ return result @@ -640,7 +640,7 @@ var character: Word8 result: ^ElnaLexerToken begin - result := malloc(#size(ElnaLexerToken)); + result := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); character := start_position^; if character = ';' then @@ -722,7 +722,7 @@ begin token := elna_lexer_classify_single(cursor^.start, @cursor^.position) elsif action_to_perform = ElnaLexerAction.eof then - token := malloc(#size(ElnaLexerToken)); + token := malloc#[ElnaLexerToken](#size(ElnaLexerToken)); token^.kind := ElnaLexerKind.eof elsif action_to_perform = ElnaLexerAction.finalize then token := elna_lexer_classify_finalize(cursor^.start, @cursor^.position) |
