| ... | @@ -7,10 +7,6 @@ const u = @import("index.zig"); | ... | @@ -7,10 +7,6 @@ const u = @import("index.zig"); |
| 7 | // | 7 | // |
| 8 | // | 8 | // |
| 9 | | 9 | |
| 10 | const b = 1; | | |
| 11 | const kb = b * 1024; | | |
| 12 | const mb = kb * 1024; | | |
| 13 | | | |
| 14 | pub const Module = struct { | 10 | pub const Module = struct { |
| 15 | is_sys_lib: bool, | 11 | is_sys_lib: bool, |
| 16 | name: []const u8, | 12 | name: []const u8, |
| ... | @@ -66,7 +62,7 @@ pub const Module = struct { | ... | @@ -66,7 +62,7 @@ pub const Module = struct { |
| 66 | const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item}); | 62 | const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item}); |
| 67 | const file = try std.fs.openFileAbsolute(abs_path, .{}); | 63 | const file = try std.fs.openFileAbsolute(abs_path, .{}); |
| 68 | defer file.close(); | 64 | defer file.close(); |
| 69 | const input = try file.reader().readAllAlloc(gpa, mb); | 65 | const input = try file.reader().readAllAlloc(gpa, u.mb); |
| 70 | h.update(input); | 66 | h.update(input); |
| 71 | } | 67 | } |
| 72 | var out: [32]u8 = undefined; | 68 | var out: [32]u8 = undefined; |