From cf841a5bb507b03e0e8ed1877bce8b9da4b97e3f Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 3 Jun 2026 21:57:29 -0700 Subject: [PATCH] update to zig 0.16.0 --- README.md | 2 +- intrusive_parser.zig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c748e16b2e989e72f3d8c74d7aff265b0f2e144e..7d3038247038bec16fc61146bf3237bb13103e38 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-intrusive-parser) [![license](https://img.shields.io/github/license/nektro/zig-intrusive-parser.svg)](https://github.com/nektro/zig-intrusive-parser/blob/master/LICENSE) [![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) -[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/) +[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/) [![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) Core plumbing to make text or binary document parsers with Data Oriented Design diff --git a/intrusive_parser.zig b/intrusive_parser.zig index 2092851d343caff6c7b51023903a61e249b6cdbf..46057fe84583fdaff280cfea4ea654e67a83d1e3 100644 --- a/intrusive_parser.zig +++ b/intrusive_parser.zig @@ -6,13 +6,13 @@ const nio = @import("nio"); pub const Parser = struct { any: nio.AnyReadable, allocator: std.mem.Allocator, - temp: std.ArrayListUnmanaged(u8) = .{}, + temp: std.ArrayListUnmanaged(u8) = .empty, idx: usize = 0, end: bool = false, line: usize = 1, col: usize = 1, - data: std.ArrayListUnmanaged(u8) = .{}, - strings_map: std.StringArrayHashMapUnmanaged(usize) = .{}, + data: std.ArrayListUnmanaged(u8) = .empty, + strings_map: std.StringArrayHashMapUnmanaged(usize) = .empty, string_tag: u8, pub fn init(allocator: std.mem.Allocator, any: nio.AnyReadable, string_tag: u8) Parser { -- 2.54.0