From d59397d4146ffa23adbbe6dc99c64ebb22a93b2d Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 1 Aug 2026 22:44:19 -0300 Subject: add vanilla DOM web backend --- src/dump.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dump.zig') diff --git a/src/dump.zig b/src/dump.zig index 0f8cb810..44f61cf4 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -31,8 +31,8 @@ pub fn outPath(buf: *[1024:0]u8) ?[:0]const u8 { const md = yd.calculateMonthDay(); const ds = es.getDaySeconds(); return std.fmt.bufPrintSentinel(buf, "{s}/pardes-{d:0>4}{d:0>2}{d:0>2}-{d:0>2}{d:0>2}{d:0>2}.zon", .{ - dir, yd.year, md.month.numeric(), - @as(u8, md.day_index) + 1, ds.getHoursIntoDay(), ds.getMinutesIntoHour(), + dir, yd.year, md.month.numeric(), + @as(u8, md.day_index) + 1, ds.getHoursIntoDay(), ds.getMinutesIntoHour(), ds.getSecondsIntoMinute(), }, 0) catch null; } @@ -156,7 +156,7 @@ pub fn readZon(gpa: std.mem.Allocator, bytes: []const u8, label: []const u8) !St } pub fn readZonZ(gpa: std.mem.Allocator, source: [:0]const u8, label: []const u8) !State { - if (builtin.os.tag == .emscripten) { + if (builtin.os.tag == .emscripten or builtin.os.tag == .freestanding) { const state = std.zon.parse.fromSliceAlloc(State, gpa, source, null, .{}) catch |err| { log.err("parse dump {s}: {s}", .{ label, @errorName(err) }); return err; -- cgit v1.3