╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ gen_stubs.zig ────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
708 .binding = @splat(0), 709 .visib = visib, 710 .size = @splat(0), 711 }; 712 } 713 gop.value_ptr.present[archIndex(parse.arch)] = true; 714 gop.value_ptr.size[archIndex(parse.arch)] = size; 715 gop.value_ptr.binding[archIndex(parse.arch)] = binding; 716 } 717 } 718 719 fn archIndex(arch: Arch) u8 { 720 return @backingInt(arch); 721 } 722 723 fn archSetName(arch_set: [arches.len]bool) []const u8 { 724 for (arches, arch_set) |arch, set_item| { 725 if (set_item) { 726 return @tagName(arch); 727 } 728 } 729 return "(none)"; 730 } 731 732 fn fatal(comptime format: []const u8, args: anytype) noreturn { 733 log.err(format, args); 734 std.process.exit(1); 735 } 736