// verbose_intern_pool.zig — Zig-side dumper for InternPool text output. // Compiles source via the Zig compiler pipeline and dumps the InternPool. // Exports a C-compatible function for use by stage0 tests. const std = @import("std"); const DumpResult = extern struct { text: ?[*:0]u8, error_msg: ?[*:0]u8, }; export fn zig_dump_intern_pool( source_ptr: [*]const u8, source_len: usize, ) DumpResult { // Stub: not yet implemented. _ = source_ptr; _ = source_len; const gpa = std.heap.c_allocator; const result = gpa.dupeZ(u8, "") catch return .{ .text = null, .error_msg = null }; return .{ .text = result.ptr, .error_msg = null }; }