diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-26 05:32:58 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-30 01:32:47 +0200 |
| commit | 1f9dcff747d652dae545941524d82bb9313aa38f (patch) | |
| tree | 6919c15d79751a0fea9133e768aa45cc1cc69438 /tools/generate_linux_syscalls.zig | |
| parent | 2747fca2267d909dad582bc129e4a5b6f686639b (diff) | |
| download | zig-1f9dcff747d652dae545941524d82bb9313aa38f.tar.gz zig-1f9dcff747d652dae545941524d82bb9313aa38f.zip | |
generate_linux_syscalls: Don't expose the helper constants on mips/mips64.
Diffstat (limited to 'tools/generate_linux_syscalls.zig')
| -rw-r--r-- | tools/generate_linux_syscalls.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/generate_linux_syscalls.zig b/tools/generate_linux_syscalls.zig index 29ae775a8e..309f5ce9b0 100644 --- a/tools/generate_linux_syscalls.zig +++ b/tools/generate_linux_syscalls.zig @@ -170,7 +170,7 @@ pub fn main() !void { { try writer.writeAll( \\pub const Mips = enum(usize) { - \\ pub const Linux = 4000; + \\ const linux_base = 4000; \\ \\ ); @@ -188,7 +188,7 @@ pub fn main() !void { if (mem.startsWith(u8, name, "unused")) continue; const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; - try writer.print(" {p} = Linux + {s},\n", .{ zig.fmtId(fixed_name), number }); + try writer.print(" {p} = linux_base + {s},\n", .{ zig.fmtId(fixed_name), number }); } try writer.writeAll("};\n\n"); @@ -196,7 +196,7 @@ pub fn main() !void { { try writer.writeAll( \\pub const Mips64 = enum(usize) { - \\ pub const Linux = 5000; + \\ const linux_base = 5000; \\ \\ ); @@ -213,7 +213,7 @@ pub fn main() !void { const name = fields.next() orelse return error.Incomplete; const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; - try writer.print(" {p} = Linux + {s},\n", .{ zig.fmtId(fixed_name), number }); + try writer.print(" {p} = linux_base + {s},\n", .{ zig.fmtId(fixed_name), number }); } try writer.writeAll("};\n\n"); |
