18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 13:46:22 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
jerrrrycho
ee14cefcb5 fix(parser): an include at the very end of a text leaves the end of the data to the included file (#492)
A file which ends right after the end of an include directive, with no line
break after it, had the parser report its end as soon as the directive was
read: eof() looked only at the text being read, not at the included file it
still had to go through. A reader which stops at the end of the data, like
deserialize_map() (the sound overrides), then read only the first line of the
included file. eof() now also waits for the included file to end.

The tokens themselves don't change, and a file with a line break after the
end of its last include reports the end as before. The .fiz files of the
wagons which broke the change of #100 (pkp/yb_v1, the directive at the very
end without a line break) are read through on staging already; a test now
keeps them that way.
2026-11-25 05:24:38 +01:00
917c8f7285 Merge branch 'master' into feat/modern-editor 2026-10-08 17:44:58 +02:00
90c5420396 perf(scenery): runs of model instances read straight from the text by a reader made for them, shared between threads; anything the reader doesn't cover left to the parser; model and skin located once for a run of instances; lookup of nodes by uuid filled on load only for a scenery opened for editing 2026-10-06 21:58:49 +02:00
f7aea3c0a8 perf(parser): tokens read from a memory buffer instead of a stream, plain numbers converted with from_chars, token queue without per-item allocations; stream state reported by eof() and ok() kept as it was 2026-10-05 23:51:11 +02:00
jerrrrycho
79bd0c8e91 fix(sonar): addressing reliability/security issues (#202) 2026-10-04 20:00:13 +02:00
968594c3e9 feat(editor): include database, placing .inc templates from the node bank 2026-10-02 23:57:35 +02:00
3199f3796e feat(editor): layers window, scenery save and include descriptions 2026-10-02 22:40:52 +02:00
73f2f68aa0 feat(editor): edit session (-edit) and scenery layers 2026-10-02 21:29:18 +02:00
jerrrrycho
d85096f64d reformat: remove redundant parentheses 2026-06-30 21:19:46 +02:00
docentYT
d75301f3c7 Add once again parser optimizations 2026-05-04 11:45:44 +02:00
3a42a8c158 Revert "Reduce string creations and deletions" 2026-05-04 01:24:11 +02:00
docentYT
cef6b258a1 Reduce string creations and deletions 2026-05-02 22:17:20 +02:00
copilot-swe-agent[bot]
0531086bb9 Reorganize source files into logical subdirectories
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:01:57 +00:00