@@ -136,7 +136,7 @@ fn readExtRegistry(exts: *std.array_list.Managed(Extension), dir: std.fs.Dir, su
136136}
137137
138138fn readRegistry (comptime RegistryType : type , dir : std.fs.Dir , path : []const u8 ) ! RegistryType {
139- const spec = try dir .readFileAlloc (allocator , path , std . math . maxInt ( usize ) );
139+ const spec = try dir .readFileAlloc (path , allocator , .unlimited );
140140 // Required for json parsing.
141141 // TODO: ALI
142142 @setEvalBranchQuota (10000 );
@@ -189,7 +189,7 @@ fn tagPriorityScore(tag: []const u8) usize {
189189}
190190
191191fn render (
192- writer : * std.io .Writer ,
192+ writer : * std.Io .Writer ,
193193 registry : CoreRegistry ,
194194 extensions : []const Extension ,
195195) ! void {
@@ -214,7 +214,7 @@ fn render(
214214 \\ none,
215215 \\ _,
216216 \\
217- \\ pub fn format(self: Id, writer: *std.io .Writer) std.io .Writer.Error!void {
217+ \\ pub fn format(self: Id, writer: *std.Io .Writer) std.Io .Writer.Error!void {
218218 \\ switch (self) {
219219 \\ .none => try writer.writeAll("(none)"),
220220 \\ else => try writer.print("%{d}", .{@intFromEnum(self)}),
@@ -327,7 +327,7 @@ fn render(
327327}
328328
329329fn renderInstructionSet (
330- writer : * std.io .Writer ,
330+ writer : * std.Io .Writer ,
331331 core : CoreRegistry ,
332332 extensions : []const Extension ,
333333 all_operand_kinds : OperandKindMap ,
@@ -362,7 +362,7 @@ fn renderInstructionSet(
362362}
363363
364364fn renderInstructionsCase (
365- writer : * std.io .Writer ,
365+ writer : * std.Io .Writer ,
366366 set_name : []const u8 ,
367367 instructions : []const Instruction ,
368368 all_operand_kinds : OperandKindMap ,
@@ -409,7 +409,7 @@ fn renderInstructionsCase(
409409 );
410410}
411411
412- fn renderClass (writer : * std.io .Writer , instructions : []const Instruction ) ! void {
412+ fn renderClass (writer : * std.Io .Writer , instructions : []const Instruction ) ! void {
413413 var class_map = std .StringArrayHashMap (void ).init (allocator );
414414
415415 for (instructions ) | inst | {
@@ -427,7 +427,7 @@ fn renderClass(writer: *std.io.Writer, instructions: []const Instruction) !void
427427const Formatter = struct {
428428 data : []const u8 ,
429429
430- fn format (f : Formatter , writer : * std.Io.Writer ) std.io .Writer.Error ! void {
430+ fn format (f : Formatter , writer : * std.Io.Writer ) std.Io .Writer.Error ! void {
431431 var id_buf : [128 ]u8 = undefined ;
432432 var fw : std.Io.Writer = .fixed (& id_buf );
433433 for (f .data , 0.. ) | c , i | {
@@ -457,7 +457,7 @@ fn formatId(identifier: []const u8) std.fmt.Alt(Formatter, Formatter.format) {
457457 return .{ .data = .{ .data = identifier } };
458458}
459459
460- fn renderOperandKind (writer : * std.io .Writer , operands : []const OperandKind ) ! void {
460+ fn renderOperandKind (writer : * std.Io .Writer , operands : []const OperandKind ) ! void {
461461 try writer .writeAll (
462462 \\pub const OperandKind = enum {
463463 \\ opcode,
@@ -513,7 +513,7 @@ fn renderOperandKind(writer: *std.io.Writer, operands: []const OperandKind) !voi
513513 try writer .writeAll ("};\n }\n };\n " );
514514}
515515
516- fn renderEnumerant (writer : * std.io .Writer , enumerant : Enumerant ) ! void {
516+ fn renderEnumerant (writer : * std.Io .Writer , enumerant : Enumerant ) ! void {
517517 try writer .print (".{{.name = \" {s}\" , .value = " , .{enumerant .enumerant });
518518 switch (enumerant .value ) {
519519 .bitflag = > | flag | try writer .writeAll (flag ),
@@ -530,7 +530,7 @@ fn renderEnumerant(writer: *std.io.Writer, enumerant: Enumerant) !void {
530530}
531531
532532fn renderOpcodes (
533- writer : * std.io .Writer ,
533+ writer : * std.Io .Writer ,
534534 opcode_type_name : []const u8 ,
535535 want_operands : bool ,
536536 instructions : []const Instruction ,
@@ -629,7 +629,7 @@ fn renderOpcodes(
629629}
630630
631631fn renderOperandKinds (
632- writer : * std.io .Writer ,
632+ writer : * std.Io .Writer ,
633633 kinds : []const OperandKind ,
634634 extended_structs : ExtendedStructSet ,
635635) ! void {
@@ -643,7 +643,7 @@ fn renderOperandKinds(
643643}
644644
645645fn renderValueEnum (
646- writer : * std.io .Writer ,
646+ writer : * std.Io .Writer ,
647647 enumeration : OperandKind ,
648648 extended_structs : ExtendedStructSet ,
649649) ! void {
@@ -721,7 +721,7 @@ fn renderValueEnum(
721721}
722722
723723fn renderBitEnum (
724- writer : * std.io .Writer ,
724+ writer : * std.Io .Writer ,
725725 enumeration : OperandKind ,
726726 extended_structs : ExtendedStructSet ,
727727) ! void {
@@ -804,7 +804,7 @@ fn renderBitEnum(
804804}
805805
806806fn renderOperand (
807- writer : * std.io .Writer ,
807+ writer : * std.Io .Writer ,
808808 kind : enum {
809809 @"union" ,
810810 instruction ,
@@ -888,7 +888,7 @@ fn renderOperand(
888888 try writer .writeAll (",\n " );
889889}
890890
891- fn renderFieldName (writer : * std.io .Writer , operands : []const Operand , field_index : usize ) ! void {
891+ fn renderFieldName (writer : * std.Io .Writer , operands : []const Operand , field_index : usize ) ! void {
892892 const operand = operands [field_index ];
893893
894894 derive_from_kind : {
0 commit comments