summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 499a70b..4cb08d0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -46,11 +46,9 @@ task :convert do
current_stage << <<~FUN
proc f();
var
- x: ^ElnaLocation;
+ x: ElnaRtlObjectInfo;
begin
- x := malloc(#size(ElnaLocation));
- x^.line := 5;
- x^.column := cast(3: Word)
+ x.allocated := true
end;
begin
@@ -60,6 +58,8 @@ task :convert do
current_stage << <<~FUN
var
FUN
+ elsif line.end_with?("allocated: Word\n")
+ current_stage << "\t\tallocated: Bool\n"
else
current_stage << line
end