// SPDX-FileCopyrightText: © 2024 Mitchell Hashimoto, Ghostty contributors // SPDX-FileCopyrightText: © 2024-2026 Jeffrey C. Ollie // SPDX-License-Identifier: MIT const std = @import("std"); pub const Image = @import("decoder.zig").Image; /// Where the exported C `malloc`, `calloc`, `realloc` and `free` allocate /// from on a target that links no libc. See src/c_allocator.zig. pub const c_allocator = @import("c_allocator.zig"); pub const bmp = @import("bmp.zig"); pub const gif = @import("gif.zig"); pub const jpeg = @import("jpeg.zig"); pub const netpbm = @import("netpbm.zig"); pub const png = @import("png.zig"); pub const swizzle = @import("swizzle.zig"); test { std.testing.refAllDecls(c_allocator); std.testing.refAllDecls(bmp); std.testing.refAllDecls(gif); std.testing.refAllDecls(jpeg); std.testing.refAllDecls(netpbm); std.testing.refAllDecls(png); std.testing.refAllDecls(swizzle); } comptime { // The C allocation functions are exported from a container-level comptime // block, which is analysed only if something references the file. _ = c_allocator; }