summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-06-04 11:38:22 +0200
committerEugen Wissner <belka@caraus.de>2026-06-04 21:59:02 +0200
commitd03bded8994fdc5f99a04957b1af1c6789d69f35 (patch)
tree05f4f0b4ce910a4e7a5bf5f47b074f4157494962 /Rakefile
parent9634ad51a2c3afb98362ab9635ba762c4c3f1bbf (diff)
downloadelna-d03bded8994fdc5f99a04957b1af1c6789d69f35.tar.gz
Handle string as data pointer and length in TAC
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 1 insertions, 10 deletions
diff --git a/Rakefile b/Rakefile
index 4b0f566..c9a255f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -48,18 +48,9 @@ task :convert do
current_stage << line
elsif !seen_proc && line.start_with?('begin')
current_stage << <<~CODE
- proc g(location: ElnaLocation)
- begin
- \tprintf("# %i %i\\n\\0", location.line, location.column)
- end
-
proc f()
- var
- \tlocation: ElnaLocation
begin
- \tlocation.line := 2;
- \tlocation.column := 3;
- \tg(location)
+ \tprintf("# %.*s %p %i\\n\\0".ptr, "location".length, "location".ptr, "location".ptr, "location".length)
end
CODE