From ebb2af7ae98f37e11036cabc3b925602508e47f5 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 30 Apr 2026 23:47:20 +0200 Subject: Let elna_tac_make_variable accept an ElnaTacOperand type --- Rakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index fe96b49..39aa6c6 100644 --- a/Rakefile +++ b/Rakefile @@ -47,12 +47,14 @@ task :convert do proc f(); var + x: ^ElnaLocation; y: ElnaLocation; begin + x := malloc(#size(ElnaLocation)); y.line := 1; y.column := 3; - x := y; - printf("# %i %i %i %i\\n\\0", x.line, x.column, y.line, y.column) + x^ := y; + printf("# %i %i %i %i\\n\\0", x^.line, x^.column, y.line, y.column) end; begin @@ -61,7 +63,6 @@ task :convert do elsif line.start_with?('var') && !seen_global_var current_stage << <<~FUN var - x: ElnaLocation; FUN else current_stage << line -- cgit v1.2.3