aboutsummaryrefslogtreecommitdiff
path: root/source/parser.elna
diff options
context:
space:
mode:
Diffstat (limited to 'source/parser.elna')
-rw-r--r--source/parser.elna4
1 files changed, 2 insertions, 2 deletions
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);