diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-06-04 11:38:22 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-06-04 21:59:02 +0200 |
| commit | d03bded8994fdc5f99a04957b1af1c6789d69f35 (patch) | |
| tree | 05f4f0b4ce910a4e7a5bf5f47b074f4157494962 /Rakefile | |
| parent | 9634ad51a2c3afb98362ab9635ba762c4c3f1bbf (diff) | |
| download | elna-d03bded8994fdc5f99a04957b1af1c6789d69f35.tar.gz | |
Handle string as data pointer and length in TAC
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 |
