From 7d07bef760a8807fe49fbe5c90799a1822f95973 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 8 Oct 2026 19:45:19 +0200 Subject: Make modules re-exportable --- source/parser.elna | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/parser.elna') diff --git a/source/parser.elna b/source/parser.elna index 30f79f8..3912b65 100644 --- a/source/parser.elna +++ b/source/parser.elna @@ -2,7 +2,7 @@ v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. *) module -import common, cstdlib, lexer, ast, diagnostic +import common, sys.posix.cstdlib, lexer, ast, diagnostic proc elna_parser_expect*(cursor: ^ElnaLexerCursor; expected: ElnaLexerKind; error_list: ^ElnaList) -> ^ElnaLexerToken var @@ -1129,7 +1129,7 @@ var begin result := malloc#[ElnaTreeModuleDeclaration](#size(ElnaTreeModuleDeclaration)); result^.kind := ElnaTreeKind.module_declaration; - result^.position.start_location := ElnaLocation{ line: 1u, column: 1u }; + result^.position.start_location := { ElnaLocation; line: 1u, column: 1u }; result^.position.end_location := result^.position.start_location; result^.types := elna_parser_type_part(cursor, error_list); -- cgit v1.2.3