| ... | @@ -170,7 +170,7 @@ pub fn main() !void { | ... | @@ -170,7 +170,7 @@ pub fn main() !void { |
| 170 | { | 170 | { |
| 171 | try writer.writeAll( | 171 | try writer.writeAll( |
| 172 | \\pub const Mips = enum(usize) { | 172 | \\pub const Mips = enum(usize) { |
| 173 | \\ pub const Linux = 4000; | 173 | \\ const linux_base = 4000; |
| 174 | \\ | 174 | \\ |
| 175 | \\ | 175 | \\ |
| 176 | ); | 176 | ); |
| ... | @@ -188,7 +188,7 @@ pub fn main() !void { | ... | @@ -188,7 +188,7 @@ pub fn main() !void { |
| 188 | if (mem.startsWith(u8, name, "unused")) continue; | 188 | if (mem.startsWith(u8, name, "unused")) continue; |
| 189 | const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; | 189 | const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; |
| 190 | | 190 | |
| 191 | try writer.print(" {p} = Linux + {s},\n", .{ zig.fmtId(fixed_name), number }); | 191 | try writer.print(" {p} = linux_base + {s},\n", .{ zig.fmtId(fixed_name), number }); |
| 192 | } | 192 | } |
| 193 | | 193 | |
| 194 | try writer.writeAll("};\n\n"); | 194 | try writer.writeAll("};\n\n"); |
| ... | @@ -196,7 +196,7 @@ pub fn main() !void { | ... | @@ -196,7 +196,7 @@ pub fn main() !void { |
| 196 | { | 196 | { |
| 197 | try writer.writeAll( | 197 | try writer.writeAll( |
| 198 | \\pub const Mips64 = enum(usize) { | 198 | \\pub const Mips64 = enum(usize) { |
| 199 | \\ pub const Linux = 5000; | 199 | \\ const linux_base = 5000; |
| 200 | \\ | 200 | \\ |
| 201 | \\ | 201 | \\ |
| 202 | ); | 202 | ); |
| ... | @@ -213,7 +213,7 @@ pub fn main() !void { | ... | @@ -213,7 +213,7 @@ pub fn main() !void { |
| 213 | const name = fields.next() orelse return error.Incomplete; | 213 | const name = fields.next() orelse return error.Incomplete; |
| 214 | const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; | 214 | const fixed_name = if (stdlib_renames.get(name)) |fixed| fixed else name; |
| 215 | | 215 | |
| 216 | try writer.print(" {p} = Linux + {s},\n", .{ zig.fmtId(fixed_name), number }); | 216 | try writer.print(" {p} = linux_base + {s},\n", .{ zig.fmtId(fixed_name), number }); |
| 217 | } | 217 | } |
| 218 | | 218 | |
| 219 | try writer.writeAll("};\n\n"); | 219 | try writer.writeAll("};\n\n"); |